aboutsummaryrefslogtreecommitdiff
path: root/hw/qxl.h
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2011-07-20 12:20:53 +0300
committerGerd Hoffmann <kraxel@redhat.com>2011-08-01 12:43:49 +0200
commit14898cf6e9994319e7947b223f637f964f9256e0 (patch)
treeb3151427836ae2696a3f572eb97c2d594d60f912 /hw/qxl.h
parentaee32bf333b13994d9eafb768129e4c2c8688887 (diff)
downloadqemu-14898cf6e9994319e7947b223f637f964f9256e0.zip
qemu-14898cf6e9994319e7947b223f637f964f9256e0.tar.gz
qemu-14898cf6e9994319e7947b223f637f964f9256e0.tar.bz2
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 e62b9d0..5d0e85e 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];