libxl: build a device tree for ARM guests
authorIan Campbell <ian.campbell@citrix.com>
Tue, 19 Nov 2013 13:00:24 +0000 (13:00 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 19 Nov 2013 16:41:14 +0000 (16:41 +0000)
commit0c64527e7fc961372a398eb68e307c2b103f1a28
treed85e3a38a8bdc14eb88d4d099d0d95dde5a50742
parente0ba32a3cdf676ddc0238935575ce9c9a55e9218
libxl: build a device tree for ARM guests

Uses xc_dom_devicetree_mem which was just added. The call to this needs to be
carefully sequenced to be after xc_dom_parse_image (so we can tell which kind
of guest we are building, although we don't use this yet) and before
xc_dom_mem_init which tries to decide where to place the FDT in guest RAM.

Removes libxl_noarch which would only have been used by IA64 after this
change. Remove IA64 as part of this patch.

There is no attempt to expose this as a configuration setting for the user.

Includes a debug hook to dump the dtb to a file for inspection.

On v7 the CPU compat is currently hardcoded to cortex-a15. This likely wants
to change at some point.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
tools/libxl/Makefile
tools/libxl/libxl_arch.h
tools/libxl/libxl_arm.c [new file with mode: 0644]
tools/libxl/libxl_dom.c
tools/libxl/libxl_noarch.c [deleted file]
tools/libxl/libxl_x86.c