From: Matt Chapman Subject: Re: netif & grant tables Date: Fri, 1 Jul 2005 14:40:31 -0600 Message-ID: <20050701204031.GA16214@kirby.fc.hp.com> References: <20050701022854.GA32494@kirby.fc.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline 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: Stefan Berger Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Stefan, I'm not trying to run the backend or any real drivers in domU, only the frontend. Matt On Fri, Jul 01, 2005 at 04:29:20PM -0400, Stefan Berger wrote: > xen-devel-bounces@lists.xensource.com wrote on 06/30/2005 10:28:54 PM: > > > Hi, > > > > I'm currently looking at getting domU networking working > > on IA64, and to do this I need to make netback/netfront > > use grant tables. > > You *probably* won't get this to work right out of the box. On i386 it > fails due to dom Us not becoming privileged and so a check like IS_PRIV() > fails in xen/common/grant_table.c line 692 and probably somewhere else > also. The question is how this should be fixed. Should the HV call to > create a domain receive an additional parameter including flags that > should be set in a domain, such as for example the _DOMF_privileged? > Currently this flag only seems to be set in one place for dom 0. > > The quick fix is: > add > set_bit(_DOMF_privileged, &d->domain_flags) > > before the 'return d' in do_createdomain() in xen/common/domain.c -> it > will make all domains privileged > > To compile the backends into a domU I had to activate > CONFIG_XEN_PRIVILGED_GUEST and CONFIG_XEN_PHYSDEV_ACCESS in the .config > file of the dom U kernel for having alloc_empty_lowmem_region() compiled > into th kernel (arch/xen/i386/mm/hypervisor.c). Is this call to > alloc_empty_lowmem_region() necessary or would another memory allocation > routine work as well. All the backends seem to use it, though. > > Stefan > > > > > I'm told that there's already a patch floating around, > > can someone tell me where to find it? > > > > Matt > > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel