Blame SOURCES/kvm-intel_iommu-Correct-caching-mode-error-message.patch

016a62
From 8954b0306e2179987cd097d203057e780808b0ba Mon Sep 17 00:00:00 2001
016a62
From: Peter Xu <peterx@redhat.com>
016a62
Date: Wed, 9 Oct 2019 12:39:43 +0100
016a62
Subject: [PATCH 17/22] intel_iommu: Correct caching-mode error message
016a62
MIME-Version: 1.0
016a62
Content-Type: text/plain; charset=UTF-8
016a62
Content-Transfer-Encoding: 8bit
016a62
016a62
RH-Author: Peter Xu <peterx@redhat.com>
016a62
Message-id: <20191009123947.21505-2-peterx@redhat.com>
016a62
Patchwork-id: 91350
016a62
O-Subject: [RHEL-8.2.0 qemu-kvm PATCH 1/5] intel_iommu: Correct caching-mode error message
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
From: Alex Williamson <alex.williamson@redhat.com>
016a62
016a62
If we try to use the intel-iommu device with vfio-pci devices without
016a62
caching mode enabled, we're told:
016a62
016a62
  qemu-system-x86_64: We need to set caching-mode=1 for intel-iommu to enable
016a62
  device assignment with IOMMU protection.
016a62
016a62
But to enable caching mode, the option is actually "caching-mode=on".
016a62
016a62
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
016a62
Message-Id: <155364147432.16467.15898335025013220939.stgit@gimli.home>
016a62
Reviewed-by: Peter Xu <peterx@redhat.com>
016a62
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
016a62
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
016a62
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
016a62
Reviewed-by: Eric Auger <eric.auger@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 75c5626c88a9675010018849ca9abc8d56045425)
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 | 2 +-
016a62
 1 file changed, 1 insertion(+), 1 deletion(-)
016a62
016a62
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
016a62
index e827c5a..22d2e52 100644
016a62
--- a/hw/i386/intel_iommu.c
016a62
+++ b/hw/i386/intel_iommu.c
016a62
@@ -2554,7 +2554,7 @@ static void vtd_iommu_notify_flag_changed(IOMMUMemoryRegion *iommu,
016a62
     IntelIOMMUState *s = vtd_as->iommu_state;
016a62
 
016a62
     if (!s->caching_mode && new & IOMMU_NOTIFIER_MAP) {
016a62
-        error_report("We need to set caching-mode=1 for intel-iommu to enable "
016a62
+        error_report("We need to set caching-mode=on for intel-iommu to enable "
016a62
                      "device assignment with IOMMU protection.");
016a62
         exit(1);
016a62
     }
016a62
-- 
016a62
1.8.3.1
016a62