virtio-iommu: Add memory notifiers for map/unmap
commit15e4c8f01b7f06b9dde13bc13949c834b25160f3
authorBharat Bhushan <bbhushan2@marvell.com>
Fri, 30 Oct 2020 18:05:03 +0000 (30 19:05 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 3 Nov 2020 12:19:27 +0000 (3 07:19 -0500)
treed5025514cdbbb5379a009fb2314c1d2796799ec4
parent31aa323fb97bae3786f5bce5a88668f76fdb0cec
virtio-iommu: Add memory notifiers for map/unmap

Extend VIRTIO_IOMMU_T_MAP/UNMAP request to notify memory listeners. It
will call VFIO notifier to map/unmap regions in the physical IOMMU.

Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-Id: <20201030180510.747225-4-jean-philippe@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/trace-events
hw/virtio/virtio-iommu.c