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

[Xen-devel] RE: [PATCH v2] Enable SMEP CPU feature support for XEN hype

To: Jan Beulich <jbeulich@xxxxxxxxxx>, "keir@xxxxxxx" <keir@xxxxxxx>
Subject: [Xen-devel] RE: [PATCH v2] Enable SMEP CPU feature support for XEN hypervisor
From: "Li, Xin" <xin.li@xxxxxxxxx>
Date: Sun, 5 Jun 2011 16:39:54 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Sun, 05 Jun 2011 01:40:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4DEB400D0200007800070EB1@xxxxxxxxxxxxxxxxxxxx>
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: <4DEB400D0200007800070EB1@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwjU0w8vlsr1zIxRuCnN1Lck9yOlQAB+c7A
Thread-topic: [PATCH v2] Enable SMEP CPU feature support for XEN hypervisor
>I mean, I know we may as well just hide the feature from PV 64b guests
>totally. That's obvious. Let's stop talking about PV 64b guests already! The
>question is: what to do about PV 32b guests?

>Quite obviously we ought to allow 32-bit pv guests to control this for
>themselves (and hence see the feature).

That needs
1) inject SMEP faults back to the 32-bit pv guest.
2) let the guest see SMEP thru CPUID and config it in CR4 (actually it's 
already set, but just to let guest see it).

Anything else?

>Besides that, assuming Xin verified it's working, your latest patch
>looks great to me.

Yeah, verified, the system crashed from a SMEP fault from 64-bit pv kernel.
Thanks!
-Xin

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