Re: [PATCH] KVM: x86: synthesize TSA CPUID bits via SCATTERED_F()

From: Sean Christopherson

Date: Wed Feb 11 2026 - 11:29:30 EST


On Wed, Feb 11, 2026, Borislav Petkov wrote:
> On Wed, Feb 11, 2026 at 07:54:30AM -0800, Sean Christopherson wrote:
> > If the kernel tracks both raw CPUID *and* kernel caps, then KVM can use the
> > table without having to (re)do CPUID when configuring KVM's feature set. But
> > KVM would still need to have processing for SYNTHESIZED_F, PASSTHROUGH_F, and F,
> > to derive the correct state from the raw+kernel tables.
>
> That's what I meant - the macros and the confusion which one to use would go
> away.

Again, the macros would go away, but they would simply be replaced by labels in
a table. I.e. the "confusion" won't go away, because it can't simply disappear.
That knowledge must live somewhere.