Blame SOURCES/kvm-vfio-pci-Default-display-option-to-off.patch

383d26
From a58a90bf5d832135b8e36fdeafed35a92abe79bd Mon Sep 17 00:00:00 2001
383d26
From: Alex Williamson <alex.williamson@redhat.com>
383d26
Date: Tue, 12 Jun 2018 14:51:43 +0200
383d26
Subject: [PATCH 01/57] vfio/pci: Default display option to "off"
383d26
383d26
RH-Author: Alex Williamson <alex.williamson@redhat.com>
383d26
Message-id: <20180612145121.14019.7760.stgit@gimli.home>
383d26
Patchwork-id: 80641
383d26
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH] vfio/pci: Default display option to "off"
383d26
Bugzilla: 1583050
383d26
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
383d26
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
383d26
RH-Acked-by: Laurent Vivier <lvivier@redhat.com>
383d26
383d26
Commit a9994687cb9b ("vfio/display: core & wireup") added display
383d26
support to vfio-pci with the default being "auto", which breaks
383d26
existing VMs when the vGPU requires GL support but had no previous
383d26
requirement for a GL compatible configuration.  "Off" is the safer
383d26
default as we impose no new requirements to VM configurations.
383d26
383d26
Fixes: a9994687cb9b ("vfio/display: core & wireup")
383d26
Cc: qemu-stable@nongnu.org
383d26
Cc: Gerd Hoffmann <kraxel@redhat.com>
383d26
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
383d26
(cherry picked from commit 8151a9c56d31eeeea872b8103c8b86d03c411667)
383d26
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
383d26
---
383d26
 hw/vfio/pci.c | 2 +-
383d26
 1 file changed, 1 insertion(+), 1 deletion(-)
383d26
383d26
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
383d26
index 34b9d19..4683eb4 100644
383d26
--- a/hw/vfio/pci.c
383d26
+++ b/hw/vfio/pci.c
383d26
@@ -3167,7 +3167,7 @@ static Property vfio_pci_dev_properties[] = {
383d26
     DEFINE_PROP_PCI_HOST_DEVADDR("host", VFIOPCIDevice, host),
383d26
     DEFINE_PROP_STRING("sysfsdev", VFIOPCIDevice, vbasedev.sysfsdev),
383d26
     DEFINE_PROP_ON_OFF_AUTO("display", VFIOPCIDevice,
383d26
-                            display, ON_OFF_AUTO_AUTO),
383d26
+                            display, ON_OFF_AUTO_OFF),
383d26
     DEFINE_PROP_UINT32("x-intx-mmap-timeout-ms", VFIOPCIDevice,
383d26
                        intx.mmap_timeout, 1100),
383d26
     DEFINE_PROP_BIT("x-vga", VFIOPCIDevice, features,
383d26
-- 
383d26
1.8.3.1
383d26