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] How to turn on EPT support?

To: Superymk <superymkxen@xxxxxxxxxxx>
Subject: Re: [Xen-devel] How to turn on EPT support?
From: Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Date: Wed, 27 Jan 2010 09:38:17 +0000
Cc: "ken.mingyuan@xxxxxxxxxxx" <ken.mingyuan@xxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 27 Jan 2010 02:16:48 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BLU135-DS2D76161E0874ECCF007A9A25D0@xxxxxxx>
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: <BLU135-DS2D76161E0874ECCF007A9A25D0@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
At 06:41 +0000 on 27 Jan (1264574490), Superymk wrote:
> To test if EPT is enabled on my machine, I add some codes in my own
> xen shadow and create a guest vm (named testvm) by Virtual Machine
> Manager. However, it seems that testvm doesn't use EPT at all (See the
> log). So how to turn on EPT support? I thought it should be enabled
> automatically.

It is in the hypervisor, if the tools ask for it. 

> (XEN) (Joan)domain.c:388: Domain ID 1
> (XEN) (Joan)domain.c:389: is_hvm_domain(d) 1
> (XEN) (Joan)domain.c:390: hvm_funcs.hap_supported 1
> (XEN) (Joan)domain.c:391: (domcr_flags & DOMCRF_hap) 0

That's the one - EPT's not enabled because the tools didn't ask for it.
Those flags are passed from the domain-builder tools in dom0
(xc_domain_create() in tools/libxc/xc_domain.c).

If you're using xend, it looks like those flags get assembled from magic
numbers in XendDomainInfo.py based on one of the many config objects.

Try adding 'hap=1' to your xm config file?

Tim.

-- 
Tim Deegan <Tim.Deegan@xxxxxxxxxx>
Principal Software Engineer, Citrix Systems (R&D) Ltd.
[Company #02300071, SL9 0DZ, UK.]

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