From patchwork Tue Oct 2 09:39:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: hw/qxl: fix condition for exiting guest_bug Date: Mon, 01 Oct 2012 23:39:14 -0000 From: Alon Levy X-Patchwork-Id: 188436 Message-Id: <1349170754-23967-1-git-send-email-alevy@redhat.com> 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; }