KVM: arm/arm64: vgic: Add __vgic_put_lpi_locked primitive
authorMarc Zyngier <maz@kernel.org>
Mon, 18 Mar 2019 12:45:22 +0000 (12:45 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 18 Aug 2019 17:38:39 +0000 (18:38 +0100)
commit1bb3691d8330f09a0699c124fcb71991b5fd105b
treef2ae436cfe49dff4ddca186e0e9397ba2fb0f72e
parent24cab82c34aa6f3ede3de1d8621624cb5ef33feb
KVM: arm/arm64: vgic: Add __vgic_put_lpi_locked primitive

Our LPI translation cache needs to be able to drop the refcount
on an LPI whilst already holding the lpi_list_lock.

Let's add a new primitive for this.

Tested-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
virt/kvm/arm/vgic/vgic.c
virt/kvm/arm/vgic/vgic.h