All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 00/10] libelf and the new domain builder.
@ 2006-12-04 10:58 Gerd Hoffmann
  2006-12-04 10:58 ` [patch 01/10] Generate headers with arch-specific structs Gerd Hoffmann
                   ` (9 more replies)
  0 siblings, 10 replies; 17+ messages in thread
From: Gerd Hoffmann @ 2006-12-04 10:58 UTC (permalink / raw)
  To: xen-devel

  Hi folks,

This patch series introduces the rewritten domain builder code.  It
comes in three major pieces:

  (1) A script to generate headers which contain architecture-specific
      structs and defines, but are usable on other architectures.

  (2) libelf: new elf parser code.  It can be used in both xen kernel
      and the tools.  Switches endianess and elfsize at runtime.

  (3) The rewritten domain builder code itself, which depends on the
      two pieces above.

Main goal of the domain builder rewrite are:

  * a general code cleanup
  * more code sharing between architectures
  * keep the part of the code which does hypercalls as small as possible
    (needed to reuse the code for domU kexec).

The libelf bits are a nice side effect of the code restruction ;)

The domain builder will also be able to handle 32-on-64 PV guests
without much hassle, just the hypercalls for 32/64 mode switching need
to be added once the kernel bits of the 32-on-64 code are merged.

More detailed comments are in the individual patches.

Current plan is to merge this early in the 3.0.5 development cycle.

comments?  reviews?  questions?

cheers,
  Gerd

^ permalink raw reply	[flat|nested] 17+ messages in thread
* [patch 00/10] libelf and the new domain builder
@ 2006-12-01 15:02 Gerd Hoffmann
  2006-12-01 15:02 ` [patch 01/10] Generate headers with arch-specific structs Gerd Hoffmann
  0 siblings, 1 reply; 17+ messages in thread
From: Gerd Hoffmann @ 2006-12-01 15:02 UTC (permalink / raw)
  To: xen-devel

  Hi,

This is a patchset with the rewritten domain builder for the xen tools.

The ELF parsing bits of the domain builder rewrite have been factored
out recently, so the patchset adds these first and the domain builder
on top of that.

The ELF parser code is used by both xen kernel (for the dom0 builder)
and the tools (via libxc).  It switches endianess and elfsize at
runtime.  We'll need that for 32-on-64 support comming soon and it
likely also is handy for the bigendian experiments some ia64 guys
are doing.

The new domain builder builds on top of libelf.  It's a redesign and
major rewrite of the domU generic domain builder.  I've tried to make
all architectures use the same code as far as possible to avoid
cut&paste of code (and bugs!).  It is also prepared to handle 32-on-64,
only the hypercalls for the mode setting need to be added.

Current state:
  x86_32(p), x86_64
    - should work without problems.
  ia64
    - not looked yet at the dom0 builder.
    - tools are compile-tested now and then, they should at least
      build and might even work although that is completely untested.
  powerpc
    - some code lines are there.  It is incomplete and I didn't even
      compile it.

The patches (and a few more ...) are also available for download from
http://www.suse.de/~kraxel/patches/unstable-hg12663-20061201-quilt/

Reviews, questions, comments are welcome.
Also patches of course, especially for !x86 ...

cheers,

  Gerd

--

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2006-12-05 13:52 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-04 10:58 [patch 00/10] libelf and the new domain builder Gerd Hoffmann
2006-12-04 10:58 ` [patch 01/10] Generate headers with arch-specific structs Gerd Hoffmann
2006-12-04 16:28   ` Hollis Blanchard
2006-12-04 17:04     ` Gerd Hoffmann
2006-12-04 20:12       ` Hollis Blanchard
2006-12-05  8:45         ` Gerd Hoffmann
2006-12-05 13:52           ` Hollis Blanchard
2006-12-04 10:58 ` [patch 02/10] add libelf: an ELF binary parser library Gerd Hoffmann
2006-12-04 10:58 ` [patch 03/10] libelf: use for x86 dom0 builder Gerd Hoffmann
2006-12-04 10:58 ` [patch 04/10] libelf: add to libxc Gerd Hoffmann
2006-12-04 10:58 ` [patch 05/10] libelf: use for hvm builder Gerd Hoffmann
2006-12-04 10:58 ` [patch 06/10] libelf: use for readnotes utility Gerd Hoffmann
2006-12-04 10:58 ` [patch 07/10] libxc header fixups Gerd Hoffmann
2006-12-04 10:58 ` [patch 08/10] libxc domain builder rewrite, core bits Gerd Hoffmann
2006-12-04 10:58 ` [patch 09/10] libxc domain builder rewrite, linux builder Gerd Hoffmann
2006-12-04 10:58 ` [patch 10/10] Support transparant gunzipping in the readnotes utility Gerd Hoffmann
  -- strict thread matches above, loose matches on Subject: below --
2006-12-01 15:02 [patch 00/10] libelf and the new domain builder Gerd Hoffmann
2006-12-01 15:02 ` [patch 01/10] Generate headers with arch-specific structs Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.