From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: [RFC] [0/4] User-space grants for Console and XenStore Date: Wed, 02 May 2007 13:46:33 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" 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: Derek Murray , John Levon Cc: xen-devel@lists.xensource.com, xense-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 2/5/07 13:29, "Derek Murray" 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