WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: New domain builder in xen-unstable

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] Re: New domain builder in xen-unstable
From: Gerd Hoffmann <kraxel@xxxxxxx>
Date: Mon, 29 Jan 2007 14:20:54 +0100
Cc: xen-ppc-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>, Xen Development Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>, Hollis Blanchard <hollisb@xxxxxxxxxx>, xen-ia64-devel <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 29 Jan 2007 05:20:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C1DFE623.7E06%Keir.Fraser@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C1DFE623.7E06%Keir.Fraser@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.9 (X11/20060911)
Keir Fraser wrote:
> On 26/1/07 5:04 pm, "Hollis Blanchard" <hollisb@xxxxxxxxxx> wrote:
> 
>>> Not sure what you mean by "our own domain builder"; we've been
>>> implementing xc_linux_build() for quite a while now (and thus integrated
>>> with xend).
>> Sorry, I misunderstood. I was seeing all the libelf churn, and I missed
>> the fact that xc_linux_build() is going away entirely (?).
>>
>> I'm still not sure what you mean by "our own domain builder" -- there is
>> simply no way we're going to add more ifdefs to
>> tools/libxc/xc_linux_build.c (or equivalent)...
> 
> 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.

libelf is used both within the xen kernel (dom0 builder) and the tools.

Have a look at changeset 13618, this does the dom0 builder port for x86
and ia64 (build-tested only), something simliar is needed for the ppc
dom0 builder.

For the tools:  You can either switch over the existing ppc builder in
libxc/powerpc/ to use libelf, which likely is simliar to the dom0
builder conversion to libelf.

The other option is to use the new builder code in libxc/xc_dom_*.c.
Some code is already there.  The ia64 bits should at least compile, with
luck even work out-of-the-box.  The ppc bits I didn't even compile.  The
places with architecture-specific code are:

xc_dom_{ia64,powerpc}.c
        setup arch-specific structs (start_info, vcpu_context).

xc_dom_boot.c
        invoke the hypercalls needed to boot the domain.  There are two
        functions for architecture-specific code, ppc must hook in the
        devtree setup there (if you decide to use the new builder).

The domain builder core code should need no changes in theory ;)

Feel free to ask if there are any questions.

HTH & cheers,
  Gerd

-- 
Gerd Hoffmann <kraxel@xxxxxxx>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>