diff options
author | Gerd Hoffmann | 2011-07-20 11:20:53 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2011-08-01 12:43:49 +0200 |
commit | 14898cf6e9994319e7947b223f637f964f9256e0 (patch) | |
tree | b3151427836ae2696a3f572eb97c2d594d60f912 /hw/qxl.h | |
parent | spice/qxl: move worker wrappers (diff) | |
download | qemu-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -55,6 +55,8 @@ typedef struct PCIQXLDevice { } guest_surfaces; QXLPHYSICAL guest_cursor; + QemuMutex track_lock; + /* thread signaling */ pthread_t main; int pipe[2]; |