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)
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];