]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
KVM: arm64: vgic-v3: Don't require IRQs be disabled for LPI xarray lock
authorOliver Upton <oliver.upton@linux.dev>
Fri, 5 Sep 2025 10:05:30 +0000 (03:05 -0700)
committerOliver Upton <oliver.upton@linux.dev>
Wed, 10 Sep 2025 09:56:20 +0000 (02:56 -0700)
commit982f31bbb5b0adc79a9126c0f970e7801c6e8342
tree4bf565982ea6796773a3537535ae5cfc3c17efd1
parentd54594accf732d17891d276aa1f545ef25606555
KVM: arm64: vgic-v3: Don't require IRQs be disabled for LPI xarray lock

Now that releases of LPIs have been unnested from the ap_list_lock there
are no xarray writers that exist in a context where IRQs are already
disabled. As such we can relax the locking to the non-IRQ disabling
spinlock to guard the LPI xarray.

Note that there are still readers of the LPI xarray where IRQs are
disabled however the readers rely on RCU protection instead of the lock.

Reviewed-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20250905100531.282980-6-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/vgic/vgic-init.c
arch/arm64/kvm/vgic/vgic-its.c
arch/arm64/kvm/vgic/vgic.c