summaryrefslogtreecommitdiffstats
path: root/hw/qxl.h
diff options
context:
space:
mode:
authorGerd Hoffmann2011-07-20 11:20:53 +0200
committerGerd Hoffmann2011-08-01 12:43:49 +0200
commit14898cf6e9994319e7947b223f637f964f9256e0 (patch)
treeb3151427836ae2696a3f572eb97c2d594d60f912 /hw/qxl.h
parentspice/qxl: move worker wrappers (diff)
downloadqemu-14898cf6e9994319e7947b223f637f964f9256e0.tar.gz
qemu-14898cf6e9994319e7947b223f637f964f9256e0.tar.xz
qemu-14898cf6e9994319e7947b223f637f964f9256e0.zip
qxl: fix surface tracking & locking
Surface tracking needs proper locking since it is used from vcpu and spice worker threads, add it. Also reset the surface counter when zapping all surfaces. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/qxl.h')
-rw-r--r--hw/qxl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/qxl.h b/hw/qxl.h
index e62b9d00b2..5d0e85edb3 100644
--- a/hw/qxl.h
+++ b/hw/qxl.h
@@ -55,6 +55,8 @@ typedef struct PCIQXLDevice {
} guest_surfaces;
QXLPHYSICAL guest_cursor;
+ QemuMutex track_lock;
+
/* thread signaling */
pthread_t main;
int pipe[2];