Skip to content

KVM: SVM: Handle EferLmsleUnsupported

Jim Mattson kvm lkml 2 versions – Applied

Status from this message: Applied to kvm-x86 svm, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 7 repliesApplied
  2. v11 patch 3 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: x86: Advertise EferLmsleUnsupported to userspacearch/x86/include/asm/cpufeatures.h arch/x86/kvm/cpuid.c+2 -03 replies
2/2KVM: SVM: Disallow EFER.LMSLE when not supported by hardwarearch/x86/kvm/svm/svm.c+3 -13 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchYosry AhmedNikunj A Dadhania
1/2R-b R-b R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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.

Jim Mattson (2):
KVM: x86: Advertise EferLmsleUnsupported to userspace
KVM: SVM: Disallow EFER.LMSLE when not supported by hardware

 arch/x86/include/asm/cpufeatures.h | 1 +
 arch/x86/kvm/cpuid.c               | 1 +
 arch/x86/kvm/svm/svm.c             | 4 +++-
 3 files changed, 5 insertions(+), 1 deletion(-)
Signature · 1 line
2.51.0.618.g983fd99d29-goog