From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49128) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPFOb-0007qw-IY for qemu-devel@nongnu.org; Wed, 25 May 2011 10:49:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPFOa-0008OT-Kv for qemu-devel@nongnu.org; Wed, 25 May 2011 10:49:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60407) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPFOa-0008OL-EA for qemu-devel@nongnu.org; Wed, 25 May 2011 10:49:12 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4PEnBmx022709 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 25 May 2011 10:49:11 -0400 Date: Wed, 25 May 2011 17:49:06 +0300 From: Alon Levy Message-ID: <20110525144906.GJ31654@playa.tlv.redhat.com> References: <1306331629-31041-1-git-send-email-alevy@redhat.com> <4DDD0CCB.2000005@redhat.com> <20110525143358.GI31654@playa.tlv.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110525143358.GI31654@playa.tlv.redhat.com> Subject: Re: [Qemu-devel] [RFC] reduce reported VGA framebuffer to 8 MiB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann , qemu-devel@nongnu.org On Wed, May 25, 2011 at 05:33:59PM +0300, Alon Levy wrote: > On Wed, May 25, 2011 at 04:06:03PM +0200, Gerd Hoffmann wrote: > > On 05/25/11 15:53, Alon Levy wrote: > > >Without this windows xp guests set a 4 bits per pixel graphics mode. > > > > Hmm? Never seen this. Details please. > > When I start a windows xp guest with -vga qxl and no qxl driver installed I get > a 16 color (4 bits) display mode, you notice it straight away because it's just ugly. > > When I looked at the VBE calls the only difference between the calls done with -vga qxl > and -vga std seemed to be the reported size (reported in 64K chunks, so for qxl the val > is 0x400 by default, and for std vga it is 0x80). With this patch windows sets the right > mode (32 bit color). > > Actually it seems this patch make the qxl driver refuse to load, I'm trying to figure out > why (or if in fact it's this patch). It is the patch. An alternative that works with and without qxl driver, and fixes the problem I reported, is to just change the VBE reported ram size to at most VGA_RAM_SIZE (== 8MiB). > > > > > cheers, > > Gerd > > >