cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
26ba25
From c766165206c5618768075d1d37204b2500ad2420 Mon Sep 17 00:00:00 2001
26ba25
From: Alex Williamson <alex.williamson@redhat.com>
26ba25
Date: Tue, 12 Jun 2018 19:04:07 +0100
26ba25
Subject: [PATCH 01/15] vfio/pci: Default display option to "off"
26ba25
26ba25
RH-Author: Alex Williamson <alex.williamson@redhat.com>
26ba25
Message-id: <20180612190329.21103.32803.stgit@gimli.home>
26ba25
Patchwork-id: 80646
26ba25
O-Subject: [virt212 qemu-kvm PATCH] vfio/pci: Default display option to "off"
26ba25
Bugzilla: 1590511
26ba25
RH-Acked-by: Auger Eric <eric.auger@redhat.com>
26ba25
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
26ba25
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
26ba25
26ba25
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1590511
26ba25
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=16695604
26ba25
Testing: RHEL-7.6 version tested by QE
26ba25
26ba25
Commit a9994687cb9b ("vfio/display: core & wireup") added display
26ba25
support to vfio-pci with the default being "auto", which breaks
26ba25
existing VMs when the vGPU requires GL support but had no previous
26ba25
requirement for a GL compatible configuration.  "Off" is the safer
26ba25
default as we impose no new requirements to VM configurations.
26ba25
26ba25
Fixes: a9994687cb9b ("vfio/display: core & wireup")
26ba25
Cc: qemu-stable@nongnu.org
26ba25
Cc: Gerd Hoffmann <kraxel@redhat.com>
26ba25
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
26ba25
(cherry picked from commit 8151a9c56d31eeeea872b8103c8b86d03c411667)
26ba25
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
26ba25
---
26ba25
 hw/vfio/pci.c | 2 +-
26ba25
 1 file changed, 1 insertion(+), 1 deletion(-)
26ba25
26ba25
diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c
26ba25
index 34b9d19..4683eb4 100644
26ba25
--- a/hw/vfio/pci.c
26ba25
+++ b/hw/vfio/pci.c
26ba25
@@ -3167,7 +3167,7 @@ static Property vfio_pci_dev_properties[] = {
26ba25
     DEFINE_PROP_PCI_HOST_DEVADDR("host", VFIOPCIDevice, host),
26ba25
     DEFINE_PROP_STRING("sysfsdev", VFIOPCIDevice, vbasedev.sysfsdev),
26ba25
     DEFINE_PROP_ON_OFF_AUTO("display", VFIOPCIDevice,
26ba25
-                            display, ON_OFF_AUTO_AUTO),
26ba25
+                            display, ON_OFF_AUTO_OFF),
26ba25
     DEFINE_PROP_UINT32("x-intx-mmap-timeout-ms", VFIOPCIDevice,
26ba25
                        intx.mmap_timeout, 1100),
26ba25
     DEFINE_PROP_BIT("x-vga", VFIOPCIDevice, features,
26ba25
-- 
26ba25
1.8.3.1
26ba25