Skip to content

KVM: x86: Fixes for KVM_INTEL_PROVE_VE

Sean Christopherson kvm lkml 1 version Applied

Status from this message: Queued, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 13 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/9KVM: x86/mmu: Use SHADOW_NONPRESENT_VALUE for atomic zap in TDP MMUarch/x86/kvm/mmu/tdp_mmu.c+1 -12 replies
2/9KVM: nVMX: Initialize #VE info page for vmcs02 when proving #VE supportarch/x86/kvm/vmx/nested.c+3 -06 replies
3/9KVM: nVMX: Always handle #VEs in L0 (never forward #VEs from L2 to L1)arch/x86/kvm/vmx/nested.c+2 -00 replies
4/9KVM: x86/mmu: Add sanity checks that KVM doesn't create EPT #VE SPTEsarch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/spte.h arch/x86/kvm/mmu/tdp_iter.h+14 -00 replies
5/9KVM: VMX: Dump VMCS on unexpected #VEarch/x86/kvm/vmx/vmx.c+3 -10 replies
6/9KVM: x86/mmu: Print SPTEs on unexpected #VEarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/vmx/vmx.c+39 -90 replies
7/9KVM: VMX: Don't kill the VM on an unexpected #VEarch/x86/kvm/vmx/vmx.c+2 -20 replies
8/9KVM: VMX: Enumerate EPT Violation #VE support in /proc/cpuinfoarch/x86/include/asm/vmxfeatures.h+1 -10 replies
9/9KVM: x86: Disable KVM_INTEL_PROVE_VE by defaultarch/x86/kvm/Kconfig+3 -34 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchIsaku YamahataKai Huang
1/9Not-yet-signed-off-by R-b
2/9
3/9
4/9
5/9
6/9
7/9
8/9
9/9

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

Read the v1 thread

Cover letter [PATCH 0/9] KVM: x86: Fixes for KVM_INTEL_PROVE_VE

Fixes and debug help for prove #VE support. I'm not in love with the sanity check implementation, but I also don't love the idea of plumbing in @kvm to the low level SPTE helpers.

Not super well tested, but I wanted to get this posted asap in case someone wants to debug the unexpected #VEs we're seeing.

Note, Isaku's patch needs his SoB.

Isaku Yamahata (1):
KVM: x86/mmu: Use SHADOW_NONPRESENT_VALUE for atomic zap in TDP MMU

Sean Christopherson (8):
KVM: nVMX: Initialize #VE info page for vmcs02 when proving #VE
support
KVM: nVMX: Always handle #VEs in L0 (never forward #VEs from L2 to L1)
KVM: x86/mmu: Add sanity checks that KVM doesn't create EPT #VE SPTEs
KVM: VMX: Dump VMCS on unexpected #VE
KVM: x86/mmu: Print SPTEs on unexpected #VE
KVM: VMX: Don't kill the VM on an unexpected #VE
KVM: VMX: Enumerate EPT Violation #VE support in /proc/cpuinfo
KVM: x86: Disable KVM_INTEL_PROVE_VE by default

 arch/x86/include/asm/kvm_host.h    |  1 +
 arch/x86/include/asm/vmxfeatures.h |  2 +-
 arch/x86/kvm/Kconfig               |  6 ++--
 arch/x86/kvm/mmu/mmu.c             | 45 ++++++++++++++++++++++++------
 arch/x86/kvm/mmu/spte.h            |  9 ++++++
 arch/x86/kvm/mmu/tdp_iter.h        |  2 ++
 arch/x86/kvm/mmu/tdp_mmu.c         |  2 +-
 arch/x86/kvm/vmx/nested.c          |  5 ++++
 arch/x86/kvm/vmx/vmx.c             | 11 ++++++--
 9 files changed, 67 insertions(+), 16 deletions(-)

base-commit: 4aad0b1893a141f114ba40ed509066f3c9bc24b0

Signature · 1 line
2.45.0.215.g3402c0e53f-goog