microcode: clean up microcode_resume_cpu
authorChao Gao <chao.gao@intel.com>
Fri, 13 Sep 2019 10:28:13 +0000 (12:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Sep 2019 10:28:13 +0000 (12:28 +0200)
commit831f16274942ce70fbb50c438589f82c7d631257
treedd7072b36c38e97cdc347ed4d40661107ccf522c
parent9da23943ccd557ddb6c34e96e3bc078a51ad8205
microcode: clean up microcode_resume_cpu

Previously, a per-cpu ucode cache is maintained. Then each CPU had one
per-cpu update cache and there might be multiple versions of microcode.
Thus microcode_resume_cpu tried best to update microcode by loading
every update cache until a successful load.

But now the cache struct is simplified a lot and only a single ucode is
cached. a single invocation of ->apply_microcode() would load the cache
and make microcode updated.

Signed-off-by: Chao Gao <chao.gao@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/microcode.c
xen/arch/x86/microcode_amd.c
xen/arch/x86/microcode_intel.c
xen/include/asm-x86/microcode.h