From: John Levon Subject: Re: architecture-specific stuff in xend Date: Tue, 8 Aug 2006 18:12:21 +0100 Message-ID: <20060808171221.GA20551@totally.trollied.org> References: <1155051266.30116.152.camel@basalt.austin.ibm.com> <20060808155953.GA20410@totally.trollied.org> <1155053718.30116.176.camel@basalt.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1155053718.30116.176.camel@basalt.austin.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Hollis Blanchard Cc: xen-ia64-devel , xen-devel , Ewan Mellor , xen-ppc-devel List-Id: xen-devel@lists.xenproject.org On Tue, Aug 08, 2006 at 11:15:18AM -0500, Hollis Blanchard wrote: > > On Solaris some of the Xen binaries/scripts live > > in different locations in order to meet our file system requirements. > > Does that impact code under tools/python/xen much? Very little, but it does affect the location of the network scripts, for example. > > Presumably you could do the instance() singleton trick? > > Not sure what you mean. See XendRoot.py's instance(). > Actually, you bring up a good point: since we have no state (at least > not in the examples I'm thinking of), we really don't want/need a class; > a module would do just fine. So we could have separate files/modules > with just plain functions: > > platform/ia64.py: > def init_reservation(mem_kb): > return something > > platform/platform.py: > import xen.xend.platform.ia64 as platform We'd still need something to import the right bits... regards john