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: Gary Grebus <ggrebus@xxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][QEMU] Clear bios framebuffer with minimal writes
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 25 Oct 2007 16:34:54 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ben Guthro <bguthro@xxxxxxxxxxxxxxx>
Delivery-date: Thu, 25 Oct 2007 08:35:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1193325803.11817.302.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcgXHJcA1aPFvoMPEdyb3gAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH][QEMU] Clear bios framebuffer with minimal writes
User-agent: Microsoft-Entourage/11.3.6.070618
On 25/10/07 16:23, "Gary Grebus" <ggrebus@xxxxxxxxxxxxxxx> wrote:

>> 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.

Ugh, that is awkward. Did you do this hack before the stdvga
emulation-in-xen and buffered-io patch that you guys also sent out today? I
wonder whether that speeds up vga writes enough, or whether you needed this
hack despite the speedups that other patch achieved? Overall, I guess I'm
not against this patch even though it is a bit sleazy. :-) But obviously
it's even better if the problem goes away by other means...

 -- Keir



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