qxl: fix guest cursor tracking
commit30f6da6656c94964ba8677928588592d9667007e
authorYonit Halperin <yhalperi@redhat.com>
Tue, 18 Oct 2011 16:58:54 +0000 (18 18:58 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 25 Oct 2011 12:00:54 +0000 (25 14:00 +0200)
treeec225acda612000a98d710f11c988654ac95ac89
parent78e60ba53d5bf3c8b59aada8c22c1bd3aed3d344
qxl: fix guest cursor tracking

(1) If the guest cursor command is empty, don't reload it after migration.
(2) Cleaning the guest cursor when it is released by
    the spice server. In addition, explicitly reset the
    cursor in spice upon destroying the primary surface
    (was done by spice-server implicitly). This will prevent
    access to pci memory that was released.

RHBZ: 744518

Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/qxl.c