Nested Paging support for Nested SVM v2
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest22 patches 34 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | KVM: MMU: Check for root_level instead of long modearch/ | +2 | 0 replies | |
| 2/22 | KVM: MMU: Make tdp_enabled a mmu-context parameterarch/ arch/ | +6 | 1 reply | |
| 3/22 | KVM: MMU: Make set_cr3 a function pointer in kvm_mmuarch/ arch/ | +4 | 0 replies | |
| 4/22 | KVM: X86: Introduce a tdp_set_cr3 functionarch/ arch/ arch/ +1 more | +19 | 0 replies | |
| 5/22 | KVM: MMU: Introduce get_cr3 function pointerarch/ arch/ arch/ | +11 | 0 replies | |
| 6/22 | KVM: MMU: Introduce inject_page_fault function pointerarch/ arch/ | +6 | 0 replies | |
| 7/22 | KVM: SVM: Implement MMU helper functions for Nested Nested Pagingarch/ | +33 | 0 replies | |
| 8/22 | KVM: MMU: Change init_kvm_softmmu to take a context as parameterarch/ arch/ | +36 | 0 replies | |
| 9/22 | KVM: MMU: Let is_rsvd_bits_set take mmu context instead of vcpuarch/ arch/ | +4 | 0 replies | |
| 10/22 | KVM: MMU: Introduce generic walk_addr functionarch/ | +20 | 0 replies | |
| 11/22 | KVM: MMU: Add infrastructure for two-level page walkerarch/ arch/ arch/ +1 more | +14 | 5 replies | |
| 12/22 | KVM: MMU: Implement nested gva_to_gpa functionsarch/ arch/ arch/ | +43 | 2 replies | |
| 13/22 | KVM: X86: Add kvm_read_guest_page_tdp functionarch/ arch/ | +27 | 3 replies | |
| 14/22 | KVM: MMU: Make walk_addr_generic capable for two-level walkingarch/ | +24 | 0 replies | |
| 15/22 | KVM: MMU: Introduce kvm_read_guest_page_x86()arch/ arch/ | +32 | 7 replies | |
| 16/22 | KVM: MMU: Track page fault data in struct vcpuarch/ arch/ | +7 | 14 replies | |
| 17/22 | KVM: MMU: Propagate the right fault back to the guest after gva_to_gpaarch/ arch/ arch/ +1 more | +30 | 0 replies | |
| 18/22 | KVM: X86: Propagate fetch faultsarch/ arch/ | +5 | 0 replies | |
| 19/22 | KVM: MMU: Introduce init_kvm_nested_mmu()arch/ | +54 | 0 replies | |
| 20/22 | KVM: SVM: Initialize Nested Nested MMU context on VMRUNarch/ arch/ | +47 | 1 reply | |
| 21/22 | KVM: SVM: Report Nested Paging support to userspacearch/ | +6 | 0 replies | |
| 22/22 | KVM: SVM: Expect two more candiates for exit_int_infoarch/ | +2 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/22] Nested Paging support for Nested SVM v2
Hi,
this is the second and reworked version of my nested paging for nested svm patchset. Changes to the previous version include:
* Renamed mmu.tdp_enabled to mmu.direct_map
* Introduced two helper functions to read physical memory locations of the current running guest level
* Fixed a couple of bugs were KVM needs to read l2 physical memory and others
This patchset is tested with KVM and Windows 7 XPmode. I also tested in KVM with Linux and Windows 7 as l2 guests. I also tested different pagesize combinations and did a stress tests for a couple of hours. All these tests showed no introduced regressions.
Please review this second version of the patch-set. I appreciate your feedback.
Thanks,
Joerg
Diffstat:
arch/x86/include/asm/kvm_host.h | 26 ++++++ arch/x86/kvm/emulate.c | 22 +++--- arch/x86/kvm/mmu.c | 160 ++++++++++++++++++++++++++++++-------- arch/x86/kvm/mmu.h | 2 + arch/x86/kvm/paging_tmpl.h | 97 +++++++++++++++++++----- arch/x86/kvm/svm.c | 120 ++++++++++++++++++++++++----- arch/x86/kvm/vmx.c | 3 + arch/x86/kvm/x86.c | 77 +++++++++++++++++-- include/linux/kvm_host.h | 5 + 9 files changed, 423 insertions(+), 89 deletions(-)
Shortlog:
Joerg Roedel (22):
KVM: MMU: Check for root_level instead of long mode
KVM: MMU: Make tdp_enabled a mmu-context parameter
KVM: MMU: Make set_cr3 a function pointer in kvm_mmu
KVM: X86: Introduce a tdp_set_cr3 function
KVM: MMU: Introduce get_cr3 function pointer
KVM: MMU: Introduce inject_page_fault function pointer
KVM: SVM: Implement MMU helper functions for Nested Nested Paging
KVM: MMU: Change init_kvm_softmmu to take a context as parameter
KVM: MMU: Let is_rsvd_bits_set take mmu context instead of vcpu
KVM: MMU: Introduce generic walk_addr function
KVM: MMU: Add infrastructure for two-level page walker
KVM: MMU: Implement nested gva_to_gpa functions
KVM: X86: Add kvm_read_guest_page_tdp function
KVM: MMU: Make walk_addr_generic capable for two-level walking
KVM: MMU: Introduce kvm_read_guest_page_x86()
KVM: MMU: Track page fault data in struct vcpu
KVM: MMU: Propagate the right fault back to the guest after gva_to_gpa
KVM: X86: Propagate fetch faults
KVM: MMU: Introduce init_kvm_nested_mmu()
KVM: SVM: Initialize Nested Nested MMU context on VMRUN
KVM: SVM: Report Nested Paging support to userspace
KVM: SVM: Expect two more candiates for exit_int_info