902636
From 8f9f4d8d52ebb7878543ac0b84cc372477041e33 Mon Sep 17 00:00:00 2001
902636
From: Cornelia Huck <cohuck@redhat.com>
902636
Date: Wed, 1 Apr 2020 16:13:50 -0400
902636
Subject: [PATCH 2/2] compat: disable 'edid' for virtio-gpu-ccw
902636
902636
RH-Author: Cornelia Huck <cohuck@redhat.com>
902636
Message-id: <20200401161350.20462-1-cohuck@redhat.com>
902636
Patchwork-id: 94523
902636
O-Subject: [RHEL-AV-8.2.1 qemu-kvm PATCH v2] compat: disable 'edid' for virtio-gpu-ccw
902636
Bugzilla: 1816793
902636
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
902636
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
902636
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
902636
902636
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1816793
902636
Branch: rhel-av-8.2.1
902636
Brew: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=27629804
902636
Upstream: downstream only
902636
Tested: verified that for a virtio-gpu-ccw device 'edid' is false with
902636
        a s390-ccw-virtio-rhel7.6.0 machine and true with a
902636
        s390-ccw-virtio-rhel8.2.0 (s390x does not have the 8.0 or 8.1
902636
        machine types)
902636
902636
hw_compat_rhel_8_0 copied the original upstream version of
902636
disabling 'edid' for virtio-gpu-pci only (not following later
902636
changes). Switch it to virtio-gpu-device, following upstream
902636
02501fc39381 ("compat: disable edid on correct virtio-gpu device").
902636
902636
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
902636
Signed-off-by: Jon Maloy <jmaloy.redhat.com>
902636
---
902636
 hw/core/machine.c | 2 +-
902636
 1 file changed, 1 insertion(+), 1 deletion(-)
902636
902636
diff --git a/hw/core/machine.c b/hw/core/machine.c
902636
index e0e0eec8bf..5a025d1af2 100644
902636
--- a/hw/core/machine.c
902636
+++ b/hw/core/machine.c
902636
@@ -72,7 +72,7 @@ GlobalProperty hw_compat_rhel_8_0[] = {
902636
     /* hw_compat_rhel_8_0 from hw_compat_4_0 */
902636
     { "virtio-vga",     "edid", "false" },
902636
     /* hw_compat_rhel_8_0 from hw_compat_4_0 */
902636
-    { "virtio-gpu-pci", "edid", "false" },
902636
+    { "virtio-gpu-device", "edid", "false" },
902636
     /* hw_compat_rhel_8_0 from hw_compat_4_0 */
902636
     { "virtio-device", "use-started", "false" },
902636
     /* hw_compat_rhel_8_0 from hw_compat_3_1 - that was added in 4.1 */
902636
-- 
902636
2.18.2
902636