]> review.fuel-infra Code Review - packages/centos6/qemu.git/blob - 0157-qxl-better-cleanup-for-surface-destroy.patch
add files in repository from qemu-1.2.0-24.el6.src.rpm
[packages/centos6/qemu.git] / 0157-qxl-better-cleanup-for-surface-destroy.patch
1 From 57ec733394ec42f8a144751de3b9406fb7e17217 Mon Sep 17 00:00:00 2001
2 From: Uri Lublin <uril@redhat.com>
3 Date: Tue, 11 Sep 2012 10:09:58 +0300
4 Subject: [PATCH] qxl: better cleanup for surface destroy
5
6 Add back a call to qxl_spice_destroy_surface_wait_complete() in qxl_spice_destroy_surface_wait(),
7 that was removed by commit c480bb7da465186b84d8427e068ef7502e47ffbf
8
9 It is needed to complete surface-removal cleanup, for non async.
10 For async, qxl_spice_destroy_surface_wait_complete is called upon operation completion.
11
12 Signed-off-by: Uri Lublin <uril@redhat.com>
13 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
14 (cherry picked from commit 753b8b0d77ba1b343a35f9679cc777ea10a62bba)
15
16 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
17 ---
18  hw/qxl.c | 1 +
19  1 file changed, 1 insertion(+)
20
21 diff --git a/hw/qxl.c b/hw/qxl.c
22 index 038a8bb..67f7100 100644
23 --- a/hw/qxl.c
24 +++ b/hw/qxl.c
25 @@ -201,6 +201,7 @@ static void qxl_spice_destroy_surface_wait(PCIQXLDevice *qxl, uint32_t id,
26          spice_qxl_destroy_surface_async(&qxl->ssd.qxl, id, (uintptr_t)cookie);
27      } else {
28          qxl->ssd.worker->destroy_surface_wait(qxl->ssd.worker, id);
29 +        qxl_spice_destroy_surface_wait_complete(qxl, id);
30      }
31  }
32  
33 -- 
34 1.7.12.1
35