Skip to content

https://www.spinics.net/lists/kvm/msg267878.html

Paolo Bonzini kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest22 patches 11 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22KVM: x86/mmu: nested EPT cannot be used in SMMarch/x86/kvm/mmu/mmu.c+5 -30 replies
2/22KVM: x86/mmu: constify uses of struct kvm_mmu_role_regsarch/x86/kvm/mmu/mmu.c+15 -110 replies
3/22KVM: x86/mmu: pull computation of kvm_mmu_role_regs to kvm_init_mmuarch/x86/kvm/mmu/mmu.c+15 -130 replies
4/22KVM: x86/mmu: rephrase unclear commentarch/x86/kvm/mmu/paging_tmpl.h+1 -10 replies
5/22KVM: x86: Clean up and document nested #PF workaroundarch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/nested.c arch/x86/kvm/vmx/nested.c +1 more+37 -190 replies
6/22KVM: x86/mmu: remove "bool base_only" argumentsarch/x86/kvm/mmu/mmu.c+23 -430 replies
7/22KVM: x86/mmu: split cpu_role from mmu_rolearch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h+70 -421 reply
8/22KVM: x86/mmu: do not recompute root level from kvm_mmu_role_regsarch/x86/kvm/mmu/mmu.c+9 -150 replies
9/22KVM: x86/mmu: remove ept_ad fieldarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h+1 -30 replies
10/22KVM: x86/mmu: remove kvm_calc_shadow_root_page_role_commonarch/x86/kvm/mmu/mmu.c+7 -200 replies
11/22KVM: x86/mmu: cleanup computation of MMU roles for two-dimensional pagingarch/x86/kvm/mmu/mmu.c+9 -320 replies
12/22KVM: x86/mmu: cleanup computation of MMU roles for shadow pagingarch/x86/kvm/mmu/mmu.c+6 -80 replies
13/22KVM: x86/mmu: store shadow EFER.NX in the MMU rolearch/x86/kvm/mmu/mmu.c+12 -110 replies
14/22KVM: x86/mmu: remove extended bits from mmu_role, rename fieldarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h +1 more+46 -480 replies
15/22KVM: x86/mmu: rename kvm_mmu_role unionarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c+17 -170 replies
16/22KVM: x86/mmu: remove redundant bits from extended rolearch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c+10 -67 replies
17/22KVM: x86/mmu: remove valid from extended rolearch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c+4 -80 replies
18/22KVM: x86/mmu: simplify and/or inline computation of shadow MMU rolesarch/x86/kvm/mmu/mmu.c+24 -410 replies
19/22KVM: x86/mmu: pull CPU mode computation to kvm_init_mmuarch/x86/kvm/mmu/mmu.c+9 -110 replies
20/22KVM: x86/mmu: replace shadow_root_level with root_role.levelarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c +3 more+18 -240 replies
21/22KVM: x86/mmu: replace root_level with cpu_role.base.levelarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h+9 -140 replies
22/22KVM: x86/mmu: replace direct_map with root_role.directarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/x86.c+18 -220 replies

Reviews trailers per patch

6 of 22 patches have a Reviewed-by or Acked-by.

PatchDavid MatlackSean Christopherson
1/22R-b R-b
2/22R-b R-b
3/22R-b
4/22
5/22
6/22R-b
7/22
8/22
9/22R-b
10/22
11/22
12/22
13/22
14/22
15/22
16/22
17/22
18/22
19/22
20/22R-b
21/22
22/22

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

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