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 detect HAP from DomU?

To: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Subject: Re: [Xen-devel] How to detect HAP from DomU?
From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
Date: Wed, 10 Nov 2010 09:49:51 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxx>
Delivery-date: Wed, 10 Nov 2010 00:50:44 -0800
Dkim-signature: v=1; a=rsa-sha256; c=simple/simple; d=ts.fujitsu.com; i=juergen.gross@xxxxxxxxxxxxxx; q=dns/txt; s=s1536b; t=1289378994; x=1320914994; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to:content-transfer-encoding; z=Message-ID:=20<4CDA5CAF.9020003@xxxxxxxxxxxxxx>|Date:=20 Wed,=2010=20Nov=202010=2009:49:51=20+0100|From:=20Juergen =20Gross=20<juergen.gross@xxxxxxxxxxxxxx>|MIME-Version: =201.0|To:=20"Jiang,=20Yunhong"=20<yunhong.jiang@xxxxxxxx m>|CC:=20Keir=20Fraser=20<keir@xxxxxxx>,=20=0D=0A=20"xen- devel@xxxxxxxxxxxxxxxxxxx"=20<xen-devel@xxxxxxxxxxxxxxxxx om>|Subject:=20Re:=20[Xen-devel]=20How=20to=20detect=20HA P=20from=20DomU?|References:=20<C90009FF.27AA5%keir@xxxxx rg>=20<4CDA5AFE.5020306@xxxxxxxxxxxxxx>=20<789F9655DD1B8F 43B48D77C5D30659732FD7E294@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> |In-Reply-To:=20<789F9655DD1B8F43B48D77C5D30659732FD7E294 @shsmsx501.ccr.corp.intel.com>|Content-Transfer-Encoding: =207bit; bh=sobT/9MH+st679spLfEFkO2EuvvE/FzcnzNKT3dnayU=; b=bJJc1dQ71VPutksQNaWargFxTRO0kgNVjzqDKWlD0UmcTBYJ0bwdsRGK eRZ7M9uyIqmce8itTFMroLXxu545uuhC62qOWSUP5NCnUQJUIctskjliE eVDelGKF2RVDJZyUO80Qt7G3VjEuLggUTyak0JgHQeoPe1LP9HRDkOluj U45/8uXla0fwaXB0en8WCGgwOwv2428p+sFvsGgG1dn/jtCDIKBVBiMv6 TpXc57sOIX38B4IUJhxjiXZYN9kNa;
Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:Received:Message-ID:Date:From:Organization: User-Agent:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=MvsVauUebe5OtieQjBxxb2m6wARF/iy39FLkvROf4TCZuyjgvTHQvF6L zUF/BMQ3YpFx/dFg+dnkGsM1riGAH3chHJx7QgW92ozBkAyeMT8/KaLi/ ptYJrVUhhp3ye1Y9CSqZjAXYKs7K986tl+uZUSVj6spnp4cHPXWI61Hn9 9bQjKX+qRTVZJzRy338dCxE0bEjUh8QUwcarF7S37fdgmvabdLhBmLeBY EE4GGnHlN+MvvVb5id1ddEOXlUJQp;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <789F9655DD1B8F43B48D77C5D30659732FD7E294@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>
Organization: Fujitsu Technology Solutions
References: <C90009FF.27AA5%keir@xxxxxxx> <4CDA5AFE.5020306@xxxxxxxxxxxxxx> <789F9655DD1B8F43B48D77C5D30659732FD7E294@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Iceowl/1.0b1 Icedove/3.0.10
On 11/10/10 09:44, Jiang, Yunhong wrote:


-----Original Message-----
From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Juergen Gross
Sent: Wednesday, November 10, 2010 4:43 PM
To: Keir Fraser
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] How to detect HAP from DomU?

On 11/10/10 09:36, Keir Fraser wrote:
On 10/11/2010 08:22, "Juergen Gross"<juergen.gross@xxxxxxxxxxxxxx>   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.

Okay, that's a good idea.
I'm going this way.

Will this works for Live Migration? After LM, your previous check will be 
invalid. (Can we migrate between system w/wo HAP?)
Or you can check after each LM.

The same problem applies to a decision based on information supplied by the
hypervisor.
I'll have to reconsider the decision in any case, dynamical testing just takes
some microseconds more, but is more flexible.


Juergen

--
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@xxxxxxxxxxxxxx
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

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