Blame SOURCES/kvm-intel_iommu-Remove-the-caching-mode-check-during-fla.patch

4ec855
From 01ab894f9d19a03aee876b0d1b468f7314765539 Mon Sep 17 00:00:00 2001
4ec855
From: Peter Xu <peterx@redhat.com>
4ec855
Date: Wed, 9 Oct 2019 12:39:47 +0100
4ec855
Subject: [PATCH 21/22] intel_iommu: Remove the caching-mode check during flag
4ec855
 change
4ec855
4ec855
RH-Author: Peter Xu <peterx@redhat.com>
4ec855
Message-id: <20191009123947.21505-6-peterx@redhat.com>
4ec855
Patchwork-id: 91349
4ec855
O-Subject: [RHEL-8.2.0 qemu-kvm PATCH 5/5] intel_iommu: Remove the caching-mode check during flag change
4ec855
Bugzilla: 1738440
4ec855
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
4ec855
RH-Acked-by: Auger Eric <eric.auger@redhat.com>
4ec855
RH-Acked-by: Alex Williamson <alex.williamson@redhat.com>
4ec855
4ec855
That's never a good place to stop QEMU process... Since now we have
4ec855
both the machine done sanity check and also the hotplug handler, we
4ec855
can safely remove this to avoid that.
4ec855
4ec855
Reviewed-by: Eric Auger <eric.auger@redhat.com>
4ec855
Signed-off-by: Peter Xu <peterx@redhat.com>
4ec855
Message-Id: <20190916080718.3299-5-peterx@redhat.com>
4ec855
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
4ec855
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
4ec855
(cherry picked from commit e7df189e19e86bf9f4d7aea4c6cf50ac0ebfce46)
4ec855
Signed-off-by: Peter Xu <peterx@redhat.com>
4ec855
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
4ec855
---
4ec855
 hw/i386/intel_iommu.c | 4 ----
4ec855
 1 file changed, 4 deletions(-)
4ec855
4ec855
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
4ec855
index 44d19cc..a4190bf 100644
4ec855
--- a/hw/i386/intel_iommu.c
4ec855
+++ b/hw/i386/intel_iommu.c
4ec855
@@ -2561,10 +2561,6 @@ static void vtd_iommu_notify_flag_changed(IOMMUMemoryRegion *iommu,
4ec855
     VTDAddressSpace *vtd_as = container_of(iommu, VTDAddressSpace, iommu);
4ec855
     IntelIOMMUState *s = vtd_as->iommu_state;
4ec855
 
4ec855
-    if (!s->caching_mode && new & IOMMU_NOTIFIER_MAP) {
4ec855
-        vtd_panic_require_caching_mode();
4ec855
-    }
4ec855
-
4ec855
     /* Update per-address-space notifier flags */
4ec855
     vtd_as->notifier_flags = new;
4ec855
 
4ec855
-- 
4ec855
1.8.3.1
4ec855