mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 04:12:04 -04:00
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>
This commit is contained in:
parent
363518f37a
commit
cbfda481d8
1 changed files with 2 additions and 0 deletions
|
|
@ -1731,6 +1731,8 @@ void vgic_lpi_translation_cache_destroy(struct kvm *kvm)
|
|||
struct vgic_dist *dist = &kvm->arch.vgic;
|
||||
struct vgic_translation_cache_entry *cte, *tmp;
|
||||
|
||||
vgic_its_invalidate_cache(kvm);
|
||||
|
||||
list_for_each_entry_safe(cte, tmp,
|
||||
&dist->lpi_translation_cache, entry) {
|
||||
list_del(&cte->entry);
|
||||
|
|
|
|||
Loading…
Reference in a new issue