From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Cully Subject: Re: [XenPPC] Re: New domain builder in xen-unstable Date: Tue, 6 Mar 2007 16:59:28 -0800 Message-ID: <20070307005928.GD4424@ventoux.cs.ubc.ca> References: <1173214613.12803.21.camel@basalt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1173214613.12803.21.camel@basalt> 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 Development Mailing List , Gerd Hoffmann , xen-ppc-devel List-Id: xen-devel@lists.xenproject.org On Tuesday, 06 March 2007 at 14:56, Hollis Blanchard wrote: > On Fri, 2007-01-26 at 17:08 +0000, Keir Fraser wrote: > > xc_linux_build() is still provided in the 'new world' and is still > > used by xend. For ia64/x86 it is now a thin wrapper around Gerd's new > > domain-building infrastructure. For ppc you can continue to have your > > very own version under libxc/powerpc if you want to, and not use > > Gerd's new domain-building infrastructure. But the elf code that you > > rely on is going away, so you need to move to using libelf, which I'm > > sure Gerd can give you some pointers about. > > Hi Keir, it turns out I was confused about libxc, and we were depending > on the just-removed ELF loader. I'm fixing that now; please give me a > heads-up on the 3.0.5 release so I'm not caught out. > > Aside from that, it seems that xc_linux_build() is actually not called > by anybody any longer. It looks like changeset a20ec270998b (from > Brendan) removed the call from xc.c, replacing it with a call to the > "new style" domain builder via xc_dom_linux_build(). > > The new domain builder infrastructure is not flexible enough for > PowerPC, so we're sticking with our own xc_linux_build(). It sounded > before like that would be possible, so I assume a20ec270998b was just an > oversight? I have to admit, I haven't really looked at how other architectures are overriding the domain building stuff. Would it be possible to override xc_dom_linux_build to grab the couple of extra parameters you need (cmdline, features) from dom and pass them to your existing xc_linux_build? Then you can pass back elfnotes to python at your convenience, if/when it makes sense.