From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoRoe-0003w5-Bw for qemu-devel@nongnu.org; Tue, 20 Oct 2015 03:58:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoRoa-00033t-9M for qemu-devel@nongnu.org; Tue, 20 Oct 2015 03:58:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoRoa-00033n-3z for qemu-devel@nongnu.org; Tue, 20 Oct 2015 03:58:36 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 83684A8D for ; Tue, 20 Oct 2015 07:58:35 +0000 (UTC) From: Gerd Hoffmann Date: Tue, 20 Oct 2015 09:58:32 +0200 Message-Id: <1445327912-29944-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] qxl: lock current_async update in qxl_soft_reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , Gerd Hoffmann Cc: Paolo Bonzini Signed-off-by: Gerd Hoffmann --- hw/display/qxl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/display/qxl.c b/hw/display/qxl.c index 9c961da..20dc72e 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -1156,7 +1156,9 @@ static void qxl_soft_reset(PCIQXLDevice *d) trace_qxl_soft_reset(d->id); qxl_check_state(d); qxl_clear_guest_bug(d); + qemu_mutex_lock(&d->async_lock); d->current_async = QXL_UNDEFINED_IO; + qemu_mutex_unlock(&d->async_lock); if (d->id == 0) { qxl_enter_vga_mode(d); -- 1.8.3.1