]> git.ipfire.org Git - thirdparty/qemu.git/commit
qxl: fix local renderer crash
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 27 Apr 2018 11:55:28 +0000 (13:55 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:45:03 +0000 (20:45 -0500)
commitecd54d6670e1672579dec578eae8a99b5d19f046
tree3a4e5f5fd58cd620bdae6465e7f342ab26272c61
parent1378cb9db5ab3cebc1dcb26eea62fa21490dcdec
qxl: fix local renderer crash

Make sure we only ask the spice local renderer for display updates in
case we have a valid primary surface.  Without that spice is confused
and throws errors in case a display update request (triggered by
screendump for example) happens in parallel to a mode switch and hits
the race window where the old primary surface is gone and the new isn't
establisted yet.

Cc: qemu-stable@nongnu.org
Fixes: https://bugzilla.redhat.com//show_bug.cgi?id=1567733
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20180427115528.345-1-kraxel@redhat.com
(cherry picked from commit 5bd5c27c7d284d01477c5cc022ce22438c46bf9f)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/display/qxl-render.c