qxl: don't render stuff when the vm is stopped.
commit7844e448d1b674ac136a89018fd5a7e44fe7c73c
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 15 Feb 2012 13:04:44 +0000 (15 14:04 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 21 Feb 2012 09:36:04 +0000 (21 10:36 +0100)
tree4796a8da2d61a0954319e0faf53f075a2f29cec1
parentf4a8a424fceb0f79bbd9f7ae4285c8a58eb5598e
qxl: don't render stuff when the vm is stopped.

This patch fixes the local qxl renderer to not kick spice-server
in case the vm is stopped.  First it is largely pointless because
we ask spice-server to process all not-yet processed commands when
the vm is stopped, so there isn't much do do anyway.  Second we
avoid triggering an assert in spice-server.

The patch makes sure we still honor redraw requests, even if we don't
ask spice-server for updates.  This is needed to handle displaysurface
changes with a stopped vm correctly.

With this patch applied it is possible to take screen shots (via
screendump monitor command) from a qxl gpu even in case the guest
is stopped.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl-render.c