diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2011-07-20 12:20:53 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2011-08-01 12:43:49 +0200 |
commit | 14898cf6e9994319e7947b223f637f964f9256e0 (patch) | |
tree | b3151427836ae2696a3f572eb97c2d594d60f912 /hw/qxl.h | |
parent | aee32bf333b13994d9eafb768129e4c2c8688887 (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.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]; |