Backport nested EPT violation GVA bit fix
Status from this message: Queued the series for 6.18, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | KVM: x86/mmu: pass PFERR_GUEST_PAGE/FINAL_MASK to kvm_translate_gpaarch/ arch/ arch/ +1 more | +11 | 0 replies | |
| 2/3 | KVM: x86: Tell ->inject_page_fault() whether or a fault came from hardwarearch/ arch/ arch/ +2 more | +28 | 0 replies | |
| 3/3 | KVM: VMX: Synthesize nested EPT violation GVA_IS_VALID/GVA_TRANSLATED bitsarch/ arch/ | +35 | 1 reply |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | David Riley | Sean Christopherson |
|---|---|---|
| Series | A-b | |
| 1/3 | T-b | |
| 2/3 | ||
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 6.18.y 0/3] Backport nested EPT violation GVA bit fix
Backport of commit 96b067b59ad9 ("KVM: VMX: Synthesize nested EPT violation GVA_IS_VALID/GVA_TRANSLATED bits") to 6.18.y, with its two dependencies.
Patch 3 is the fix: KVM pulls the GVA_IS_VALID and GVA_TRANSLATED bits from vmcs02.EXIT_QUALIFICATION even when the fault injected into L1 was synthesized while emulating an L2 GVA access, i.e. when that field describes an unrelated VM-Exit.
Patches 1 and 2 are prerequisites, tagged Stable-dep-of; neither changes behavior on its own. Patch 1 lets the EPT walker tell a paging-structure access from a final access, patch 2 plumbs in whether a fault came from hardware and renames kvm_inject_emulated_page_fault()'s exported symbol to __kvm_inject_emulated_page_fault().
Context adjustments are noted per patch. Based on v6.18.56, build tested on x86_64 with CONFIG_KVM_INTEL=m and CONFIG_KVM_AMD=m. Not runtime tested under nested virtualization.
Kevin Cheng (1):
KVM: VMX: Synthesize nested EPT violation GVA_IS_VALID/GVA_TRANSLATED
bits
Paolo Bonzini (1):
KVM: x86/mmu: pass PFERR_GUEST_PAGE/FINAL_MASK to kvm_translate_gpa
Sean Christopherson (1):
KVM: x86: Tell ->inject_page_fault() whether or a fault came from
hardware
arch/x86/include/asm/kvm_host.h | 18 ++++++++++++++---- arch/x86/kvm/hyperv.c | 3 ++- arch/x86/kvm/mmu/mmu.c | 3 ++- arch/x86/kvm/mmu/paging_tmpl.h | 26 ++++++++++++++++++++++---- arch/x86/kvm/regs.c | 3 ++- arch/x86/kvm/svm/nested.c | 3 ++- arch/x86/kvm/vmx/nested.c | 26 +++++++++++++++++++++----- arch/x86/kvm/x86.c | 16 +++++++++------- 8 files changed, 74 insertions(+), 24 deletions(-)
Signature · 1 line
2.50.1