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