]> git.ipfire.org Git - thirdparty/qemu.git/commit
intel-iommu: fail MAP notifier without caching mode
authorJason Wang <jasowang@redhat.com>
Thu, 23 Feb 2023 06:59:20 +0000 (14:59 +0800)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Mar 2023 07:20:04 +0000 (10:20 +0300)
commitf6d602d078e3e680ec713bb28045fb8fa3d17fac
treed06406f1d9a7e12ce902e762398b0c5ae60dc31a
parent2529bbf4a70d591c02e7a94a15d1e3dd4dbcfae1
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>
(cherry picked from commit b8d78277c091f26fdd64f239bc8bb7e55d74cecf)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/i386/intel_iommu.c