Skip to content

KVM: arm64: Fixes for parallel faults series

Oliver Upton kvm kvmarm linux-arm-kernel lkml 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. v4 Latest3 patches 2 repliesApplied
  2. v32 patches 4 repliesSuperseded

Changes in v4 from the cover letter

- Return an error instead of WARN() in hyp for shared walks (Will)

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/3KVM: arm64: Take a pointer to walker data in kvm_dereference_pteref()arch/arm64/include/asm/kvm_pgtable.h arch/arm64/kvm/hyp/pgtable.c+76 -740 replies
2/3KVM: arm64: Don't acquire RCU read lock for exclusive table walksarch/arm64/include/asm/kvm_pgtable.h arch/arm64/kvm/hyp/pgtable.c+10 -80 replies
3/3KVM: arm64: Reject shared table walks in the hyp codearch/arm64/include/asm/kvm_pgtable.h arch/arm64/kvm/hyp/pgtable.c+19 -30 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchWill Deacon
SeriesA-b
1/3
2/3
3/3

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

Read the v4 thread

Cover letter [PATCH v4 0/3] KVM: arm64: Fixes for parallel faults series

Small set of fixes for the parallel faults series. Most importantly, stop taking the RCU read lock for walking hyp stage-1. For the sake of consistency, take a pointer to kvm_pgtable_walker in kvm_dereference_pteref() as well.

Tested on an Ampere Altra system with kvm-arm.mode={nvhe,protected} and lockdep. Applies on top of the parallel faults series picked up last week.

v3: https://lore.kernel.org/kvmarm/[email protected]/

v3 -> v4:
- Return an error instead of WARN() in hyp for shared walks (Will)

Oliver Upton (3):
KVM: arm64: Take a pointer to walker data in kvm_dereference_pteref()
KVM: arm64: Don't acquire RCU read lock for exclusive table walks
KVM: arm64: Reject shared table walks in the hyp code

 arch/arm64/include/asm/kvm_pgtable.h | 159 +++++++++++++++------------
 arch/arm64/kvm/hyp/pgtable.c         |  13 ++-
 2 files changed, 96 insertions(+), 76 deletions(-)
Signature · 1 line
2.38.1.584.g0f3c55d4c2-goog