From: Ian Campbell Subject: Re: [PATCH v9 1/8] libxl_internal: functions to check default values for builtin types Date: Thu, 10 Jul 2014 13:21:47 +0100 Message-ID: <1404994907.14046.0.camel@kazak.uk.xensource.com> References: <1404899130-20488-1-git-send-email-wei.liu2@citrix.com> <1404899130-20488-2-git-send-email-wei.liu2@citrix.com> <1404987584.32404.16.camel@hastur.hellion.org.uk> <20140710105815.GB31145@zion.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20140710105815.GB31145@zion.uk.xensource.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: Wei Liu Cc: ian.jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-07-10 at 11:58 +0100, Wei Liu wrote: > On Thu, Jul 10, 2014 at 11:19:44AM +0100, Ian Campbell wrote: > > On Wed, 2014-07-09 at 10:45 +0100, Wei Liu wrote: > > > +static inline int libxl__cpuid_policy_is_empty(libxl_cpuid_policy_list *pl) > > > +{ > > > + return !libxl_cpuid_policy_list_length(pl); > > > +} > > > > Unfortunately on ARM I get > > libxenlight_test.so: undefined reference to `libxl_cpuid_policy_list_length' > > /local/scratch/ianc/devel/committer-arm32.git/tools/libxl/../../tools/libxl/libxenlight.so: undefined reference to `libxl_cpuid_policy_list_length' > > > > So I think you need to move this one out of line into libxl_cpuid.c and > > put a dummy version in libxl_nocpuid.c. > > > > I can build test ARM the arm side for you, since I expect you don't have > > the environment. > > > > OIC, ARM doesn't have CPUID thing (yet) so it's compiled with > libxl_nocpuid.c. Sorry for the trouble. > > The following patch, which has libxl__cpuid_policy_is_empty moved to > libxl_cpuid.c and libxl_nocpuid.c, assumes that when libxl_nocpuid.c is > compiled, the given cpuid policy is always empty, so that the JSON > output won't have cpuid policy. > > Please try the following patch. It worked fine, thanks. I've applied this + the original #2..8. Ian.