Skip to content

libelf and the new domain builder

Gerd Hoffmann xen-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10Generate headers with arch-specific structs.tools/Rules.mk xen/Makefile xen/include/public/foreign/Makefile +4 more+314 -00 replies
2/10add libelf: an ELF binary parser library.tools/libxc/xc_elf.h xen/arch/x86/boot/mkelf32.c xen/common/Makefile +10 more+1933 -10140 replies
3/10libelf: use for x86 dom0 builder.xen/arch/x86/domain_build.c xen/common/Makefile+85 -1400 replies
4/10libelf: add to libxctools/libxc/Makefile+15 -00 replies
5/10libelf: use for hvm builder.tools/libxc/xc_hvm_build.c+65 -1500 replies
6/10libelf: use for readnotes utility.tools/xcutils/readnotes.c+45 -2320 replies
7/10libxc header fixups.tools/libxc/xg_private.h+67 -470 replies
8/10libxc domain builder rewrite, core bits.tools/libxc/Makefile tools/libxc/xc_dom.h tools/libxc/xc_dom_binloader.c +6 more+2882 -00 replies
9/10libxc domain builder rewrite, linux buildertools/libxc/Makefile tools/libxc/xc_dom_compat_linux.c+141 -20 replies
10/10Support transparant gunzipping in the readnotes utility.tools/xcutils/readnotes.c+12 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 00/10] libelf and the new domain builder

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

--