KVM: arm/arm64: vgic-its: Invalidate MSI-LPI translation cache on specific commands
authorMarc Zyngier <maz@kernel.org>
Mon, 18 Mar 2019 10:23:16 +0000 (10:23 +0000)
committerMarc Zyngier <maz@kernel.org>
Sun, 18 Aug 2019 17:38:45 +0000 (18:38 +0100)
commit0c14484866194382c0631d6e9bb14cc2fe83e814
tree5c0ec7041257108b137df869d952788cfc98e329
parent7d825fd6eaa7467c9b737fd5cf46e45f298d1c20
KVM: arm/arm64: vgic-its: Invalidate MSI-LPI translation cache on specific commands

The LPI translation cache needs to be discarded when an ITS command
may affect the translation of an LPI (DISCARD, MAPC and MAPD with V=0)
or the routing of an LPI to a redistributor with disabled LPIs (MOVI,
MOVALL).

We decide to perform a full invalidation of the cache, irrespective
of the LPI that is affected. Commands are supposed to be rare enough
that it doesn't matter.

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