From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: xenbus_backend_client.c / xenbus_client.c merger Date: Mon, 19 Feb 2007 17:48:15 +0000 Message-ID: References: <1171904850.4099.91.camel@moonstone.uk.level5networks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1171904850.4099.91.camel@moonstone.uk.level5networks.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: Kieran Mansley , Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 19/2/07 17:07, "Kieran Mansley" 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