From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=39600 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8rqS-00060e-1R for qemu-devel@nongnu.org; Sun, 10 Apr 2011 06:26:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8rqQ-0007Th-St for qemu-devel@nongnu.org; Sun, 10 Apr 2011 06:26:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8rqQ-0007TS-Je for qemu-devel@nongnu.org; Sun, 10 Apr 2011 06:26:14 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p3AAQDwL014614 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 10 Apr 2011 06:26:13 -0400 Received: from playa.tlv.redhat.com (dhcp-3-110.tlv.redhat.com [10.35.3.110]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p3AAQ76S013116 for ; Sun, 10 Apr 2011 06:26:13 -0400 From: Alon Levy Date: Sun, 10 Apr 2011 13:26:06 +0300 Message-Id: <1302431166-17771-5-git-send-email-alevy@redhat.com> In-Reply-To: <1302431166-17771-1-git-send-email-alevy@redhat.com> References: <1302431166-17771-1-git-send-email-alevy@redhat.com> Subject: [Qemu-devel] [PATCH 4/4] qxl: allow QXL_IO_LOG also in vga List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The driver may change us to vga mode and still issue a QXL_IO_LOG, which we can easily support. --- hw/qxl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/qxl.c b/hw/qxl.c index 86b98ee..4080325 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -943,7 +943,8 @@ static void ioport_write(void *opaque, uint32_t addr, uint32_t val) case QXL_IO_CREATE_PRIMARY: break; default: - if (d->mode == QXL_MODE_NATIVE || d->mode == QXL_MODE_COMPAT) + if (d->mode == QXL_MODE_NATIVE || d->mode == QXL_MODE_COMPAT + || (io_port == QXL_IO_LOG)) break; dprint(d, 1, "%s: unexpected port 0x%x in vga mode\n", __FUNCTION__, io_port); return; -- 1.7.4.2