Re: [PATCH 6.18.y] x86/cpufeatures: Make X86_FEATURE leaf 17 Linux-specific
From: Thomas Gleixner
Date: Thu Nov 12 2026 - 21:58:48 EST
On Thu, Nov 12 2026 at 22:23, Borislav Petkov wrote:
> On November 12, 2026 10:13:31 PM UTC, "H. Peter Anvin" <hpa@xxxxxxxxx> wrote:
>> Still, I have to wonder if it really makes sense to fold these leaves
>> like this, since they are going to be populated soon. Surely we're not
>> that short of bits?
>>
>
> If you mean the leaves in scattered.c, I'm thinking the moment a leaf
> appears there with half of its bits, it'll get moved to its own
> separate leaf.
Crap.
Even if a new leaf has only _ONE_ bit defined then it's a new leaf. This
whole "save space" nonsense has been source of a gazillion of subtle
bugs in the past and we just continue to "fix" them instead of actually
tackling the underlying problem.
Linux specific leafs want to be in a space which is reserved by
hardware for software purposes and not arbitrarily hacked into "holes".
Hardware defined leafs have to be represented by a proper entry even if
there is only one relevant bit in a leaf.
That's what I have proposed long ago and the CPUID database project
https://x86-cpuid.org/
laid the ground for changing this whole mess to something structured and
well defined.
Some initial changes have made their way into mainline, but then Intel
stopped funding it and AMD has no money for that either...
So this will trickle along for another two decades with the same bugs
repeating themself over and over. WTF?
Thanks,
tglx