From: "Jan Beulich" Subject: Re: hypercall_xlat_continuation() Date: Wed, 27 May 2009 09:22:13 +0100 Message-ID: <4A1D14550200007800002C9D@vpn.id2.novell.com> References: <4A1D0FBA0200007800002C86@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , "mukesh.rathor@oracle.com" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 27.05.09 10:04 >>> >On 27/05/2009 09:02, "Jan Beulich" wrote: > >>>> You know that all the 'xlat' stuff in Xen is for 32-bit guests = running on >>>> 64-bit hypervisor, right? 64-bit dom0 would never execute this logic. >>>=20 >>> Unless someone like me, in trying to make 32bit apps on 64bit dom0 = work, >>> causes it to take compat path if it's 32bit hcall. Yeah, I know whacky = :)... >>=20 >> I don't think that's a good approach - even when dealing with 32-bit = apps, >> it's a 64-bit kernel, and hence you should rather translate things to = the >> 64-bit format in the kernel layer that sits in between (after all, apps = can't >> do hypercalls directly). > >Why would you do that when the tedious translation mechanism already = exists >in the hypervisor? Because it's conceptually wrong. And the necessary extra de-muxing that's needed (because the int $HYPERCALL_VECTOR path can't be used) is not going to come without a (performance) price. A secondary reason is that as soon as Xen becomes more easily build-time configurable (like Linux is), which I expect to happen at some point = (unless we manage to replace all those build time decisions with runtime ones), a 64-bit guest can't really rely on the hypervisor having compat mode = support (and considering backward compatibility, which might not matter in the context the subject was brought up in, such an assumption would be wrong in the first place). Jan