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] small adjustment to asm constraints forc/s19400

To: Jan Beulich <jbeulich@xxxxxxxxxx>, "Lu, Guanqun" <guanqun.lu@xxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] small adjustment to asm constraints forc/s19400
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Tue, 31 Mar 2009 18:21:19 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, KeirFraser <keir.fraser@xxxxxxxxxxxxx>
Delivery-date: Tue, 31 Mar 2009 03:23:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49D20950.76E4.0078.0@xxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <8FED46E8A9CA574792FC7AACAC38FE7701D4B7A421@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <C5F64538.5C3E%keir.fraser@xxxxxxxxxxxxx> <8FED46E8A9CA574792FC7AACAC38FE7701D4B7A7D8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <49D0A942.76E4.0078.0@xxxxxxxxxx> <8FED46E8A9CA574792FC7AACAC38FE7701D4EAF926@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <49D1FD66.76E4.0078.0@xxxxxxxxxx> <0A882F4D99BBF6449D58E61AAFD7EDD6101840E9@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <49D20950.76E4.0078.0@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acmx6XDUMf2HuI/BTo2zkPZrwJuKCAAAB7Vw
Thread-topic: [Xen-devel] [PATCH] small adjustment to asm constraints forc/s19400
>From: Jan Beulich [mailto:jbeulich@xxxxxxxxxx] 
>Sent: 2009年3月31日 18:15
>
>>>> "Tian, Kevin" <kevin.tian@xxxxxxxxx> 31.03.09 11:47 >>>
>>Well, got your point. Those three SYSENTER MSRs are lost after resume.
>>We'll verify whether this is the only missing parts.  BTW, in 
>our box 32-on
>>-32 S3 works fine, does that mean SYSENTER/SYSEXIT not used in pure
>>32bit pv environment, since in Xen 32bit path also misses 
>that important
>>recovery?
>
>A 32-bit hypervisor does not expose sysenter to the guest (the 
>feature bit
>gets cleared) - iirc this is to prevent the guest from 
>thinking that using
>sysenter would provide a performance benefit. Hence restoring 
>these MSRs
>in that case would only be needed if Xen itself made use of 
>sysenter, which
>however it doesn't (except for the now only theoretical case of the
>supervisor-mode-kernel feature).
>

Clear enough. BTW, another question comes when I'm clearing the code.
in load_segments, fs/gs base MSRs are only updated for non 32-on-64
domain. I guess that it's just for performance reason as 32bit guest 
doesn't require to switch gs base. I want to get your confirmation 
since in current low level context S3 resume code, we always restore 
those base MSRs even for 32-on-64 case.

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