x86/microcode/intel: Reuse microcode_sanity_check()
authorJithu Joseph <jithu.joseph@intel.com>
Thu, 17 Nov 2022 03:59:26 +0000 (19:59 -0800)
committerBorislav Petkov <bp@suse.de>
Fri, 18 Nov 2022 21:00:17 +0000 (22:00 +0100)
commit514ee839c6d0750c1c4456502e6fa08599e57931
tree10693718ecae275c982ce2e50709aeccaef51034
parent2e13ab0158dd4a033d61a5baa8f9b5b7c9ea8431
x86/microcode/intel: Reuse microcode_sanity_check()

IFS test image carries the same microcode header as regular Intel
microcode blobs.

Reuse microcode_sanity_check() in the IFS driver to perform sanity check
of the IFS test images too.

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-8-jithu.joseph@intel.com
arch/x86/include/asm/cpu.h
arch/x86/kernel/cpu/intel.c
arch/x86/kernel/cpu/microcode/intel.c