From: Ian Campbell Subject: Re: [PATCH 4/5] xen: introduce XEN_GUEST_HANDLE_PARAM Date: Mon, 6 Aug 2012 16:47:50 +0100 Message-ID: <1344268070.11339.53.camel@zakaz.uk.xensource.com> References: <1344262325-26598-4-git-send-email-stefano.stabellini@eu.citrix.com> <5020025C0200007800092FEE@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5020025C0200007800092FEE@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel , "Tim Deegan (3P)" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Mon, 2012-08-06 at 16:43 +0100, Jan Beulich wrote: > >>> On 06.08.12 at 16:12, Stefano Stabellini wrote: > > Note: this change does not make any difference on x86 and ia64. > > > > > > XEN_GUEST_HANDLE_PARAM is going to be used to distinguish guest pointers > > stored in memory from guest pointers as hypercall parameters. > > I have to admit that really dislike this, to a large part because of > the follow up patch that clutters the corresponding function > declarations even further. Plus I see no mechanism to convert > between the two, yet I can't see how - long term at least - you > could get away without such conversion. > > Is it really a well thought through and settled upon decision to > make guest handles 64 bits wide even on 32-bit ARM? After all, > both x86 and PPC got away without doing so Well, on x86 we have the compat XLAT layer, which is a pretty complex piece of code, so "got away without" is a bit strong... We'd really rather not have to have a non-trivial compat layer on arm too by having the struct layouts be the same on 32/64. Ian.