From patchwork Mon Oct 8 10:49:48 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 189988 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 8AAAD2C030F for ; Mon, 8 Oct 2012 21:59:15 +1100 (EST) Received: from localhost ([::1]:41933 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLAvD-0001hB-Ry for incoming@patchwork.ozlabs.org; Mon, 08 Oct 2012 06:50:51 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLAuL-0008Bo-9O for qemu-devel@nongnu.org; Mon, 08 Oct 2012 06:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLAuI-0006dN-IY for qemu-devel@nongnu.org; Mon, 08 Oct 2012 06:49:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59246) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLAuI-0006d1-Ag for qemu-devel@nongnu.org; Mon, 08 Oct 2012 06:49:54 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q98AnrW6027453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 8 Oct 2012 06:49:53 -0400 Received: from rincewind.home.kraxel.org (ovpn-116-30.ams2.redhat.com [10.36.116.30]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q98Anqhi030900; Mon, 8 Oct 2012 06:49:53 -0400 Received: by rincewind.home.kraxel.org (Postfix, from userid 500) id 6E87043FC8; Mon, 8 Oct 2012 12:49:52 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Mon, 8 Oct 2012 12:49:48 +0200 Message-Id: <1349693391-32704-6-git-send-email-kraxel@redhat.com> In-Reply-To: <1349693391-32704-1-git-send-email-kraxel@redhat.com> References: <1349693391-32704-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.132.183.28 Cc: Alon Levy , Gerd Hoffmann Subject: [Qemu-devel] [PATCH 5/8] 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 From: Alon Levy Reported and suggested by Paolo Bonzini, thanks. Signed-off-by: Alon Levy Signed-off-by: Gerd Hoffmann --- hw/qxl.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index e99ed55..772b6c0 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; }