Re: [PATCH v3] x86/cpu: Fix x86_match_cpu() to match just X86_VENDOR_INTEL

From: Borislav Petkov
Date: Fri May 17 2024 - 14:29:34 EST


On Fri, May 17, 2024 at 10:46:29AM -0700, H. Peter Anvin wrote:
> Thought: why don't we add VENDOR and CPUID as synthetic CPU feature flags as well? Not saying it necessarily solves this specific problem but it might make some other code more uniform.
>
> Obviously on x86-64 CPUID is baseline; VENDOR might not be known, however.

Well, there's only a handful of X86_VENDOR_UNKNOWN usages in the kernel
so meh. Or do you mean something else?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette