From: Keir Fraser Subject: Re: Grant tables from dom0 userspace? Date: Thu, 9 Mar 2006 18:12:59 +0000 Message-ID: <7fdff686d4d5e2619fb843154f88b882@cl.cam.ac.uk> References: Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jacob Gorm Hansen Cc: Andrew Warfield , xen-devel Devel List-Id: xen-devel@lists.xenproject.org On 9 Mar 2006, at 17:59, Jacob Gorm Hansen wrote: > I would like to share some pages between my domU graphics frontend > device, and the backend which runs in userspace in dom0. Right now I > am doing this with my own scheme, but presumably grant tables would be > the correct solution. > > Is it possible to use grant tables from dom0 userspace? There used to > be a file called tools/libxc/xc_gnttab.c but that seems to be gone > now. I think blktap gives an example how to do this, but it might be specific to aio right now. You could probably use some of the same hooks to provide a device file that you could mmap(), passing grant refs to map. I cc'ed Andy Warfield in case he has any ideas... The only other supported mechanism is the xc_foreign mapping interfaces. -- Keir