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

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