[Spice-commits] Branch 'spice.kvm.v28' - hw/qxl.c
Gerd Hoffmann
kraxel at kemper.freedesktop.org
Fri Feb 18 08:05:28 PST 2011
hw/qxl.c | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit cfa53b4ed60ad378fc243e01bd1a66e743715ad5
Author: Alon Levy <alevy at redhat.com>
Date: Thu Jan 27 14:41:24 2011 +0200
hw/qxl: three more unlocks
diff --git a/hw/qxl.c b/hw/qxl.c
index 0c715d5..d74ecef 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -803,14 +803,18 @@ static void qxl_add_memslot(PCIQXLDevice *d, uint32_t slot_id, uint64_t delta)
static void qxl_del_memslot(PCIQXLDevice *d, uint32_t slot_id)
{
dprint(d, 1, "%s: slot %d\n", __FUNCTION__, slot_id);
+ qxl_unlock_iothread(&d->ssd);
d->ssd.worker->del_memslot(d->ssd.worker, MEMSLOT_GROUP_HOST, slot_id);
+ qxl_lock_iothread(&d->ssd);
d->guest_slots[slot_id].active = 0;
}
static void qxl_reset_memslots(PCIQXLDevice *d)
{
dprint(d, 1, "%s:\n", __FUNCTION__);
+ qxl_unlock_iothread(&d->ssd);
d->ssd.worker->reset_memslots(d->ssd.worker);
+ qxl_lock_iothread(&d->ssd);
memset(&d->guest_slots, 0, sizeof(d->guest_slots));
}
@@ -874,7 +878,9 @@ static void qxl_create_guest_primary(PCIQXLDevice *qxl, int loadvm)
qxl->mode = QXL_MODE_NATIVE;
qxl->cmdflags = 0;
+ qxl_unlock_iothread(&qxl->ssd);
qxl->ssd.worker->create_primary_surface(qxl->ssd.worker, 0, &surface);
+ qxl_lock_iothread(&qxl->ssd);
/* for local rendering */
qxl_render_resize(qxl);
More information about the Spice-commits
mailing list