From: Thomas Gleixner <tglx@linutronix.de>
To: Borislav Petkov <bp@alien8.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>,
Breno Leitao <leitao@debian.org>, Ingo Molnar <mingo@redhat.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
x86@kernel.org, Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>,
linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
vlad.wing@gmail.com, security@kernel.org, kernel-team@meta.com
Subject: Re: [PATCH 6.18.y] x86/cpufeatures: Make X86_FEATURE leaf 17 Linux-specific
Date: Fri, 13 Nov 2026 01:00:07 +0100 [thread overview]
Message-ID: <87ik21sirc.ffs@fw13> (raw)
In-Reply-To: <20261112233327.GBavZMx2etyTFh1be4@fat_crate.local>
On Thu, Nov 12 2026 at 15:33, Borislav Petkov wrote:
> 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?
Yes. It's an abomination as you know very well.
> 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.
Emphasis on eventually.
So another twenty years to actually have a proper design in place for
something which just resulted in duct tape layers since the initial
CPUID/feature management design mistake was made twenty years ago.
Until we get there we just add more duct tape which interferes with the
cleanup, right?
> Anything else missing?
Yes. The fact that it's ridiculous that we still have to debate this.
The time wasted on that, the time wasted by people to decode the subtle
bugs and the amount of AI tokens wasted to come up with more duct tape
fixes is at least an order of magnitude more expensive than funding the
completion of the overhaul.
But I just "work" here so I might be missing something important which
justifies that ...
Thanks,
tglx
next prev parent reply other threads:[~2026-11-13 0:00 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 16:06 [PATCH 6.18.y] x86/cpufeatures: Make X86_FEATURE leaf 17 Linux-specific Breno Leitao
2026-11-12 4:57 ` Borislav Petkov
2026-11-12 22:13 ` H. Peter Anvin
2026-11-12 22:23 ` Borislav Petkov
2026-11-12 23:09 ` Thomas Gleixner
2026-11-12 23:33 ` Borislav Petkov
2026-11-13 0:00 ` Thomas Gleixner [this message]
2026-11-13 0:15 ` Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ik21sirc.ffs@fw13 \
--to=tglx@linutronix.de \
--cc=bp@alien8.de \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=kernel-team@meta.com \
--cc=kvm@vger.kernel.org \
--cc=leitao@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=seanjc@google.com \
--cc=security@kernel.org \
--cc=vlad.wing@gmail.com \
--cc=x86@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.