diff options
author | Peter Xu <peterx@redhat.com> | 2019-09-16 16:07:18 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2019-09-16 06:57:24 -0400 |
commit | e7df189e19e86bf9f4d7aea4c6cf50ac0ebfce46 (patch) | |
tree | e7b3afe611a4bf417eaa85c4e9a5d3a8cc62a0b9 /hw/i386/intel_iommu.c | |
parent | c6cbc29d36fe8df078776ed715c37cebac582238 (diff) | |
download | qemu-e7df189e19e86bf9f4d7aea4c6cf50ac0ebfce46.zip qemu-e7df189e19e86bf9f4d7aea4c6cf50ac0ebfce46.tar.gz qemu-e7df189e19e86bf9f4d7aea4c6cf50ac0ebfce46.tar.bz2 |
intel_iommu: Remove the caching-mode check during flag change
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>
Diffstat (limited to 'hw/i386/intel_iommu.c')
-rw-r--r-- | hw/i386/intel_iommu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index bed8ffe..f1de8fd 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -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; |