yeahuh / rpms / qemu-kvm

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