diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-05 08:25:08 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-12 08:09:47 +0200 |
commit | b1af98ba3e4c4fd44f233fc7240df2612baeb1c2 (patch) | |
tree | a27d0dcd69d09b40dcc6bd2c7bbee26cc0e2f06f /hw | |
parent | e0a1e32dbc41e6b2aabb436a9417dfd32177a3dc (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } |