From: Keir Fraser Subject: Re: How to detect HAP from DomU? Date: Wed, 10 Nov 2010 08:36:15 +0000 Message-ID: References: <4CDA565A.5040804@ts.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4CDA565A.5040804@ts.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Juergen Gross , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 10/11/2010 08:22, "Juergen Gross" wrote: > is there any way for a HVM-domain to detect whether it is running with HAP > enabled? I couldn't find any interface for this information. > > Background: in our BS2000 domain (HVM with PV-drivers) we sometimes have to > copy complete pages between kernel and user. An alternative to the copy > would be a remapping of the page. The remap is faster than the copy with HAP > enabled, but much slower without HAP. So it would be best to copy without HAP > and remap with HAP. You could do a few remaps and copies and see how long it takes? Has the advantage that you aren't tied up to one policy based on one system's timings for those particuler ops. I don't think basing policy on static assumptions about hidden implementation features is a good idea. -- Keir