Re: [PATCH 01/74] x86/cpu/vfm: Add/initialize x86_vfm field to struct cpuinfo_x86
From: Borislav Petkov
Date: Thu Mar 28 2024 - 13:08:48 EST
On Thu, Mar 28, 2024 at 04:56:37PM +0000, Luck, Tony wrote:
> I could make the raw format of the #define values be CPUID(1).EAX
> with the stepping masked out. But then I'd need to add a new field to
> the structure instead of overlaying with the vendor/family/model
> fields.
Yes, that would be better. And if you're going to replace our f/m/s
checking with something better, then it better handle the stepping just
like the rest. How it is used now doesn't mean a whole lot for the
future.
And if it is not too important for most checks, you can mask it out with
macros.
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette