|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] [Patch] Enable SMEP CPU feature support for XEN itself
To: |
"Li, Xin" <xin.li@xxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>, "Yang, Wei Y" <wei.y.yang@xxxxxxxxx> |
Subject: |
RE: [Xen-devel] [Patch] Enable SMEP CPU feature support for XEN itself |
From: |
"Li, Xin" <xin.li@xxxxxxxxx> |
Date: |
Thu, 2 Jun 2011 23:05:04 +0800 |
Accept-language: |
zh-CN, en-US |
Acceptlanguage: |
zh-CN, en-US |
Cc: |
"xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx> |
Delivery-date: |
Thu, 02 Jun 2011 08:07:35 -0700 |
Envelope-to: |
www-data@xxxxxxxxxxxxxxxxxxx |
In-reply-to: |
<FC2FB65B4D919844ADE4BE3C2BB739AD5AB9E58C@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/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: |
<4DE79E4C0200007800070D60@xxxxxxxxxxxxxxxxxx> <FC2FB65B4D919844ADE4BE3C2BB739AD5AB9E58C@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |
Sender: |
xen-devel-bounces@xxxxxxxxxxxxxxxxxxx |
Thread-index: |
AcwhKSFqC1+9aLNySkqezZkJGvVaUgACElDwAAEr9/A= |
Thread-topic: |
[Xen-devel] [Patch] Enable SMEP CPU feature support for XEN itself |
> >} else
> >>setup_clear_cpu_cap(X86_FEATURE_SMEP);
>
> This needs to be done on APs too. Thus I think we still need define
> setup_smep as
> __cpuinit.
This only applies to BP only, and actually all feature check is against BP even
AP has a corresponding bit set. So your suggestion should work.
Thanks!
-Xin
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|