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] [PATCH 05 of 10] Introduce a grant_entry_v2 structure

To: Steven Smith <Steven.Smith@xxxxxxxxxxxxx>, Jan Beulich <JBeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 05 of 10] Introduce a grant_entry_v2 structure
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 05 Oct 2009 12:43:22 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "joserenato.santos@xxxxxx" <joserenato.santos@xxxxxx>
Delivery-date: Mon, 05 Oct 2009 04:43:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20091005093613.GB1036@xxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcpFn0ld2yNHLNC+TxWub5Ml5iHj/gAEcET1
Thread-topic: [Xen-devel] [PATCH 05 of 10] Introduce a grant_entry_v2 structure
User-agent: Microsoft-Entourage/12.20.0.090605
On 05/10/2009 10:36, "Steven Smith" <Steven.Smith@xxxxxxxxxxxxx> 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



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