dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame 0221-qxl-better-cleanup-for-surface-destroy.patch

Hans de Goede 93b7e3
From 2315ba0b57785d788828e6871e528c9ab368068f Mon Sep 17 00:00:00 2001
Hans de Goede 93b7e3
From: Uri Lublin <uril@redhat.com>
Hans de Goede 93b7e3
Date: Tue, 11 Sep 2012 10:09:58 +0300
Hans de Goede 93b7e3
Subject: [PATCH 221/293] qxl: better cleanup for surface destroy
Hans de Goede 93b7e3
Hans de Goede 93b7e3
Add back a call to qxl_spice_destroy_surface_wait_complete() in qxl_spice_destroy_surface_wait(),
Hans de Goede 93b7e3
that was removed by commit c480bb7da465186b84d8427e068ef7502e47ffbf
Hans de Goede 93b7e3
Hans de Goede 93b7e3
It is needed to complete surface-removal cleanup, for non async.
Hans de Goede 93b7e3
For async, qxl_spice_destroy_surface_wait_complete is called upon operation completion.
Hans de Goede 93b7e3
Hans de Goede 93b7e3
Signed-off-by: Uri Lublin <uril@redhat.com>
Hans de Goede 93b7e3
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Hans de Goede 93b7e3
---
Hans de Goede 93b7e3
 hw/qxl.c | 1 +
Hans de Goede 93b7e3
 1 file changed, 1 insertion(+)
Hans de Goede 93b7e3
Hans de Goede 93b7e3
diff --git a/hw/qxl.c b/hw/qxl.c
Hans de Goede 93b7e3
index 144a002..9f06f5e 100644
Hans de Goede 93b7e3
--- a/hw/qxl.c
Hans de Goede 93b7e3
+++ b/hw/qxl.c
Hans de Goede 93b7e3
@@ -201,6 +201,7 @@ static void qxl_spice_destroy_surface_wait(PCIQXLDevice *qxl, uint32_t id,
Hans de Goede 93b7e3
         spice_qxl_destroy_surface_async(&qxl->ssd.qxl, id, (uintptr_t)cookie);
Hans de Goede 93b7e3
     } else {
Hans de Goede 93b7e3
         qxl->ssd.worker->destroy_surface_wait(qxl->ssd.worker, id);
Hans de Goede 93b7e3
+        qxl_spice_destroy_surface_wait_complete(qxl, id);
Hans de Goede 93b7e3
     }
Hans de Goede 93b7e3
 }
Hans de Goede 93b7e3
 
Hans de Goede 93b7e3
-- 
Hans de Goede 93b7e3
1.7.12
Hans de Goede 93b7e3