Blame SOURCES/kvm-virtio-gpu-don-t-clear-QemuUIInfo-information-on-res.patch

4a2fec
From 778b752e1808475fe4c2086e5e0c523bff7b30b9 Mon Sep 17 00:00:00 2001
4a2fec
From: Gerd Hoffmann <kraxel@redhat.com>
4a2fec
Date: Thu, 5 Oct 2017 08:39:50 +0200
4a2fec
Subject: [PATCH 01/69] virtio-gpu: don't clear QemuUIInfo information on reset
4a2fec
MIME-Version: 1.0
4a2fec
Content-Type: text/plain; charset=UTF-8
4a2fec
Content-Transfer-Encoding: 8bit
4a2fec
4a2fec
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
4a2fec
Message-id: <20171005083950.12662-2-kraxel@redhat.com>
4a2fec
Patchwork-id: 76812
4a2fec
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH 1/1] virtio-gpu: don't clear QemuUIInfo information on reset
4a2fec
Bugzilla: 1460595
4a2fec
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
4a2fec
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
4a2fec
RH-Acked-by: Thomas Huth <thuth@redhat.com>
4a2fec
4a2fec
Don't reset window layout information (passed via virtio_gpu_ui_info) on
4a2fec
device reset, so the user interface window layout will be kept intact
4a2fec
over reboots.  The head size and position was commented out already, so
4a2fec
this patch just drops the dead code.  Additionally the enabled head mask
4a2fec
must be kept so multihead setups work properly too.
4a2fec
4a2fec
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1460595
4a2fec
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
4a2fec
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
4a2fec
Message-id: 20170906142058.2460-1-kraxel@redhat.com
4a2fec
(cherry picked from commit 79d16c21a565927943486b26789caa62413ff371)
4a2fec
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
---
4a2fec
 hw/display/virtio-gpu.c | 12 ------------
4a2fec
 1 file changed, 12 deletions(-)
4a2fec
4a2fec
diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c
4a2fec
index 6aae147..4e66535 100644
4a2fec
--- a/hw/display/virtio-gpu.c
4a2fec
+++ b/hw/display/virtio-gpu.c
4a2fec
@@ -1195,17 +1195,6 @@ static void virtio_gpu_reset(VirtIODevice *vdev)
4a2fec
         virtio_gpu_resource_destroy(g, res);
4a2fec
     }
4a2fec
     for (i = 0; i < g->conf.max_outputs; i++) {
4a2fec
-#if 0
4a2fec
-        g->req_state[i].x = 0;
4a2fec
-        g->req_state[i].y = 0;
4a2fec
-        if (i == 0) {
4a2fec
-            g->req_state[0].width = 1024;
4a2fec
-            g->req_state[0].height = 768;
4a2fec
-        } else {
4a2fec
-            g->req_state[i].width = 0;
4a2fec
-            g->req_state[i].height = 0;
4a2fec
-        }
4a2fec
-#endif
4a2fec
         g->scanout[i].resource_id = 0;
4a2fec
         g->scanout[i].width = 0;
4a2fec
         g->scanout[i].height = 0;
4a2fec
@@ -1213,7 +1202,6 @@ static void virtio_gpu_reset(VirtIODevice *vdev)
4a2fec
         g->scanout[i].y = 0;
4a2fec
         g->scanout[i].ds = NULL;
4a2fec
     }
4a2fec
-    g->enabled_output_bitmask = 1;
4a2fec
 
4a2fec
 #ifdef CONFIG_VIRGL
4a2fec
     if (g->use_virgl_renderer) {
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec