microcode/amd: distinguish old and mismatched ucode in microcode_fits()
authorChao Gao <chao.gao@intel.com>
Fri, 13 Sep 2019 10:26:51 +0000 (12:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Sep 2019 10:26:51 +0000 (12:26 +0200)
commit68f94ef8e57cea82680b7bda2e03caabcba6d0a6
tree5069d82c5c85c8667a1cf112bc2bb4d306149da2
parent1097aeb27afedd7fd713ea2d22a7f44c6429ccbc
microcode/amd: distinguish old and mismatched ucode in microcode_fits()

Sometimes, an ucode with a level lower than or equal to current CPU's
patch level is useful. For example, to work around a broken bios which
only loads ucode for BSP, when BSP parses an ucode blob during bootup,
it is better to save an ucode with lower or equal level for APs

No functional change is made in this patch. But following patch would
handle "old ucode" and "mismatched ucode" separately.

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