Blame SOURCES/kvm-qxl-fix-local-renderer-crash.patch

1bdc94
From e79d4d03368f7346249033e0f5ad2732228852ca Mon Sep 17 00:00:00 2001
1bdc94
From: Gerd Hoffmann <kraxel@redhat.com>
1bdc94
Date: Wed, 13 Jun 2018 13:15:57 +0200
1bdc94
Subject: [PATCH 02/89] qxl: fix local renderer crash
1bdc94
MIME-Version: 1.0
1bdc94
Content-Type: text/plain; charset=UTF-8
1bdc94
Content-Transfer-Encoding: 8bit
1bdc94
1bdc94
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
1bdc94
Message-id: <20180613131557.12255-2-kraxel@redhat.com>
1bdc94
Patchwork-id: 80662
1bdc94
O-Subject: [RHEL-7.6 qemu-kvm-rhev PATCH 1/1] qxl: fix local renderer crash
1bdc94
Bugzilla: 1567733
1bdc94
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
1bdc94
RH-Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
1bdc94
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
1bdc94
1bdc94
Make sure we only ask the spice local renderer for display updates in
1bdc94
case we have a valid primary surface.  Without that spice is confused
1bdc94
and throws errors in case a display update request (triggered by
1bdc94
screendump for example) happens in parallel to a mode switch and hits
1bdc94
the race window where the old primary surface is gone and the new isn't
1bdc94
establisted yet.
1bdc94
1bdc94
Cc: qemu-stable@nongnu.org
1bdc94
Fixes: https://bugzilla.redhat.com//show_bug.cgi?id=1567733
1bdc94
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
1bdc94
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
1bdc94
Message-id: 20180427115528.345-1-kraxel@redhat.com
1bdc94
(cherry picked from commit 5bd5c27c7d284d01477c5cc022ce22438c46bf9f)
1bdc94
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
1bdc94
---
1bdc94
 hw/display/qxl-render.c | 3 ++-
1bdc94
 1 file changed, 2 insertions(+), 1 deletion(-)
1bdc94
1bdc94
diff --git a/hw/display/qxl-render.c b/hw/display/qxl-render.c
1bdc94
index e7ac4f8..c62b9a5 100644
1bdc94
--- a/hw/display/qxl-render.c
1bdc94
+++ b/hw/display/qxl-render.c
1bdc94
@@ -169,7 +169,8 @@ void qxl_render_update(PCIQXLDevice *qxl)
1bdc94
 
1bdc94
     qemu_mutex_lock(&qxl->ssd.lock);
1bdc94
 
1bdc94
-    if (!runstate_is_running() || !qxl->guest_primary.commands) {
1bdc94
+    if (!runstate_is_running() || !qxl->guest_primary.commands ||
1bdc94
+        qxl->mode == QXL_MODE_UNDEFINED) {
1bdc94
         qxl_render_update_area_unlocked(qxl);
1bdc94
         qemu_mutex_unlock(&qxl->ssd.lock);
1bdc94
         return;
1bdc94
-- 
1bdc94
1.8.3.1
1bdc94