summary refs log tree commit diff stats
path: root/monitor/misc.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2021-02-09 22:32:32 +0100
committerAlex Williamson <alex.williamson@redhat.com>2021-03-16 10:06:44 -0600
commit8dca037b484fc8caeb6d6689745bc7475ce27174 (patch)
tree570bf5cff86ded366bb90f73b21131021ee87125 /monitor/misc.c
parent4e779bf1a55e8b951f1640e3ea46fc459066f64f (diff)
downloadfocaccia-qemu-8dca037b484fc8caeb6d6689745bc7475ce27174.tar.gz
focaccia-qemu-8dca037b484fc8caeb6d6689745bc7475ce27174.zip
vfio: Do not register any IOMMU_NOTIFIER_DEVIOTLB_UNMAP notifier
In an attempt to fix smmu/virtio-iommu - vhost regression, commit
958ec334bca3 ("vhost: Unbreak SMMU and virtio-iommu on dev-iotlb support")
broke virtio-iommu integration. This is due to the fact VFIO registers
IOMMU_NOTIFIER_ALL notifiers, which includes IOMMU_NOTIFIER_DEVIOTLB_UNMAP
and this latter now is rejected by the virtio-iommu. As a consequence,
the registration fails. VHOST behaves like a device with an ATC cache. The
VFIO device does not support this scheme yet.

Let's register only legacy MAP and UNMAP notifiers.

Fixes: 958ec334bca3 ("vhost: Unbreak SMMU and virtio-iommu on dev-iotlb support")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20210209213233.40985-2-eric.auger@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'monitor/misc.c')
0 files changed, 0 insertions, 0 deletions