summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-09-05 08:25:08 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-09-12 08:09:47 +0200
commitb1af98ba3e4c4fd44f233fc7240df2612baeb1c2 (patch)
treea27d0dcd69d09b40dcc6bd2c7bbee26cc0e2f06f /hw
parente0a1e32dbc41e6b2aabb436a9417dfd32177a3dc (diff)
spice: switch to queue for vga mode updates
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/qxl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 5b3f484266..257a37d3c5 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -597,9 +597,9 @@ static int interface_get_command(QXLInstance *sin, struct QXLCommandExt *ext)
case QXL_MODE_VGA:
ret = false;
qemu_mutex_lock(&qxl->ssd.lock);
- if (qxl->ssd.update != NULL) {
- update = qxl->ssd.update;
- qxl->ssd.update = NULL;
+ update = QTAILQ_FIRST(&qxl->ssd.updates);
+ if (update != NULL) {
+ QTAILQ_REMOVE(&qxl->ssd.updates, update, next);
*ext = update->ext;
ret = true;
}