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

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