From: Tim Deegan Subject: Re: How to turn on EPT support? Date: Wed, 27 Jan 2010 09:38:17 +0000 Message-ID: <20100127093817.GG30054@whitby.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Superymk Cc: "ken.mingyuan@hotmail.com" , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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 Principal Software Engineer, Citrix Systems (R&D) Ltd. [Company #02300071, SL9 0DZ, UK.]