From: Ian Campbell Subject: Re: libxl: cannot start guest Date: Fri, 25 May 2012 16:42:22 +0100 Message-ID: <1337960542.22311.43.camel@zakaz.uk.xensource.com> References: <4FB64BDC.6010801@amd.com> <1337347821.22316.122.camel@zakaz.uk.xensource.com> <4FB65B61.7000902@amd.com> <4FB66FED.5080704@amd.com> <1337356698.22316.138.camel@zakaz.uk.xensource.com> <4FBA185A.3080306@amd.com> <1337602541.24660.105.camel@zakaz.uk.xensource.com> <4FBA3EC8.3060104@amd.com> <1337608191.24660.138.camel@zakaz.uk.xensource.com> <4FBA62F7.9080308@gmx.de> <1337615835.24660.169.camel@zakaz.uk.xensource.com> <4FBB882B.1020902@amd.com> <1337691225.10118.114.camel@zakaz.uk.xensource.com> <4FBB9228.70001@gmx.de> <1337692887.10118.127.camel@zakaz.uk.xensource.com> <4FBB9C9F.4090401@amd.com> <1337696422.10118.134.camel@zakaz.uk.xensource.com> <4FBBADC2.7000904@amd.com> <1337700078.10118.141.camel@zakaz.uk.xensource.com> <4FBBB185.8030005@amd.com> <1337767872.30233.20.camel@zakaz.uk.xensource.com> <4FBE02E6.2050807@amd.com> <4FBF9D9E.9050601@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FBF9D9E.9050601@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roger Pau Monne Cc: Christoph Egger , Ian Jackson , Daniel De Graaf , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2012-05-25 at 15:56 +0100, Roger Pau Monne wrote: > I also see an error when starting xencommons on NetBSD: > > test# /usr/xen42/etc/rc.d/xencommons onestart > Cleaning xenstore database. > Starting xenservices: xenstored, xenconsoled, xenbackendd.xc: error: > OSDEP: interface 2 (gnttab) not supported on this platform: Internal error > > Which is quite annoying, but I'm not really sure of the most elegant way > to solve this. The error comes from tools/libxc/xc_private.c:177, so > maybe just removing that message would be ok, I think removing the message is fine. This interface is intentionally "optional" so making a load of noise when the option is exercised seems silly... If you make it a DPRINTF is it silent in this context? If not then just nuke it entirely... Ian. > or something like this: > > --- a/tools/libxc/xc_private.c > +++ b/tools/libxc/xc_private.c > @@ -265,8 +265,12 @@ int xc_evtchn_close(xc_evtchn *xce) > xc_gnttab *xc_gnttab_open(xentoollog_logger *logger, > unsigned open_flags) > { > +#ifndef __NetBSD__ > return xc_interface_open_common(logger, NULL, open_flags, > XC_OSDEP_GNTTAB); > +#else > + return NULL; > +#endif > } > > Which is not really pretty.