Skip to content

KVM: arm64: Combined user_mem_abort() rework

Marc Zyngier kvm kvmarm linux-arm-kernel 2 versions – Applied

Status from this message: Applied to next, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest30 patches 26 repliesApplied
  2. v117 patches 30 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/30KVM: arm64: Extract VMA size resolution in user_mem_abort()arch/arm64/kvm/mmu.c+73 -571 reply
2/30KVM: arm64: Introduce struct kvm_s2_fault to user_mem_abort()arch/arm64/kvm/mmu.c+123 -891 reply
3/30KVM: arm64: Extract PFN resolution in user_mem_abort()arch/arm64/kvm/mmu.c+59 -461 reply
4/30KVM: arm64: Isolate mmap_read_lock inside new kvm_s2_fault_get_vma_info() helperarch/arm64/kvm/mmu.c+12 -41 reply
5/30KVM: arm64: Extract stage-2 permission logic in user_mem_abort()arch/arm64/kvm/mmu.c+87 -761 reply
6/30KVM: arm64: Extract page table mapping in user_mem_abort()arch/arm64/kvm/mmu.c+68 -601 reply
7/30KVM: arm64: Simplify nested VMA shift calculationarch/arm64/kvm/mmu.c+1 -51 reply
8/30KVM: arm64: Remove redundant state variables from struct kvm_s2_faultarch/arm64/kvm/mmu.c+5 -101 reply
9/30KVM: arm64: Simplify return logic in user_mem_abort()arch/arm64/kvm/mmu.c+4 -131 reply
10/30KVM: arm64: Initialize struct kvm_s2_fault completely at declarationarch/arm64/kvm/mmu.c+16 -181 reply
11/30KVM: arm64: Optimize early exit checks in kvm_s2_fault_pin_pfn()arch/arm64/kvm/mmu.c+6 -51 reply
12/30KVM: arm64: Hoist MTE validation check out of MMU lock patharch/arm64/kvm/mmu.c+12 -164 replies
13/30KVM: arm64: Clean up control flow in kvm_s2_fault_map()arch/arm64/kvm/mmu.c+11 -91 reply
14/30KVM: arm64: Kill fault->ipaarch/arm64/kvm/mmu.c+5 -91 reply
15/30KVM: arm64: Make fault_ipa immutablearch/arm64/kvm/mmu.c+26 -121 reply
16/30KVM: arm64: Move fault context to const structurearch/arm64/kvm/mmu.c+69 -641 reply
17/30KVM: arm64: Replace fault_is_perm with a helperarch/arm64/kvm/mmu.c+10 -71 reply
18/30KVM: arm64: Constrain fault_granule to kvm_s2_fault_map()arch/arm64/kvm/mmu.c+9 -81 reply
19/30KVM: arm64: Kill write_fault from kvm_s2_faultarch/arm64/kvm/mmu.c+3 -81 reply
20/30KVM: arm64: Kill exec_fault from kvm_s2_faultarch/arm64/kvm/mmu.c+2 -41 reply
21/30KVM: arm64: Kill topup_memcache from kvm_s2_faultarch/arm64/kvm/mmu.c+6 -62 replies
22/30KVM: arm64: Move VMA-related information to kvm_s2_fault_vma_infoarch/arm64/kvm/mmu.c+65 -520 replies
23/30KVM: arm64: Kill logging_active from kvm_s2_faultarch/arm64/kvm/mmu.c+4 -60 replies
24/30KVM: arm64: Restrict the scope of the 'writable' attributearch/arm64/kvm/mmu.c+9 -70 replies
25/30KVM: arm64: Move kvm_s2_fault.{pfn,page} to kvm_s2_vma_infoarch/arm64/kvm/mmu.c+15 -130 replies
26/30KVM: arm64: Replace force_pte with a max_map_size attributearch/arm64/kvm/mmu.c+13 -100 replies
27/30KVM: arm64: Move device mapping management into kvm_s2_fault_pin_pfn()arch/arm64/kvm/mmu.c+29 -230 replies
28/30KVM: arm64: Directly expose mapping prot and kill kvm_s2_faultarch/arm64/kvm/mmu.c+21 -240 replies
29/30KVM: arm64: Simplify integration of adjust_nested_*_perms()arch/arm64/kvm/mmu.c+27 -350 replies
30/30KVM: arm64: Convert gmem_abort() to struct kvm_s2_fault_descarch/arm64/kvm/mmu.c+19 -220 replies

Reviews trailers per patch

All 30 patches have a Reviewed-by or Acked-by.

PatchJoey GoulyFuad TabbaSuzuki K PouloseAnshuman Khandual
1/30R-b R-b
2/30R-b R-b
3/30R-b
4/30R-b
5/30R-b
6/30R-b
7/30R-b
8/30R-b
9/30R-b
10/30R-b
11/30R-b R-b
12/30R-b
13/30R-b
14/30T-b R-b R-b R-b
15/30T-b R-b R-b R-b
16/30T-b R-b R-b R-b
17/30R-b T-b R-b R-b R-b
18/30T-b R-b R-b R-b
19/30T-b R-b R-b R-b
20/30T-b R-b R-b R-b
21/30T-b R-b R-b R-b
22/30T-b R-b R-b
23/30T-b R-b R-b
24/30T-b R-b R-b
25/30T-b R-b R-b
26/30T-b R-b R-b
27/30T-b R-b R-b
28/30T-b R-b R-b
29/30T-b R-b R-b
30/30T-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH v2 00/30] KVM: arm64: Combined user_mem_abort() rework

Fuad and I have been working on this "put a stick of dynamite in user_mem_abort() and watch the resulting firework" project, and it looks surprisingly OK so far. Disappointingly so, I'd even say.

This v2 is has very few changes from the original posting (cleaning up the comments in Fuad's series [1], and some minor restructuring in mine [2]), but I wanted to post the combined series for people's awareness and for the sake of running it through sashiko.

If nothing catches fire, I'll may end-up taking it into 7.1.

[1] https://lore.kernel.org/all/[email protected]
[2] https://lore.kernel.org/all/[email protected]

Fuad Tabba (13):
KVM: arm64: Extract VMA size resolution in user_mem_abort()
KVM: arm64: Introduce struct kvm_s2_fault to user_mem_abort()
KVM: arm64: Extract PFN resolution in user_mem_abort()
KVM: arm64: Isolate mmap_read_lock inside new
kvm_s2_fault_get_vma_info() helper
KVM: arm64: Extract stage-2 permission logic in user_mem_abort()
KVM: arm64: Extract page table mapping in user_mem_abort()
KVM: arm64: Simplify nested VMA shift calculation
KVM: arm64: Remove redundant state variables from struct kvm_s2_fault
KVM: arm64: Simplify return logic in user_mem_abort()
KVM: arm64: Initialize struct kvm_s2_fault completely at declaration
KVM: arm64: Optimize early exit checks in kvm_s2_fault_pin_pfn()
KVM: arm64: Hoist MTE validation check out of MMU lock path
KVM: arm64: Clean up control flow in kvm_s2_fault_map()

Marc Zyngier (17):
KVM: arm64: Kill fault->ipa
KVM: arm64: Make fault_ipa immutable
KVM: arm64: Move fault context to const structure
KVM: arm64: Replace fault_is_perm with a helper
KVM: arm64: Constrain fault_granule to kvm_s2_fault_map()
KVM: arm64: Kill write_fault from kvm_s2_fault
KVM: arm64: Kill exec_fault from kvm_s2_fault
KVM: arm64: Kill topup_memcache from kvm_s2_fault
KVM: arm64: Move VMA-related information to kvm_s2_fault_vma_info
KVM: arm64: Kill logging_active from kvm_s2_fault
KVM: arm64: Restrict the scope of the 'writable' attribute
KVM: arm64: Move kvm_s2_fault.{pfn,page} to kvm_s2_vma_info
KVM: arm64: Replace force_pte with a max_map_size attribute
KVM: arm64: Move device mapping management into kvm_s2_fault_pin_pfn()
KVM: arm64: Directly expose mapping prot and kill kvm_s2_fault
KVM: arm64: Simplify integration of adjust_nested_*_perms()
KVM: arm64: Convert gmem_abort() to struct kvm_s2_fault_desc

 arch/arm64/kvm/mmu.c | 507 +++++++++++++++++++++++++------------------
 1 file changed, 299 insertions(+), 208 deletions(-)
Signature · 1 line
2.47.3