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 from dom0 userspace?

To: "Jacob Gorm Hansen" <jacobg@xxxxxxx>
Subject: Re: [Xen-devel] Grant tables from dom0 userspace?
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Thu, 9 Mar 2006 18:12:59 +0000
Cc: Andrew Warfield <andrew.warfield@xxxxxxxxxxxx>, xen-devel Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 09 Mar 2006 18:13:29 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <e08041f30603090959q6ef7954epe2944f2dd9d58acf@xxxxxxxxxxxxxx>
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: <e08041f30603090959q6ef7954epe2944f2dd9d58acf@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

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


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