KVM: arm64: vgic-v3: Iterate the xarray to find pending LPIs
authorOliver Upton <oliver.upton@linux.dev>
Wed, 21 Feb 2024 05:42:46 +0000 (05:42 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 23 Feb 2024 21:46:02 +0000 (21:46 +0000)
commit49f0a468a158daa10e730e9050587a6014f8cf87
treee3f17786b76f1ca84663b14f77afa52456a92b4e
parent5a021df719164abdc64757993a41fe673a63323b
KVM: arm64: vgic-v3: Iterate the xarray to find pending LPIs

Start walking the LPI xarray to find pending LPIs in preparation for
the removal of the LPI linked-list. Note that the 'basic' iterator
is chosen here as each iteration needs to drop the xarray read lock
(RCU) as reads/writes to guest memory can potentially block.

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