From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TC53I-0004fu-Lv for qemu-devel@nongnu.org; Thu, 13 Sep 2012 04:45:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TC53C-00016U-Tg for qemu-devel@nongnu.org; Thu, 13 Sep 2012 04:45:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TC53C-00016E-LV for qemu-devel@nongnu.org; Thu, 13 Sep 2012 04:45:30 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8D8jUTP030526 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 13 Sep 2012 04:45:30 -0400 From: Gerd Hoffmann Date: Thu, 13 Sep 2012 10:45:23 +0200 Message-Id: <1347525926-28563-8-git-send-email-kraxel@redhat.com> In-Reply-To: <1347525926-28563-1-git-send-email-kraxel@redhat.com> References: <1347525926-28563-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH 07/10] qxl: better cleanup for surface destroy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Uri Lublin , Gerd Hoffmann From: Uri Lublin 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 Signed-off-by: Gerd Hoffmann --- hw/qxl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index e539134..12597e7 100644 --- 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); } } -- 1.7.1