From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLAuL-0008Bq-PL for qemu-devel@nongnu.org; Mon, 08 Oct 2012 06:50:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLAuK-0006dv-Ml for qemu-devel@nongnu.org; Mon, 08 Oct 2012 06:49:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLAuK-0006dg-F9 for qemu-devel@nongnu.org; Mon, 08 Oct 2012 06:49:56 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q98AntVg016565 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 8 Oct 2012 06:49:55 -0400 From: Gerd Hoffmann Date: Mon, 8 Oct 2012 12:49:46 +0200 Message-Id: <1349693391-32704-4-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> Subject: [Qemu-devel] [PATCH 3/8] qxl: fix range check for rev3 io commands. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann Enables QXL_IO_FLUSH_SURFACES_ASYNC and QXL_IO_FLUSH_RELEASE which are part of the qxl rev3 feature set. 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 3c82c2a..eb7707c 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -1466,7 +1466,7 @@ static void ioport_write(void *opaque, target_phys_addr_t addr, } if (d->revision <= QXL_REVISION_STABLE_V10 && - io_port >= QXL_IO_FLUSH_SURFACES_ASYNC) { + io_port > QXL_IO_FLUSH_RELEASE) { qxl_set_guest_bug(d, "unsupported io %d for revision %d\n", io_port, d->revision); return; -- 1.7.1