x86/microcode: Add a parameter to microcode_check() to store CPU capabilities
authorAshok Raj <ashok.raj@intel.com>
Mon, 9 Jan 2023 15:35:50 +0000 (07:35 -0800)
committerBorislav Petkov (AMD) <bp@alien8.de>
Fri, 20 Jan 2023 20:45:13 +0000 (21:45 +0100)
commitab31c74455c64e69342ddab21fd9426fcbfefde7
treecb1d90a528efc24e1cccc853ef3aa052ef83f4e8
parent59047d942bedc4ce88a2121a9f9e656b9532dd30
x86/microcode: Add a parameter to microcode_check() to store CPU capabilities

Add a parameter to store CPU capabilities before performing a microcode
update so that CPU capabilities can be compared before and after update.

  [ bp: Massage. ]

Signed-off-by: Ashok Raj <ashok.raj@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20230109153555.4986-2-ashok.raj@intel.com
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/cpu/microcode/core.c