Skip to content

libelf and the new domain builder.

Gerd Hoffmann xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesIn review

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 -05 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+2826 -00 replies
9/10libxc domain builder rewrite, linux buildertools/libxc/Makefile tools/libxc/xc_dom_compat_linux.c+127 -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 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