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] Fix for x86_64 boot failures due tobadsegment se

To: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>, "Stephen C. Tweedie" <sct@xxxxxxxxxx>
Subject: Re: [Xen-devel] [Patch] Fix for x86_64 boot failures due tobadsegment setup for protected mode.
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Fri, 10 Nov 2006 17:25:39 +0000
Cc: "Yu, Wilfred" <wilfred.yu@xxxxxxxxx>, "Xin, Xiaohui" <xiaohui.xin@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, Herbert Xu <herbert.xu@xxxxxxxxxx>, "Li, Susie" <susie.li@xxxxxxxxx>, Steven Rostedt <srostedt@xxxxxxxxxx>, "Li, Xin B" <xin.b.li@xxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>
Delivery-date: Fri, 10 Nov 2006 09:25:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <391BF3CDD2DC0848B40ACB72FA97AD596CE38B@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: AccE4pi/wxp3I9vbQ+CKIhuDiSY1swABloqgAAESqtU=
Thread-topic: [Xen-devel] [Patch] Fix for x86_64 boot failures due tobadsegment setup for protected mode.
User-agent: Microsoft-Entourage/11.2.5.060620
I have a patch I'll check in. It'd be good get some testing of it.

Changeset is 12365:ca75b51d69c7

 -- Keir


On 10/11/06 17:04, "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx> wrote:

> This cause problem for some version's SMP windows, at least 2003 64-bit smp
> windows AP bringup code has such issue.
> I'm not sure how much decoder left if we want to do full emulation. But at
> least we need to add the "mov reg->sreg" as Keir pointed out.
> It's very later on my side, so Stephen, would you please add this?
> 
> Thanks
> Yunhong Jiang
> -----Original Message-----
> From: Stephen C. Tweedie [mailto:sct@xxxxxxxxxx]
> Sent: 2006年11月11日 0:09
> To: Jiang, Yunhong
> Cc: Keir Fraser; Yu, Wilfred; Xin, Xiaohui; xen-devel@xxxxxxxxxxxxxxxxxxx;
> Herbert Xu; Li, Susie; Steven Rostedt; Li, Xin B; Stephen Tweedie
> Subject: RE: [Xen-devel] [Patch] Fix for x86_64 boot failures due tobadsegment
> setup for protected mode.
> 
> Hi,
> 
> On Fri, 2006-11-10 at 22:39 +0800, Jiang, Yunhong wrote:
>> This patch caused one problem.
>> 
>> If the guest change the DS/SS etc between it set cr0.PE and the jump
>> instruction.
> 
> Hmm...  Do you know how much of a problem that causes in practice?
> Which guests have that behaviour?
> 
>> Considering following code:
>>    mov eax, cr0
>>    or eax, 0x11
>>   mov cr0, eax  ---> here enable PE, and old_ctx.ds is cleard
>>    mov ax, 0x0020
>>    mov ds, ax  -> changes the DS here
> 
> Well, we've got commit log comments for the "pop %es" case:
> 
> 2) In
> current vmxassist, when entering VM86_PROTECTED_TO_REAL, we need to
> decode every instruction manually until we catch instructions like
> jmpl to reset cs to really return to real mode.
> 
> So I'm afraid I just assumed that we wouldn't need to deal with ds in
> real life, since we haven't added emulation for that so far.  Is that
> emulation we need to add as a matter of some urgency, then?
> 
> --Stephen
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel


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