Re: [PATCH v4 1/6] x86: KVM: Advertise CMPccXADD CPUID to user space

From: Borislav Petkov
Date: Mon Nov 21 2022 - 10:53:19 EST


On Mon, Nov 21, 2022 at 03:48:06PM +0000, Sean Christopherson wrote:
> Actually, for these features that don't require additional KVM enabling, KVM isn't
> making the feature avaiable to the guest. KVM is just advertising to userspace
> that KVM "supports" these features. Userspace ultimately controls guest CPUID;
> outside of a few special cases, KVM neither rejects nor filters unsupported bits
> in CPUID.

So is there any point to those "enable it in KVM" patches streaming constantly?

AFAICT, the only reason is to "pass through" the CPUID bit to the guest
in case KVM is not showing it in the intercepted CPUID...

--
Regards/Gruss,
Boris.

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