xemu/hw/vfio
Alexey Kardashevskiy f8d8a94400 vfio: Unregister IOMMU notifiers when container is destroyed
On systems with guest visible IOMMU, adding a new memory region onto
PCI bus calls vfio_listener_region_add() for every DMA window. This
installs a notifier for IOMMU memory regions. The notifier is supposed
to be removed vfio_listener_region_del(), however in the case of mixed
PHB (emulated + VFIO devices) when last VFIO device is unplugged and
container gets destroyed, all existing DMA windows stay alive altogether
with the notifiers which are on the linked list which head was in
the destroyed container.

This unregisters IOMMU memory region notifier when a container is
destroyed.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2015-07-06 12:15:15 -06:00
..
calxeda-xgmac.c hw/vfio/platform: calxeda xgmac device 2015-06-09 08:17:17 -06:00
common.c vfio: Unregister IOMMU notifiers when container is destroyed 2015-07-06 12:15:15 -06:00
Makefile.objs hw/vfio/platform: calxeda xgmac device 2015-06-09 08:17:17 -06:00
pci.c kvm: rename kvm_irqchip_[add,remove]_irqfd_notifier with gsi suffix 2015-07-06 12:15:13 -06:00
platform.c hw/vfio/platform: add irqfd support 2015-07-06 12:15:14 -06:00