From: Wei Liu Subject: Re: [PATCH] libxl: write IO ABI for disk frontends Date: Wed, 24 Apr 2013 12:33:34 +0100 Message-ID: <20130424113334.GG7466@zion.uk.xensource.com> References: <1366748754-28290-1-git-send-email-wei.liu2@citrix.com> <5177A123.5010802@citrix.com> <1366795497.20256.237.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline In-Reply-To: <1366795497.20256.237.camel@zakaz.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: Ian Campbell Cc: Ian Jackson , "xen-devel@lists.xen.org" , Wei Liu , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org On Wed, Apr 24, 2013 at 10:24:57AM +0100, Ian Campbell wrote: > On Wed, 2013-04-24 at 10:08 +0100, Roger Pau Monn=E9 wrote: > > On 23/04/13 22:25, Wei Liu wrote: > > > +#if defined (__i386__) || (__x86_64__) > > = > > I would prefer to get the guest type (x86 or arm) from libxc if possible > > and use that instead of a define, different compilers tend to have > > different names for this macros. > = > By pushing the logic down into libxc we can put the implementation in > xc_dom_x86.c and a stub in xc_dom_arm.c and get this behaviour without > the ifdefs. > = xc_dom_*.c is for domain builder, is it really the right place to put generic domain control / information query functions? I would prefer creating new files called xc_domain_x86.c and xc_domain_arm.c. Wei. > Ian. > =