Re: [PATCH v2 0/2] KVM: SVM: Handle EferLmsleUnsupported

Sean Christopherson
2025-10-20T16:34:23Z

On Tue, 30 Sep 2025 17:14:06 -0700, Jim Mattson wrote:
> It is no longer the case that EFER.LMSLE is supported by all SVM-capable
> processors. AMD enumerates the absence of this feature by CPUID
> Fn8000_0008_EBX[EferLmlseUnsupported](bit 20)=1.
>
> Advertise this defeature bit to userspace via KVM_GET_SUPPORTED_CPUID,
> and don't allow a guest to set EFER.LMSLE on hardware that doesn't
> support the feature.
>
> [...]

Applied to kvm-x86 svm, thanks!

[1/2] KVM: x86: Advertise EferLmsleUnsupported to userspace
https://github.com/kvm-x86/linux/commit/4793f990ea15
[2/2] KVM: SVM: Disallow EFER.LMSLE when not supported by hardware
https://github.com/kvm-x86/linux/commit/c53c632592a4

--