Re: [PATCH 6.18.y] x86/cpufeatures: Make X86_FEATURE leaf 17 Linux-specific

From: Borislav Petkov

Date: Thu Nov 12 2026 - 18:53:10 EST


On Fri, Nov 13, 2026 at 12:09:03AM +0100, Thomas Gleixner wrote:
> 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.

Are you saying we should get rid of scattered.c?

Well, as a matter of fact, after stopping this silly nonsense of having to add
a cpufeatures.h leaf just to advertise feature bits to a guests, the space
saving is not really important anymore. We're much better there.

So I could whack scattered.c, we make it a rule to allocate a new
x86_capability leaf when we need it and then we will switch to the stuff Ahmed
has been working on eventually, when we get that upstreamed.

Anything else missing?

--
Regards/Gruss,
Boris.

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