Skip to content

KVM: nVMX: fix CR3 load if L2 uses PAE paging and EPT

Ladi Prosek kvm 3 versions – Applied

Status from this message: Applied to kvm/queue, thanks. Two other series touched nVMX code in the

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 5 repliesApplied
  2. v21 patch 1 replySuperseded
  3. v11 patch 6 repliesSuperseded

Changes in v3 from the cover letter

* split to 4 patches
* fixed the error code used on host PDPTE load failure
* added a vmentry host CR3 validity check + new nested_cr3_valid helper

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/4KVM: nVMX: fix CR3 load if L2 uses PAE paging and EPTarch/x86/kvm/vmx.c+14 -23 replies
2/4KVM: nVMX: propagate errors from prepare_vmcs02arch/x86/kvm/vmx.c+19 -40 replies
3/4KVM: nVMX: introduce nested_vmx_load_cr3 and call it on vmentryarch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx.c arch/x86/kvm/x86.c+45 -180 replies
4/4KVM: nVMX: check host CR3 on vmentry and vmexitarch/x86/include/uapi/asm/vmx.h arch/x86/kvm/vmx.c+19 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] KVM: nVMX: fix CR3 load if L2 uses PAE paging and EPT

The series addresses a specific issue with guest CR3 load on nested vmentry as well as a few additional changes related to handling guest and host CR3.

v2->v3:

* split to 4 patches
* fixed the error code used on host PDPTE load failure
* added a vmentry host CR3 validity check + new nested_cr3_valid helper

v1->v2:

* introduced nested_vmx_load_cr3 (more error handling, less MMU work)
* also handles nested exit in addition to nested entry
* amended commit description

Ladi Prosek (4):
KVM: nVMX: fix CR3 load if L2 uses PAE paging and EPT
KVM: nVMX: propagate errors from prepare_vmcs02
KVM: nVMX: introduce nested_vmx_load_cr3 and call it on vmentry
KVM: nVMX: check host CR3 on vmexit