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] Disallow SMEP for PV guest

To: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, "Yang, Wei Y" <wei.y.yang@xxxxxxxxx>
Subject: RE: [Xen-devel] [Patch] Disallow SMEP for PV guest
From: "Li, Xin" <xin.li@xxxxxxxxx>
Date: Wed, 1 Jun 2011 23:17:58 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 01 Jun 2011 08:19:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20110601145517.GA8204@xxxxxxxxxxxx>
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: <5D8008F58939784290FAB48F5497519844F6FB0DE5@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <20110601145517.GA8204@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwgbBbxssL7GsrdRB6pTh3NOUqN5QAAar4g
Thread-topic: [Xen-devel] [Patch] Disallow SMEP for PV guest
> On Wed, Jun 01, 2011 at 10:31:12PM +0800, Yang, Wei Y wrote:
> > This patch disallows SMEP for PV guest.
> 
> What are the reasons for it? What do we gain from it?

X86_64 pv guests runs in ring3, which SMEP doesn't apply to.

Kernel supports SMEP will set it thru writing to CR4, probably we can silently 
ignore such writes from PV guests, but better to not let guest see it.

Thanks!
-Xin

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