WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH][QEMU] Clear bios framebuffer with minimal writes

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][QEMU] Clear bios framebuffer with minimal writes
From: Gary Grebus <ggrebus@xxxxxxxxxxxxxxx>
Date: Thu, 25 Oct 2007 11:23:23 -0400
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
Delivery-date: Thu, 25 Oct 2007 08:24:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C34664AC.176E5%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C34664AC.176E5%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, 2007-10-25 at 15:20 +0100, Keir Fraser wrote:
> On 24/10/07 22:04, "Ben Guthro" <bguthro@xxxxxxxxxxxxxxx> wrote:
> 
> > Support for VGA bios to clear framebuffer with minimal writes.
> > 
> > Signed-off-by: Ben Guthro <bguthro@xxxxxxxxxxxxxx>
> > Signed-off-by: Gary Grebus <ggrebus@xxxxxxxxxxxxxxx>
> 
> Is this really just a workaround for the insane-sounding case of Vista
> clearing the screen, as described in one of the comments? Do I understand
> correctly, and it looks like Vista does 4096 writes for each iteration of
> the rep stosw?

Yep.  This happens when resizing the screen in Vista.  It appears to do
this by executing the VGA BIOS code in some sort of emulation, and the
BIOS function to clear the screen (which uses a rep stosw) gets emulated
as 4096 separate writes.

This is so slow that occasionally some watchdog timer in Vista (that was
timing the BIOS emulation) would expire and cause a blue screen.

This fix was a bit of a hack.  It might be possible to speed up VGA
writes enough to make this unnecessary, but that was more of a challenge
than I wanted at the time. 

        /gary

-- 
Gary Grebus
Virtual Iron Software, Inc.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel