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

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