[Spice-commits] Branch 'spice.v28' - hw/qxl.c

Gerd Hoffmann kraxel at kemper.freedesktop.org
Fri Jan 21 02:00:34 PST 2011


 hw/qxl.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit fa6b53c60f2e0487524c7bd4684f6047e1db2ae9
Author: Gerd Hoffmann <kraxel at redhat.com>
Date:   Fri Jan 21 10:32:03 2011 +0100

    qxl: locking fix

diff --git a/hw/qxl.c b/hw/qxl.c
index 81be592..0cb4fe9 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -866,7 +866,9 @@ static void qxl_destroy_primary(PCIQXLDevice *d)
     dprint(d, 1, "%s\n", __FUNCTION__);
 
     d->mode = QXL_MODE_UNDEFINED;
+    qemu_mutex_unlock_iothread();
     d->ssd.worker->destroy_primary_surface(d->ssd.worker, 0);
+    qemu_mutex_lock_iothread();
 }
 
 static void qxl_set_mode(PCIQXLDevice *d, int modenr, int loadvm)


More information about the Spice-commits mailing list