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 2/2] xen-gntalloc: Userspace grant allocation dri

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 2/2] xen-gntalloc: Userspace grant allocation driver
From: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
Date: Wed, 08 Dec 2010 15:17:43 -0500
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 08 Dec 2010 12:18:37 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4CFFCB2F.2000000@xxxxxxxxxxxxx>
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>
Organization: National Security Agency
References: <20101203153855.GB18447@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1291826879.13966.4583.camel@xxxxxxxxxxxxxxxxxxxxxx> <4CFFCB2F.2000000@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Fedora/3.1.6-1.fc13 Thunderbird/3.1.6
On 12/08/2010 01:15 PM, Daniel De Graaf wrote:
> On 12/08/2010 11:47 AM, Ian Campbell wrote:
>> Do you have an example of a user of the driver?
> 
> I do have an communication library (vchan, based on code from Qubes); I am
> currently modifying it to allow the use of more than one page for the ring
> to reduce context switches when passing large amounts of data (this cost is
> increased due to both ends being in userspace, rather than kernel space). If
> that isn't ready soon, I will just post the version of vchan using this
> device and the modified gntdev API.
> 


Actually, I'll just post the vchan code that I have now. It's a simple wrapper
around Xen's idea of a ring buffer implemented in userspace. The gntdev use is
currently abstracted using xc library calls, which doesn't match how gntalloc
is used; changing to direct use of gntdev will be better especially since the
calling xc_gnttab_open with a NULL argument is not a documented use of the API.

The gntdev and gntalloc devices are useful for more than just stream
communication; they can be used as building blocks for implementing the
majority of Xen devices as userspace drivers.

-- 
Daniel De Graaf
National Security Agency

Attachment: init.c
Description: Text document

Attachment: io.c
Description: Text document

Attachment: libvchan.h
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>