intel-iommu: fail MAP notifier without caching mode
commitb8d78277c091f26fdd64f239bc8bb7e55d74cecf
authorJason Wang <jasowang@redhat.com>
Thu, 23 Feb 2023 06:59:20 +0000 (23 14:59 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 3 Mar 2023 00:13:52 +0000 (2 19:13 -0500)
tree1f834b3d219444feb2bb1c156e701c4306ea7ccc
parent6da24341866fa940fd7d575788a2319514941c77
intel-iommu: fail MAP notifier without caching mode

Without caching mode, MAP notifier won't work correctly since guest
won't send IOTLB update event when it establishes new mappings in the
I/O page tables. Let's fail the IOMMU notifiers early instead of
misbehaving silently.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Viktor Prutyanov <viktor@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230223065924.42503-2-jasowang@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/i386/intel_iommu.c