KVM: arm64: vgic: Use xarray to find LPI in vgic_get_lpi()
authorOliver Upton <oliver.upton@linux.dev>
Wed, 21 Feb 2024 05:42:45 +0000 (05:42 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Fri, 23 Feb 2024 21:46:02 +0000 (21:46 +0000)
commit5a021df719164abdc64757993a41fe673a63323b
tree05c400b09fe10169f123ae539953a2cb27bfdd7f
parent1d6f83f60f79ff0118823d904dc1f04ba89f9428
KVM: arm64: vgic: Use xarray to find LPI in vgic_get_lpi()

Iterating over the LPI linked-list is less than ideal when the desired
index is already known. Use the INTID to index the LPI xarray instead.

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