[pve-devel] [PATCH qemu 1/3] fix #2794: Include legacy-igd passthrough fix

Stefan Reiter s.reiter at proxmox.com
Thu Jun 18 16:36:52 CEST 2020


See https://bugs.launchpad.net/qemu/+bug/1882784

Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
 ...ks-Fix-broken-legacy-IGD-passthrough.patch | 34 +++++++++++++++++++
 debian/patches/series                         |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 debian/patches/extra/0001-hw-vfio-pci-quirks-Fix-broken-legacy-IGD-passthrough.patch

diff --git a/debian/patches/extra/0001-hw-vfio-pci-quirks-Fix-broken-legacy-IGD-passthrough.patch b/debian/patches/extra/0001-hw-vfio-pci-quirks-Fix-broken-legacy-IGD-passthrough.patch
new file mode 100644
index 0000000..2d6aa71
--- /dev/null
+++ b/debian/patches/extra/0001-hw-vfio-pci-quirks-Fix-broken-legacy-IGD-passthrough.patch
@@ -0,0 +1,34 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Thomas Huth <thuth at redhat.com>
+Date: Thu, 11 Jun 2020 11:36:40 -0600
+Subject: [PATCH] hw/vfio/pci-quirks: Fix broken legacy IGD passthrough
+
+The #ifdef CONFIG_VFIO_IGD in pci-quirks.c is not working since the
+required header config-devices.h is not included, so that the legacy
+IGD passthrough is currently broken. Let's include the right header
+to fix this issue.
+
+Buglink: https://bugs.launchpad.net/qemu/+bug/1882784
+Fixes: 29d62771c81d ("hw/vfio: Move the IGD quirk code to a separate file")
+Signed-off-by: Thomas Huth <thuth at redhat.com>
+Reviewed-by: Philippe Mathieu-Daudé <philmd at redhat.com>
+Signed-off-by: Alex Williamson <alex.williamson at redhat.com>
+---
+ hw/vfio/pci-quirks.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/hw/vfio/pci-quirks.c b/hw/vfio/pci-quirks.c
+index 2d348f8237..656098b827 100644
+--- a/hw/vfio/pci-quirks.c
++++ b/hw/vfio/pci-quirks.c
+@@ -11,6 +11,7 @@
+  */
+ 
+ #include "qemu/osdep.h"
++#include "config-devices.h"
+ #include "exec/memop.h"
+ #include "qemu/units.h"
+ #include "qemu/error-report.h"
+-- 
+2.20.1
+
diff --git a/debian/patches/series b/debian/patches/series
index e7345ce..f7e7197 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
+extra/0001-hw-vfio-pci-quirks-Fix-broken-legacy-IGD-passthrough.patch
 pve/0001-PVE-Config-block-file-change-locking-default-to-off.patch
 pve/0002-PVE-Config-Adjust-network-script-path-to-etc-kvm.patch
 pve/0003-PVE-Config-set-the-CPU-model-to-kvm64-32-instead-of-.patch
-- 
2.20.1





More information about the pve-devel mailing list