From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIywm-00083o-E5 for qemu-devel@nongnu.org; Tue, 02 Oct 2012 05:39:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TIywg-0001dW-OD for qemu-devel@nongnu.org; Tue, 02 Oct 2012 05:39:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27992) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIywg-0001dL-G1 for qemu-devel@nongnu.org; Tue, 02 Oct 2012 05:39:18 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q929dGq6009086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 2 Oct 2012 05:39:16 -0400 From: Alon Levy Date: Tue, 2 Oct 2012 11:39:14 +0200 Message-Id: <1349170754-23967-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH] hw/qxl: fix condition for exiting guest_bug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, kraxel@redhat.com Cc: pbonzini@redhat.com Reported and suggested by Paolo Bonzini, thanks. Signed-off-by: Alon Levy --- hw/qxl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/qxl.c b/hw/qxl.c index 33169f3..58c4643 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1461,7 +1461,7 @@ static void ioport_write(void *opaque, target_phys_addr_t addr, qxl_async_io async = QXL_SYNC; uint32_t orig_io_port = io_port; - if (d->guest_bug && !io_port == QXL_IO_RESET) { + if (d->guest_bug && io_port != QXL_IO_RESET) { return; } -- 1.7.12.1