From: Tim Deegan Subject: Re: Re: sharing memory between dom0 and domU Date: Mon, 27 Jun 2011 12:14:30 +0100 Message-ID: <20110627111430.GL17634@whitby.uk.xensource.com> References: <1309088811335-4525597.post@n5.nabble.com> <20110627084841.GF17634@whitby.uk.xensource.com> <20110627105751.GA24594@mtldesk30> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <20110627105751.GA24594@mtldesk30> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: eli Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org At 03:54 -0700 on 27 Jun (1309146866), eli wrote: > On Mon, Jun 27, 2011 at 01:51:10AM -0700, Tim Deegan-4 [via Xen] wrote: > > > > What you need is the grant-table mechanism; I believe that using the > > gntdev code you can even do it from user-space. > > > Thanks Tim. I only need this for kernel space. Does it mean that I > don't need "gntdev" for that? Can you give a pointer to some usage > case or just tell what APIs are involved? If you're in linux, have a look at the blkfront and blkback drivers for examples of how to use them. The linux interface is in include/xen/grant_table.h. Tim. -- Tim Deegan Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)