intel_iommu: Remove the caching-mode check during flag change
authorPeter Xu <peterx@redhat.com>
Mon, 16 Sep 2019 08:07:18 +0000 (16:07 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 16 Sep 2019 10:57:24 +0000 (06:57 -0400)
That's never a good place to stop QEMU process... Since now we have
both the machine done sanity check and also the hotplug handler, we
can safely remove this to avoid that.

Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20190916080718.3299-5-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

index bed8ffe446793ae8d8a6612832e63f0aeed5eea3..f1de8fdb7598c57d3482a37d87dd1ee85c20f9bb 100644 (file)
@@ -2936,10 +2936,6 @@ static void vtd_iommu_notify_flag_changed(IOMMUMemoryRegion *iommu,
     VTDAddressSpace *vtd_as = container_of(iommu, VTDAddressSpace, iommu);
     IntelIOMMUState *s = vtd_as->iommu_state;
 
-    if (!s->caching_mode && new & IOMMU_NOTIFIER_MAP) {
-        vtd_panic_require_caching_mode();
-    }
-
     /* Update per-address-space notifier flags */
     vtd_as->notifier_flags = new;