qxl: fix surface tracking & locking
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 20 Jul 2011 09:20:53 +0000 (12:20 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 1 Aug 2011 10:43:49 +0000 (12:43 +0200)
commit64e803471f2ba655b5039d08b62686cbffa45c4c
treeb3151427836ae2696a3f572eb97c2d594d60f912
parent44eaedc5332d947e958a3f72c12cf54ad27d9b54
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>
hw/qxl.c
hw/qxl.h