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] libvchan: interdomain communications library

To: Daniel De Graaf <dgdegra@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH] libvchan: interdomain communications library
From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Date: Mon, 22 Aug 2011 10:15:57 +0100
Cc: Stefano Stabellini <Stefano.Stabellini@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "konrad.wilk@xxxxxxxxxx" <konrad.wilk@xxxxxxxxxx>
Delivery-date: Mon, 22 Aug 2011 02:16:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1313764724-12683-1-git-send-email-dgdegra@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: Citrix Systems, Inc.
References: <1313764724-12683-1-git-send-email-dgdegra@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Daniel,

On Fri, 2011-08-19 at 15:38 +0100, Daniel De Graaf wrote:

Please could you say a few words about the functionality this new
library enables and perhaps the design etc? In particular a protocol
spec would be useful for anyone who wanted to reimplement for another
guest OS etc. In particular memory barriers are conspicuous in their
absence.

I didn't review in detail but it seems like you have invented your own
ring datastructures rather than using the standard ring.h ones. I think
this needs some justification.

I think it would be appropriate to add protocol.txt at the same time as
checking in the library.

In one of the headers it says "The grant reference is expected to be
shared through some out-of-band mechanism such as XenStore." but the
library appears to implement the xenstore stuff internally.

>  tools/libvchan/gntalloc.h    |   82 ++++++++
>  tools/libvchan/gntdev.h      |  150 ++++++++++++++

If these define a Linux ioctl interface then they should go in
tools/include/xen-sys/Linux/.

>  tools/libvchan/libvchan.h    |  141 +++++++++++++

I presume that somewhere in there a shared datastructure is defined. In
which case that might be better off added to xen/include/public/io/
instead.

Cheers,
Ian.



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