Re: [patch v3 2/7] x86/smp: Dont access non-existing CPUID leaf
From: Borislav Petkov
Date: Tue Jun 20 2023 - 04:20:52 EST
On Thu, Jun 15, 2023 at 10:33:52PM +0200, Thomas Gleixner wrote:
> Subject: Re: [patch v3 2/7] x86/smp: Dont access non-existing CPUID leaf
"Do not access a non-existing... "
> From: Tony Battersby <tonyb@xxxxxxxxxxxxxxx>
>
> stop_this_cpu() tests CPUID leaf 0x8000001f::EAX unconditionally. CPUs
> return the content of the highest supported leaf when a non-existing leaf
> is read.
This should be:
"On Intel, querying an invalid extended CPUID leaf returns the values of the
maximum basic CPUID leaf. On AMD, invalid CPUID leafs return zeros."
Other than that:
Reviewed-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette