Nested Paging Virtualization for KVM v4
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest29 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/29 | KVM: MMU: Check for root_level instead of long modearch/ | +2 | 0 replies | |
| 2/29 | KVM: MMU: Make tdp_enabled a mmu-context parameterarch/ arch/ | +15 | 0 replies | |
| 3/29 | KVM: MMU: Make set_cr3 a function pointer in kvm_mmuarch/ arch/ | +5 | 0 replies | |
| 4/29 | KVM: X86: Introduce a tdp_set_cr3 functionarch/ arch/ arch/ +1 more | +19 | 0 replies | |
| 5/29 | KVM: MMU: Introduce get_cr3 function pointerarch/ arch/ arch/ | +11 | 0 replies | |
| 6/29 | KVM: MMU: Introduce inject_page_fault function pointerarch/ arch/ | +6 | 0 replies | |
| 7/29 | KVM: MMU: Introduce kvm_init_shadow_mmu helper functionarch/ arch/ | +36 | 0 replies | |
| 8/29 | KVM: MMU: Let is_rsvd_bits_set take mmu context instead of vcpuarch/ arch/ | +7 | 0 replies | |
| 9/29 | KVM: MMU: Track page fault data in struct vcpuarch/ arch/ arch/ +3 more | +38 | 0 replies | |
| 10/29 | KVM: MMU: Introduce generic walk_addr functionarch/ | +18 | 0 replies | |
| 11/29 | KVM: MMU: Add infrastructure for two-level page walkerarch/ arch/ include/ | +12 | 0 replies | |
| 12/29 | KVM: X86: Introduce pointer to mmu context used for gva_to_gpaarch/ arch/ arch/ | +28 | 0 replies | |
| 13/29 | KVM: MMU: Implement nested gva_to_gpa functionsarch/ arch/ arch/ +1 more | +54 | 0 replies | |
| 14/29 | KVM: X86: Add kvm_read_guest_page_mmu functionarch/ arch/ | +26 | 0 replies | |
| 15/29 | KVM: MMU: Make walk_addr_generic capable for two-level walkingarch/ | +23 | 0 replies | |
| 16/29 | KVM: MMU: Introduce kvm_read_nested_guest_page()arch/ | +16 | 0 replies | |
| 17/29 | KVM: MMU: Introduce init_kvm_nested_mmu()arch/ arch/ arch/ +1 more | +55 | 0 replies | |
| 18/29 | KVM: MMU: Propagate the right fault back to the guest after gva_to_gpaarch/ arch/ | +18 | 1 reply | |
| 19/29 | KVM: X86: Propagate fetch faultsarch/ arch/ | +7 | 0 replies | |
| 20/29 | KVM: MMU: Add kvm_mmu parameter to load_pdptrs functionarch/ arch/ arch/ +2 more | +27 | 0 replies | |
| 21/29 | KVM: MMU: Introduce kvm_pdptr_read_mmuarch/ arch/ arch/ | +9 | 0 replies | |
| 22/29 | KVM: MMU: Refactor mmu_alloc_roots functionarch/ | +60 | 0 replies | |
| 23/29 | KVM: MMU: Allow long mode shadows for legacy page tablesarch/ arch/ | +53 | 0 replies | |
| 24/29 | KVM: MMU: Track NX state in struct kvm_mmuarch/ arch/ arch/ | +19 | 1 reply | |
| 25/29 | KVM: SVM: Implement MMU helper functions for Nested Nested Pagingarch/ | +30 | 0 replies | |
| 26/29 | KVM: SVM: Initialize Nested Nested MMU context on VMRUNarch/ arch/ | +42 | 0 replies | |
| 27/29 | KVM: SVM: Expect two more candiates for exit_int_infoarch/ | +2 | 0 replies | |
| 28/29 | KVM: SVM: Report Nested Paging support to userspacearch/ | +4 | 0 replies | |
| 29/29 | KVM: X86: Report SVM bit to userspace only when supportedarch/ arch/ | +5 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/29] Nested Paging Virtualization for KVM v4
Hi Avi, Marcelo,
as promised here is -v4 of my patch-set for virtualizing nested paging in KVM. I addresses all of your review comments in this version and fixed a misbehavior in the nested page-walker code where it would have reported the wrong error-code on an emulated nested page fault.
Here is the complete list of changes:
* Fixed the bug in the gpa_to_gfn function
* Made sure that the right fault values are kept in the two-dimensional page-table walker
* Fixed the return code of x86_decode_insn so that a page-fault within that function can be handled
* Set vcpu->arch.mmu.direct_map to true for nonpaging mode too
* Changed code so that the right access-mode is used on nested page-table walks
* Made the NX mode a capability of the MMU context to distinguish between l1-nx and l2-nx (1 additional patch)
* Fixed the bug that KVM always reports the SVM flag as supported to userspace, it should only be reported on AMD hardware when nesting is enabled
As the patch-set before this one was tested with the same set of combinations too. I found no regressions to current avi/master. This patch-set applies on current avi/master plus the three fixes I sent last week.
As with the last version of the patch-set I also pushed this one to a tree on korg. Find it in
git://git.kernel.org/pub/scm/linux/kernel/git/joro/linux-2.6-kvm.git npt-virt-v4
Please review these patches and/or apply them :-) As usual I appreciate your feedback.
Thanks,
Joerg