Skip to content

KVM: arm64: vgic-v3: Fix yet another lock ordering turd

Oliver Upton kvmarm 2 versions – Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 6 repliesApplied
  2. v15 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Drop union misbehavior + misleading comment (Marc)
- Fix LPI check to include the first one (Ben)
- Clarify changelog to make lock relaxation slightly more obvious

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/6KVM: arm64: vgic: Drop stale comment on IRQ active stateinclude/kvm/arm_vgic.h+1 -10 replies
2/6KVM: arm64: vgic-v3: Use bare refcount for VGIC LPIsarch/arm64/kvm/vgic/vgic-debug.c arch/arm64/kvm/vgic/vgic-init.c arch/arm64/kvm/vgic/vgic-its.c +4 more+18 -270 replies
3/6KVM: arm64: Spin off release helper from vgic_put_irq()arch/arm64/kvm/vgic/vgic.c+17 -70 replies
4/6KVM: arm64: vgic-v3: Erase LPIs from xarray outside of raw spinlocksarch/arm64/kvm/vgic/vgic.c include/kvm/arm_vgic.h+40 -40 replies
5/6KVM: arm64: vgic-v3: Don't require IRQs be disabled for LPI xarray lockarch/arm64/kvm/vgic/vgic-init.c arch/arm64/kvm/vgic/vgic-its.c arch/arm64/kvm/vgic/vgic.c+10 -120 replies
6/6KVM: arm64: vgic-v3: Indicate vgic_put_irq() may take LPI xarray lockarch/arm64/kvm/vgic/vgic.c+3 -05 replies

Reviews trailers per patch

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

PatchMarc Zyngier
1/6
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/6] KVM: arm64: vgic-v3: Fix yet another lock ordering turd

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

v1 -> v2:
- Drop union misbehavior + misleading comment (Marc)
- Fix LPI check to include the first one (Ben)
- Clarify changelog to make lock relaxation slightly more obvious

Oliver Upton (6):
KVM: arm64: vgic: Drop stale comment on IRQ active state
KVM: arm64: vgic-v3: Use bare refcount for VGIC LPIs
KVM: arm64: Spin off release helper from vgic_put_irq()
KVM: arm64: vgic-v3: Erase LPIs from xarray outside of raw spinlocks
KVM: arm64: vgic-v3: Don't require IRQs be disabled for LPI xarray
lock
KVM: arm64: vgic-v3: Indicate vgic_put_irq() may take LPI xarray lock

 arch/arm64/kvm/vgic/vgic-debug.c |  2 +-
 arch/arm64/kvm/vgic/vgic-init.c  |  6 +--
 arch/arm64/kvm/vgic/vgic-its.c   | 15 +++---
 arch/arm64/kvm/vgic/vgic-v4.c    |  2 +-
 arch/arm64/kvm/vgic/vgic.c       | 78 +++++++++++++++++++++++---------
 arch/arm64/kvm/vgic/vgic.h       |  8 ++--
 include/kvm/arm_vgic.h           |  9 ++--
 7 files changed, 79 insertions(+), 41 deletions(-)

base-commit: b320789d6883cc00ac78ce83bccbfe7ed58afcf0

Signature · 1 line
2.39.5