KVM MMU refactoring part 2: role changes
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest25 patches 40 repliesIn review
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/25 | KVM: x86/mmu: avoid indirect call for get_cr3arch/ arch/ arch/ +1 more | +20 | 6 replies | |
| 2/25 | KVM: x86/mmu: nested EPT cannot be used in SMMarch/ | +5 | 1 reply | |
| 3/25 | KVM: x86/mmu: constify uses of struct kvm_mmu_role_regsarch/ | +14 | 1 reply | |
| 4/25 | KVM: x86/mmu: pull computation of kvm_mmu_role_regs to kvm_init_mmuarch/ | +14 | 0 replies | |
| 5/25 | KVM: x86/mmu: rephrase unclear commentarch/ | +1 | 1 reply | |
| 6/25 | KVM: nVMX/nSVM: do not monkey-patch inject_page_fault callbackarch/ arch/ arch/ +2 more | +23 | 2 replies | |
| 7/25 | KVM: x86/mmu: remove "bool base_only" argumentsarch/ | +23 | 1 reply | |
| 8/25 | KVM: x86/mmu: split cpu_mode from mmu_rolearch/ arch/ arch/ | +68 | 6 replies | |
| 9/25 | KVM: x86/mmu: do not recompute root level from kvm_mmu_role_regsarch/ | +8 | 1 reply | |
| 10/25 | KVM: x86/mmu: remove ept_ad fieldarch/ arch/ arch/ | +1 | 1 reply | |
| 11/25 | KVM: x86/mmu: remove kvm_calc_shadow_root_page_role_commonarch/ | +2 | 4 replies | |
| 12/25 | KVM: x86/mmu: cleanup computation of MMU roles for two-dimensional pagingarch/ | +9 | 4 replies | |
| 13/25 | KVM: x86/mmu: cleanup computation of MMU roles for shadow pagingarch/ | +6 | 0 replies | |
| 14/25 | KVM: x86/mmu: store shadow EFER.NX in the MMU rolearch/ | +12 | 0 replies | |
| 15/25 | KVM: x86/mmu: remove extended bits from mmu_role, rename fieldarch/ arch/ arch/ +1 more | +39 | 1 reply | |
| 16/25 | KVM: x86/mmu: rename kvm_mmu_role unionarch/ arch/ | +17 | 1 reply | |
| 17/25 | KVM: x86/mmu: remove redundant bits from extended rolearch/ arch/ | +10 | 0 replies | |
| 18/25 | KVM: x86/mmu: remove valid from extended rolearch/ arch/ | +4 | 0 replies | |
| 19/25 | KVM: x86/mmu: simplify and/or inline computation of shadow MMU rolesarch/ | +19 | 3 replies | |
| 20/25 | KVM: x86/mmu: pull CPU mode computation to kvm_init_mmuarch/ | +9 | 1 reply | |
| 21/25 | KVM: x86/mmu: replace shadow_root_level with root_role.levelarch/ arch/ arch/ +3 more | +18 | 1 reply | |
| 22/25 | KVM: x86/mmu: replace root_level with cpu_mode.base.levelarch/ arch/ arch/ | +9 | 1 reply | |
| 23/25 | KVM: x86/mmu: replace direct_map with root_role.directarch/ arch/ arch/ | +18 | 1 reply | |
| 24/25 | KVM: x86/mmu: initialize constant-value fields just oncearch/ arch/ arch/ +1 more | +46 | 2 replies | |
| 25/25 | KVM: x86/mmu: extract initialization of the page walking dataarch/ | +28 | 1 reply |
Reviews trailers per patch
8 of 25 patches have a Reviewed-by or Acked-by.
| Patch | David Matlack | Sean Christopherson |
|---|---|---|
| 1/25 | ||
| 2/25 | R-b | R-b |
| 3/25 | R-b | R-b |
| 4/25 | R-b | |
| 5/25 | ||
| 6/25 | ||
| 7/25 | R-b | |
| 8/25 | ||
| 9/25 | ||
| 10/25 | R-b | |
| 11/25 | ||
| 12/25 | ||
| 13/25 | ||
| 14/25 | ||
| 15/25 | ||
| 16/25 | ||
| 17/25 | ||
| 18/25 | ||
| 19/25 | ||
| 20/25 | ||
| 21/25 | R-b | |
| 22/25 | R-b | |
| 23/25 | R-b | |
| 24/25 | ||
| 25/25 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 00/25] KVM MMU refactoring part 2: role changes
This is the MMU root role vs. CPU mode split. While not a requirement in absolute terms for further hacking, it makes it much clearer to reason on whether the previous root is still valid.
Paolo
Paolo Bonzini (25):
KVM: x86/mmu: avoid indirect call for get_cr3
KVM: x86/mmu: nested EPT cannot be used in SMM
KVM: x86/mmu: constify uses of struct kvm_mmu_role_regs
KVM: x86/mmu: pull computation of kvm_mmu_role_regs to kvm_init_mmu
KVM: x86/mmu: rephrase unclear comment
KVM: nVMX/nSVM: do not monkey-patch inject_page_fault callback
KVM: x86/mmu: remove "bool base_only" arguments
KVM: x86/mmu: split cpu_mode from mmu_role
KVM: x86/mmu: do not recompute root level from kvm_mmu_role_regs
KVM: x86/mmu: remove ept_ad field
KVM: x86/mmu: remove kvm_calc_shadow_root_page_role_common
KVM: x86/mmu: cleanup computation of MMU roles for two-dimensional
paging
KVM: x86/mmu: cleanup computation of MMU roles for shadow paging
KVM: x86/mmu: store shadow EFER.NX in the MMU role
KVM: x86/mmu: remove extended bits from mmu_role, rename field
KVM: x86/mmu: rename kvm_mmu_role union
KVM: x86/mmu: remove redundant bits from extended role
KVM: x86/mmu: remove valid from extended role
KVM: x86/mmu: simplify and/or inline computation of shadow MMU roles
KVM: x86/mmu: pull CPU mode computation to kvm_init_mmu
KVM: x86/mmu: replace shadow_root_level with root_role.level
KVM: x86/mmu: replace root_level with cpu_mode.base.level
KVM: x86/mmu: replace direct_map with root_role.direct
KVM: x86/mmu: initialize constant-value fields just once
KVM: x86/mmu: extract initialization of the page walking data
arch/x86/include/asm/kvm_host.h | 25 +- arch/x86/kvm/mmu.h | 12 +- arch/x86/kvm/mmu/mmu.c | 479 +++++++++++++------------------- arch/x86/kvm/mmu/paging_tmpl.h | 16 +- arch/x86/kvm/mmu/tdp_mmu.c | 4 +- arch/x86/kvm/svm/nested.c | 13 +- arch/x86/kvm/svm/svm.c | 2 +- arch/x86/kvm/vmx/nested.c | 9 +- arch/x86/kvm/vmx/vmx.c | 2 +- arch/x86/kvm/x86.c | 31 ++- 10 files changed, 260 insertions(+), 333 deletions(-)
Signature · 1 line
2.31.1