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] xen-unstable on HP dc7800 simply reboots

To: John Byrne <john.l.byrne@xxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen-unstable on HP dc7800 simply reboots
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 25 Oct 2007 08:49:10 +0100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 25 Oct 2007 00:44:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <471FFBD8.8080209@xxxxxx>
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: AcgW24cUxWu7ZYLOEdyGNwAWy6hiGQ==
Thread-topic: [Xen-devel] [PATCH] xen-unstable on HP dc7800 simply reboots
User-agent: Microsoft-Entourage/11.3.6.070618
On 25/10/07 03:13, "John Byrne" <john.l.byrne@xxxxxx> wrote:

>> Once I identified the problem revision, I went back to the tip to try to
>> debug it. (Sorry for any ambiguity.) Taking out get_memory_map is
>> sufficient;  get_edd and video don't seem to cause any problems.
>> Removing the lidt changes nothing. Adding a "ret" after the .Lmem88 in
>> mem.S confirms that the problem is in the e820 call. I'm currently
>> trying to see if the descriptor table is getting corrupted during the
>> BIOS calls.
> 
> A lot of work to find a one-line fix. There is no sign of any corruption
> in the GDT, but you do need to reload the GDT before transitioning back
> to real mode. I am asking a BIOS person might require this, but, in the
> meantime, I cannot see how this patch will cause trouble on any other
> system and it seems to fix mine. I am just a little uncomfortable
> because I don't really understand why it is required.

This is a very reasonable thing to do actually, if for no other reason than
all bootloaders appear to do it every time they enter protected mode.
There's safety in numbers!

We should probably frob the a20 gate on entry/exit to real mode too, for the
truly authentic real-mode experience. Nothing's yet broken due to lack of it
though.

 -- Keir



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