提交 17268d54 编写于 作者: G Gerd Hoffmann

qxl: locking fix

One spice worker call lacks the unlock/relock calls,
which may lead to deadlocks, add them.
Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
上级 b67737a6
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册