OSDN Git Service

virtio-iommu: Call memory notifiers in attach/detach
authorBharat Bhushan <bbhushan2@marvell.com>
Fri, 30 Oct 2020 18:05:04 +0000 (19:05 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 3 Nov 2020 12:19:27 +0000 (07:19 -0500)
commit2f6eeb5f0bb1efea09510b9481e2ff82fe69b440
treeda726494034f520530122a99b35df58eed6dc917
parent15e4c8f01b7f06b9dde13bc13949c834b25160f3
virtio-iommu: Call memory notifiers in attach/detach

Call the memory notifiers when attaching an endpoint to a domain, to
replay existing mappings, and when detaching the endpoint, to remove all
mappings.

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