From patchwork Tue Oct 2 09:39:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alon Levy X-Patchwork-Id: 188436 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3BCEF2C00AA for ; Tue, 2 Oct 2012 19:39:38 +1000 (EST) Received: from localhost ([::1]:47830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TIywy-0008CB-6F for incoming@patchwork.ozlabs.org; Tue, 02 Oct 2012 05:39:36 -0400 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 Received: from garlic.tlv.redhat.com (spice-ovirt.tlv.redhat.com [10.35.4.71]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q929dFI6024259; Tue, 2 Oct 2012 05:39:15 -0400 From: Alon Levy To: qemu-devel@nongnu.org, kraxel@redhat.com Date: Tue, 2 Oct 2012 11:39:14 +0200 Message-Id: <1349170754-23967-1-git-send-email-alevy@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: pbonzini@redhat.com Subject: [Qemu-devel] [PATCH] hw/qxl: fix condition for exiting guest_bug X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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; }