Skip to content

KVM: apply chainsaw to struct kvm_mmu

Paolo Bonzini kvm lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/219 patches 0 repliesNew
  2. v2 posting 1/219 patches 1 replyApplied
  3. v124 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- remove merged patches
- mask pfec in spte_permission_fault()
- swap patches 13 and 14 (18 and 19 in v1) to fix bisectability

Patches in v2 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/19KVM: x86/hyperv: remove unnecessary mmu_is_nested() checkarch/x86/kvm/hyperv.c+3 -40 replies
2/19KVM: x86/mmu: introduce struct kvm_pagewalkarch/x86/include/asm/kvm_host.h arch/x86/kvm/hyperv.c arch/x86/kvm/mmu.h +3 more+46 -310 replies
3/19KVM: x86/mmu: move get_guest_pgd to struct kvm_pagewalkarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h +2 more+19 -130 replies
4/19KVM: x86/mmu: move gva_to_gpa to struct kvm_pagewalkarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h +3 more+38 -380 replies
5/19KVM: x86/mmu: move get_pdptr to struct kvm_pagewalkarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h +2 more+8 -80 replies
6/19KVM: x86/mmu: move inject_page_fault to struct kvm_pagewalkarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/svm/nested.c +2 more+10 -120 replies
7/19KVM: x86/mmu: move CPU-related fields to struct kvm_pagewalkarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h+46 -500 replies
8/19KVM: x86/mmu: change CPU-role accessor fields to take struct kvm_pagewalkarch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h+27 -280 replies
9/19KVM: x86/mmu: move remaining permission fields to struct kvm_pagewalkarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c+51 -540 replies
10/19KVM: x86/mmu: pass struct kvm_pagewalk to kvm_mmu_invalidate_addrarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/vmx/nested.c +1 more+11 -70 replies
11/19KVM: x86/mmu: change walk_mmu to struct kvm_pagewalkarch/x86/include/asm/kvm_host.h arch/x86/kvm/hyperv.c arch/x86/kvm/mmu/mmu.c +4 more+33 -310 replies
12/19KVM: x86/mmu: change nested_mmu.w to ngva_walkarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c +2 more+24 -320 replies
13/19KVM: x86/mmu: pull struct kvm_pagewalk out of struct kvm_mmuarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c +4 more+88 -750 replies
14/19KVM: x86/mmu: unify root_gva_walk and ngva_walkarch/x86/include/asm/kvm_host.h arch/x86/kvm/hyperv.c arch/x86/kvm/mmu.h +5 more+60 -1120 replies
15/19KVM: x86/mmu: cleanup functions that initialize shadow MMUarch/x86/kvm/mmu/mmu.c+2 -80 replies
16/19KVM: x86/mmu: pull page format to a new structarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu.h arch/x86/kvm/mmu/mmu.c +1 more+32 -260 replies
17/19KVM: x86/mmu: merge struct rsvd_bits_validate into struct kvm_page_formatarch/x86/include/asm/kvm_host.h arch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/paging_tmpl.h +3 more+91 -950 replies
18/19KVM: x86/mmu: parameterize update_permission_bitmask()arch/x86/kvm/mmu/mmu.c+12 -80 replies
19/19KVM: x86/mmu: use kvm_page_format to test SPTEsarch/x86/kvm/mmu/mmu.c arch/x86/kvm/mmu/spte.h arch/x86/kvm/mmu/tdp_mmu.c+47 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 7.2-based 00/19] KVM: apply chainsaw to struct kvm_mmu

This is the same as what I have just posted at
https://lore.kernel.org/kvm/[email protected]/,
just on a 7.2 base (i.e. without Sean's spring cleaning series
https://lore.kernel.org/kvm/[email protected]/),
so as to trigger Sashiko's review.

The code is exactly the same, other than some functions (mostly load_pdptrs) and prototypes having moved from x86.c to regs.c, or out of kvm_host.h.

Paolo

v1->v2:
- remove merged patches
- mask pfec in spte_permission_fault()
- swap patches 13 and 14 (18 and 19 in v1) to fix bisectability

Paolo Bonzini (19):
KVM: x86/hyperv: remove unnecessary mmu_is_nested() check
KVM: x86/mmu: introduce struct kvm_pagewalk
KVM: x86/mmu: move get_guest_pgd to struct kvm_pagewalk
KVM: x86/mmu: move gva_to_gpa to struct kvm_pagewalk
KVM: x86/mmu: move get_pdptr to struct kvm_pagewalk
KVM: x86/mmu: move inject_page_fault to struct kvm_pagewalk
KVM: x86/mmu: move CPU-related fields to struct kvm_pagewalk
KVM: x86/mmu: change CPU-role accessor fields to take struct
kvm_pagewalk
KVM: x86/mmu: move remaining permission fields to struct kvm_pagewalk
KVM: x86/mmu: pass struct kvm_pagewalk to kvm_mmu_invalidate_addr
KVM: x86/mmu: change walk_mmu to struct kvm_pagewalk
KVM: x86/mmu: change nested_mmu.w to ngva_walk
KVM: x86/mmu: pull struct kvm_pagewalk out of struct kvm_mmu
KVM: x86/mmu: unify root_gva_walk and ngva_walk
KVM: x86/mmu: cleanup functions that initialize shadow MMU
KVM: x86/mmu: pull page format to a new struct
KVM: x86/mmu: merge struct rsvd_bits_validate into struct
kvm_page_format
KVM: x86/mmu: parameterize update_permission_bitmask()
KVM: x86/mmu: use kvm_page_format to test SPTEs

 arch/x86/include/asm/kvm_host.h |  72 +++---
 arch/x86/kvm/hyperv.c           |   7 +-
 arch/x86/kvm/mmu.h              |  31 +--
 arch/x86/kvm/mmu/mmu.c          | 411 +++++++++++++++-----------------
 arch/x86/kvm/mmu/paging_tmpl.h  |  88 +++----
 arch/x86/kvm/mmu/spte.c         |   4 +-
 arch/x86/kvm/mmu/spte.h         |  69 +++---
 arch/x86/kvm/mmu/tdp_mmu.c      |   3 +-
 arch/x86/kvm/svm/nested.c       |  13 +-
 arch/x86/kvm/vmx/nested.c       |  15 +-
 arch/x86/kvm/vmx/vmx.c          |   2 +-
 arch/x86/kvm/x86.c              |  58 ++---
 12 files changed, 382 insertions(+), 391 deletions(-)
Signature · 1 line
2.52.0