yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
169b9a
From 24d5cb5f451e6e41456e5967d326fa51c844b22f Mon Sep 17 00:00:00 2001
169b9a
From: Tarun Gupta <tgupta@redhat.com>
169b9a
Date: Wed, 20 Jun 2018 18:54:25 +0200
169b9a
Subject: [PATCH 17/17] vfio/pci: Default display option to "off"
169b9a
169b9a
RH-Author: Tarun Gupta <tgupta@redhat.com>
169b9a
Message-id: <1529520865-18127-12-git-send-email-tgupta@redhat.com>
169b9a
Patchwork-id: 80917
169b9a
O-Subject: [RHEL7.6 qemu-kvm PATCH v3 11/11] vfio/pci: Default display option to "off"
169b9a
Bugzilla: 1555246
169b9a
RH-Acked-by: Alex Williamson <alex.williamson@redhat.com>
169b9a
RH-Acked-by: Gerd Hoffmann <kraxel@redhat.com>
169b9a
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
169b9a
169b9a
Commit a9994687cb9b ("vfio/display: core & wireup") added display
169b9a
support to vfio-pci with the default being "auto", which breaks
169b9a
existing VMs when the vGPU requires GL support but had no previous
169b9a
requirement for a GL compatible configuration.  "Off" is the safer
169b9a
default as we impose no new requirements to VM configurations.
169b9a
169b9a
Fixes: a9994687cb9b ("vfio/display: core & wireup")
169b9a
169b9a
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
169b9a
169b9a
(cherry picked from upstream qemu
169b9a
8151a9c56d31eeeea872b8103c8b86d03c411667)
169b9a
169b9a
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
169b9a
---
169b9a
 hw/misc/vfio.c | 2 +-
169b9a
 1 file changed, 1 insertion(+), 1 deletion(-)
169b9a
169b9a
diff --git a/hw/misc/vfio.c b/hw/misc/vfio.c
169b9a
index dd3efb3..f91eecb 100644
169b9a
--- a/hw/misc/vfio.c
169b9a
+++ b/hw/misc/vfio.c
169b9a
@@ -4475,7 +4475,7 @@ static Property vfio_pci_dev_properties[] = {
169b9a
     DEFINE_PROP_PCI_HOST_DEVADDR("host", VFIOPCIDevice, host),
169b9a
     DEFINE_PROP_STRING("sysfsdev", VFIOPCIDevice, vbasedev.sysfsdev),
169b9a
     DEFINE_PROP_ON_OFF_AUTO("display", VFIOPCIDevice,
169b9a
-                            display, ON_OFF_AUTO_AUTO),
169b9a
+                            display, ON_OFF_AUTO_OFF),
169b9a
     DEFINE_PROP_UINT32("x-intx-mmap-timeout-ms", VFIOPCIDevice,
169b9a
                        intx.mmap_timeout, 1100),
169b9a
     DEFINE_PROP_BIT("x-vga", VFIOPCIDevice, features,
169b9a
-- 
169b9a
1.8.3.1
169b9a