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