KVM: arm/arm64: vgic-its: Invalidate MSI-LPI translation cache on vgic teardown
authorMarc Zyngier <maz@kernel.org>
Mon, 10 Jun 2019 09:20:02 +0000 (10:20 +0100)
committerMarc Zyngier <maz@kernel.org>
Sun, 18 Aug 2019 17:38:51 +0000 (18:38 +0100)
commitcbfda481d87e92ce635e426099946cd413b251be
tree751127f3f01590a2fe7195646690bd286630d8f2
parent363518f37a86acc515defae6d1ba91a6c7617de9
KVM: arm/arm64: vgic-its: Invalidate MSI-LPI translation cache on vgic teardown

In order to avoid leaking vgic_irq structures on teardown, we need to
drop all references to LPIs before deallocating the cache itself.

This is done by invalidating the cache on vgic teardown.

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-its.c