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: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] Grant tables
From: Carlo Bertoldi <mcbain@xxxxxxxxxx>
Date: Fri, 04 Apr 2008 18:56:06 +0200
Delivery-date: Fri, 04 Apr 2008 09:55:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080404153106.GK4075@implementation>
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>
References: <47F648A6.3000104@xxxxxxxxxx> <20080404153106.GK4075@implementation>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (Windows/20080213)
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?

Carlo
--
È molto più bello sapere qualcosa di tutto, che sapere tutto di una cosa.

Blaise Pascal

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

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