2012-10-28 18:05:07 +00:00
|
|
|
From 57ec733394ec42f8a144751de3b9406fb7e17217 Mon Sep 17 00:00:00 2001
|
2012-09-20 19:27:28 +00:00
|
|
|
From: Uri Lublin <uril@redhat.com>
|
|
|
|
Date: Tue, 11 Sep 2012 10:09:58 +0300
|
2012-10-28 18:05:07 +00:00
|
|
|
Subject: [PATCH] qxl: better cleanup for surface destroy
|
2012-09-20 19:27:28 +00:00
|
|
|
|
|
|
|
Add back a call to qxl_spice_destroy_surface_wait_complete() in qxl_spice_destroy_surface_wait(),
|
|
|
|
that was removed by commit c480bb7da465186b84d8427e068ef7502e47ffbf
|
|
|
|
|
|
|
|
It is needed to complete surface-removal cleanup, for non async.
|
|
|
|
For async, qxl_spice_destroy_surface_wait_complete is called upon operation completion.
|
|
|
|
|
|
|
|
Signed-off-by: Uri Lublin <uril@redhat.com>
|
|
|
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
2012-10-28 18:05:07 +00:00
|
|
|
(cherry picked from commit 753b8b0d77ba1b343a35f9679cc777ea10a62bba)
|
|
|
|
|
|
|
|
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|
2012-09-20 19:27:28 +00:00
|
|
|
---
|
|
|
|
hw/qxl.c | 1 +
|
|
|
|
1 file changed, 1 insertion(+)
|
|
|
|
|
|
|
|
diff --git a/hw/qxl.c b/hw/qxl.c
|
2012-10-28 18:05:07 +00:00
|
|
|
index 038a8bb..67f7100 100644
|
2012-09-20 19:27:28 +00:00
|
|
|
--- a/hw/qxl.c
|
|
|
|
+++ b/hw/qxl.c
|
|
|
|
@@ -201,6 +201,7 @@ static void qxl_spice_destroy_surface_wait(PCIQXLDevice *qxl, uint32_t id,
|
|
|
|
spice_qxl_destroy_surface_async(&qxl->ssd.qxl, id, (uintptr_t)cookie);
|
|
|
|
} else {
|
|
|
|
qxl->ssd.worker->destroy_surface_wait(qxl->ssd.worker, id);
|
|
|
|
+ qxl_spice_destroy_surface_wait_complete(qxl, id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|