From: John Levon Subject: [XenPPC] Re: [Xen-devel] architecture-specific stuff in xend Date: Tue, 8 Aug 2006 16:59:53 +0100 Message-ID: <20060808155953.GA20410@totally.trollied.org> References: <1155051266.30116.152.camel@basalt.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1155051266.30116.152.camel@basalt.austin.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-ppc-devel-bounces@lists.xensource.com Errors-To: xen-ppc-devel-bounces@lists.xensource.com To: Hollis Blanchard Cc: xen-ppc-devel , xen-devel , Ewan Mellor , xen-ia64-devel List-Id: xen-devel@lists.xenproject.org On Tue, Aug 08, 2006 at 10:34:25AM -0500, Hollis Blanchard wrote: > Rather than having these inline tests everywhere ("if os.uname()[4] in > ('ia64', 'ppc64'):"), would it make more sense to have some sort of > "architecture" object, and do things like: It'd be good if it were slightly more general and covered other system stuff too (namely OS). On Solaris some of the Xen binaries/scripts live in different locations in order to meet our file system requirements. > I'm not sure how/where to instantiate the arch object though. Presumably you could do the instance() singleton trick? regards john