yeahuh / rpms / qemu-kvm

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