Messages in this thread | | | Date | Tue, 3 May 2022 17:29:46 +0200 | From | Borislav Petkov <> | Subject | Re: [PATCH v5 01/10] x86/microcode/intel: Expose collect_cpu_info_early() for IFS |
| |
On Thu, Apr 28, 2022 at 08:38:40AM -0700, Tony Luck wrote: > From: Jithu Joseph <jithu.joseph@intel.com> > > IFS is a CPU feature that allows a binary blob, similar to microcode, > to be loaded and consumed to perform low level validation of CPU > circuitry. In fact, it carries the same Processor Signature > (family/model/stepping) details that are contained in Intel microcode > blobs. > > In support of an IFS driver to trigger loading, validation, and running > of these tests blobs, make the functionality of cpu_signatures_match() > and collect_cpu_info_early() available outside of the microcode driver. > > Add an "intel_" prefix and drop the "_early" suffix from > collect_cpu_info_early() and EXPORT_SYMBOL_GPL() it. Add > declaration to x86 <asm/cpu.h> > > Make cpu_signatures_match() an inline function in x86 <asm/cpu.h>, > and also give it an "intel_" prefix. > > No functional change intended. > > Reviewed-by: Dan Williams <dan.j.williams@intel.com> > Signed-off-by: Jithu Joseph <jithu.joseph@intel.com> > Co-developed-by: Tony Luck <tony.luck@intel.com> > Signed-off-by: Tony Luck <tony.luck@intel.com> > --- > arch/x86/include/asm/cpu.h | 18 ++++++++ > arch/x86/kernel/cpu/intel.c | 32 +++++++++++++++ > arch/x86/kernel/cpu/microcode/intel.c | 59 ++++----------------------- > 3 files changed, 57 insertions(+), 52 deletions(-)
Acked-by: Borislav Petkov <bp@suse.de>
-- Regards/Gruss, Boris.
https://people.kernel.org/tglx/notes-about-netiquette
| |