From: Keir Fraser Subject: Re: [PATCH 05 of 10] Introduce a grant_entry_v2 structure Date: Mon, 05 Oct 2009 12:43:22 +0100 Message-ID: References: <20091005093613.GB1036@weybridge.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20091005093613.GB1036@weybridge.uk.xensource.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: Steven Smith , Jan Beulich Cc: "xen-devel@lists.xensource.com" , "joserenato.santos@hp.com" List-Id: xen-devel@lists.xenproject.org On 05/10/2009 10:36, "Steven Smith" wrote: >> It would seem that this should be a GUEST_HANDLE, or is there any >> particular reason to not declare it so? > Mostly that GUEST_HANDLE isn't 32/64 invariant, and I didn't want to > have to introduce yet more compat shims. > > If there's a strong consensus that GUEST_HANDLE is preferable then it > could be switched easily enough, but it seems kind of silly to > continue introducing more ABIs which aren't 64-bit clean. I think now we have guest handles we should just use them, and the guest access macros, consistently. Despite it requiring us to have a (pretty trivial) compat shim. This is despite choosing the opposite for the grant_entry_v2 struct and xen_pfn_t versus uint64_t. There's less machinery and magic around xen_pfn_t, and also compat shims for shared-memory structures are just plain annoying. -- Keir