microcode/intel: extend microcode_update_match()
authorChao Gao <chao.gao@intel.com>
Fri, 13 Sep 2019 10:26:16 +0000 (12:26 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 13 Sep 2019 10:26:16 +0000 (12:26 +0200)
commit1097aeb27afedd7fd713ea2d22a7f44c6429ccbc
tree1ca92f26288f251861851d66ac3180b073504a8d
parent78481f525876a6f753866715abaf834f9a4cbc1a
microcode/intel: extend microcode_update_match()

to a more generic function. So that it can be used alone to check
an update against the CPU signature and current update revision.

Note that enum microcode_match_result will be used in common code
(aka microcode.c), it has been placed in the common header. And
constifying the parameter of microcode_sanity_check() such that it
can be called by microcode_update_match().

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