https://www.spinics.net/lists/kvm/msg267878.html
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest22 patches 11 repliesIn review
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/22 | KVM: x86/mmu: nested EPT cannot be used in SMMarch/ | +5 | 0 replies | |
| 2/22 | KVM: x86/mmu: constify uses of struct kvm_mmu_role_regsarch/ | +15 | 0 replies | |
| 3/22 | KVM: x86/mmu: pull computation of kvm_mmu_role_regs to kvm_init_mmuarch/ | +15 | 0 replies | |
| 4/22 | KVM: x86/mmu: rephrase unclear commentarch/ | +1 | 0 replies | |
| 5/22 | KVM: x86: Clean up and document nested #PF workaroundarch/ arch/ arch/ +1 more | +37 | 0 replies | |
| 6/22 | KVM: x86/mmu: remove "bool base_only" argumentsarch/ | +23 | 0 replies | |
| 7/22 | KVM: x86/mmu: split cpu_role from mmu_rolearch/ arch/ arch/ | +70 | 1 reply | |
| 8/22 | KVM: x86/mmu: do not recompute root level from kvm_mmu_role_regsarch/ | +9 | 0 replies | |
| 9/22 | KVM: x86/mmu: remove ept_ad fieldarch/ arch/ arch/ | +1 | 0 replies | |
| 10/22 | KVM: x86/mmu: remove kvm_calc_shadow_root_page_role_commonarch/ | +7 | 0 replies | |
| 11/22 | KVM: x86/mmu: cleanup computation of MMU roles for two-dimensional pagingarch/ | +9 | 0 replies | |
| 12/22 | KVM: x86/mmu: cleanup computation of MMU roles for shadow pagingarch/ | +6 | 0 replies | |
| 13/22 | KVM: x86/mmu: store shadow EFER.NX in the MMU rolearch/ | +12 | 0 replies | |
| 14/22 | KVM: x86/mmu: remove extended bits from mmu_role, rename fieldarch/ arch/ arch/ +1 more | +46 | 0 replies | |
| 15/22 | KVM: x86/mmu: rename kvm_mmu_role unionarch/ arch/ | +17 | 0 replies | |
| 16/22 | KVM: x86/mmu: remove redundant bits from extended rolearch/ arch/ | +10 | 7 replies | |
| 17/22 | KVM: x86/mmu: remove valid from extended rolearch/ arch/ | +4 | 0 replies | |
| 18/22 | KVM: x86/mmu: simplify and/or inline computation of shadow MMU rolesarch/ | +24 | 0 replies | |
| 19/22 | KVM: x86/mmu: pull CPU mode computation to kvm_init_mmuarch/ | +9 | 0 replies | |
| 20/22 | KVM: x86/mmu: replace shadow_root_level with root_role.levelarch/ arch/ arch/ +3 more | +18 | 0 replies | |
| 21/22 | KVM: x86/mmu: replace root_level with cpu_role.base.levelarch/ arch/ arch/ | +9 | 0 replies | |
| 22/22 | KVM: x86/mmu: replace direct_map with root_role.directarch/ arch/ arch/ | +18 | 0 replies |
Reviews trailers per patch
6 of 22 patches have a Reviewed-by or Acked-by.
| Patch | David Matlack | Sean Christopherson |
|---|---|---|
| 1/22 | R-b | R-b |
| 2/22 | R-b | R-b |
| 3/22 | R-b | |
| 4/22 | ||
| 5/22 | ||
| 6/22 | R-b | |
| 7/22 | ||
| 8/22 | ||
| 9/22 | R-b | |
| 10/22 | ||
| 11/22 | ||
| 12/22 | ||
| 13/22 | ||
| 14/22 | ||
| 15/22 | ||
| 16/22 | ||
| 17/22 | ||
| 18/22 | ||
| 19/22 | ||
| 20/22 | R-b | |
| 21/22 | ||
| 22/22 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 00/22] https://www.spinics.net/lists/kvm/msg267878.html
Right now the "MMU role" is a messy mix of the shadow page table format and the CPU paging mode (CR0/CR4/EFER, SMM, guest mode, etc). Whenever something is different between the MMU and the CPU, it is stored as an extra field in struct kvm_mmu; for extra bonus complication, sometimes the same thing is stored in both the role and an extra field.
This series cleans up things by putting the two in separate fields, so that the "MMU role" represents exactly the role of the root page. This in turn makes it possible to eliminate various fields that are now redundant with either the CPU or te MMU role.
These patches have mostly been posted and reviewed already[1], and I have now retested them on top of kvm/next.
Paolo
[1] https://patchew.org/linux/[email protected]/
Paolo Bonzini (21):
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: x86/mmu: remove "bool base_only" arguments
KVM: x86/mmu: split cpu_role 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_role.base.level
KVM: x86/mmu: replace direct_map with root_role.direct
Sean Christopherson (1):
KVM: x86: Clean up and document nested #PF workaround
arch/x86/include/asm/kvm_host.h | 19 +- arch/x86/kvm/mmu.h | 2 +- arch/x86/kvm/mmu/mmu.c | 376 ++++++++++++++------------------ arch/x86/kvm/mmu/paging_tmpl.h | 14 +- arch/x86/kvm/mmu/tdp_mmu.c | 4 +- arch/x86/kvm/svm/nested.c | 18 +- arch/x86/kvm/svm/svm.c | 2 +- arch/x86/kvm/vmx/nested.c | 15 +- arch/x86/kvm/vmx/vmx.c | 2 +- arch/x86/kvm/x86.c | 33 ++- 10 files changed, 219 insertions(+), 266 deletions(-)
Signature · 1 line
2.31.1