x86/microcode/intel: Reuse find_matching_signature()
authorJithu Joseph <jithu.joseph@intel.com>
Thu, 17 Nov 2022 03:59:24 +0000 (19:59 -0800)
committerBorislav Petkov <bp@suse.de>
Fri, 18 Nov 2022 20:50:01 +0000 (21:50 +0100)
commit716f380275866350ee44447b3c7c999f39c3178d
tree12efebeaaf35adf2a7d3d662a00a16d134e94771
parentcb5eceee816bf05667089869d822b9cbc919465a
x86/microcode/intel: Reuse find_matching_signature()

IFS uses test images provided by Intel that can be regarded as firmware.
An IFS test image carries microcode header with an extended signature
table.

Reuse find_matching_signature() for verifying if the test image header
or the extended signature table indicate whether that image is fit to
run on a system.

No functional changes.

Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Ashok Raj <ashok.raj@intel.com>
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Link: https://lore.kernel.org/r/20221117035935.4136738-6-jithu.joseph@intel.com
arch/x86/include/asm/cpu.h
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/cpu/microcode/intel.c