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] Grant tables

To: Carlo Bertoldi <mcbain@xxxxxxxxxx>
Subject: Re: [Xen-devel] Grant tables
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Fri, 4 Apr 2008 23:42:40 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 04 Apr 2008 14:50:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47F65DA6.3000007@xxxxxxxxxx>
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>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, Carlo Bertoldi <mcbain@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <47F648A6.3000104@xxxxxxxxxx> <20080404153106.GK4075@implementation> <47F65DA6.3000007@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
Carlo Bertoldi, le Fri 04 Apr 2008 18:56:06 +0200, a écrit :
> Samuel Thibault wrote, on the 04/04/2008 17.31:
> 
> Thanks, for the prompt answer.
> > See tools/fs-back/fs-ops.c for instance (xc_gnttab* functions).
> >
> Ok, so I found this:
> 
> buf = xc_gnttab_map_grant_ref(mount->gnth,
>                                    mount->dom_id,
>                                    req->u.fwrite.gref,
>                                    PROT_READ);
> 
> it's fine, except that I don't understand how to obtain the gref. IOW 
> how can I build a grant reference from a domain?

To my knowledge, there is no user interface for that yet, you need to do
it from the Linux kernel.

Samuel

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

<Prev in Thread] Current Thread [Next in Thread>