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] xenbus_backend_client.c / xenbus_client.c merger

To: Kieran Mansley <kmansley@xxxxxxxxxxxxxx>, Keir Fraser <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] xenbus_backend_client.c / xenbus_client.c merger
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Mon, 19 Feb 2007 17:48:15 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 19 Feb 2007 09:47:34 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <1171904850.4099.91.camel@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdUTiGGYCEsqsBBEduvRQAX8io7RQ==
Thread-topic: [Xen-devel] xenbus_backend_client.c / xenbus_client.c merger
User-agent: Microsoft-Entourage/11.2.5.060620
On 19/2/07 17:07, "Kieran Mansley" <kmansley@xxxxxxxxxxxxxx> wrote:

> Accepting one grant reference is not a big deal - I can just get a grant
> per page and pass all the grants, then allocate a two page vm_area map
> the individual grants at the appropriate offsets into that area to get
> them virtually contiguous.

Then it doesn't seem that a new helper function is very useful! You'll just
end up with alloc_vm_area() followed by open coding of requesting mapping of
two grant references, won't you? A general function that did all that would
be reasonable, and then I'd get rid of the special-case 'ring' functions.

  -- Keir


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