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/
Home Products Support Community News


Re: [Xen-devel] [RFC] [0/4] User-space grants for Console and XenStore

To: Derek Murray <Derek.Murray@xxxxxxxxxxxx>, John Levon <levon@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [RFC] [0/4] User-space grants for Console and XenStore
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Wed, 02 May 2007 13:46:33 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xense-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 02 May 2007 05:45:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <EC991991-AC6C-48DC-8DD9-6EC682829E98@xxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AceMt+miJ/jo/PirEduO2AAX8io7RQ==
Thread-topic: [Xen-devel] [RFC] [0/4] User-space grants for Console and XenStore
User-agent: Microsoft-Entourage/
On 2/5/07 13:29, "Derek Murray" <Derek.Murray@xxxxxxxxxxxx> wrote:

>> It would be nice to have the old method still work, but if you feel
>> the
>> need to there's no problem in dropping the old code. We're always
>> playing catch-up anyway...
> One possibility would be to have a Makefile option that controls
> whether or not xc_map_foreign_range() is available, and swaps out the
> calls for xc_gnttab_map_grant_ref() where necessary. That way, if/
> when Solaris gets gntdev, it will be easy to swap in the new code,
> and nothing will be broken in the mean time. I'd also be willing to
> provide any support needed for porting gntdev to Solaris.

It should be easy to support the old way and choose dynamically at run time.
We should somehow tag the values passed to or stored in xenstore explicitly
as being grant-refs, at the very least.

I would like to continue to avoid dependence on particular dom0 kernel
features, so new tool stack on old kernel (with no gnttab driver) should
really continue to work.

 -- Keir

Xen-devel mailing list