From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: Re: Grant tables Date: Fri, 4 Apr 2008 23:42:40 +0200 Message-ID: <20080404214240.GE4014@implementation> References: <47F648A6.3000104@tiscali.it> <20080404153106.GK4075@implementation> <47F65DA6.3000007@tiscali.it> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <47F65DA6.3000007@tiscali.it> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Carlo Bertoldi Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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