xen/arm: probe domU kernels and initrds
authorStefano Stabellini <sstabellini@kernel.org>
Tue, 13 Nov 2018 16:57:30 +0000 (08:57 -0800)
committerJulien Grall <julien.grall@arm.com>
Wed, 14 Nov 2018 19:34:47 +0000 (19:34 +0000)
commit93ff7f1242aea56b5d2f7a3ca3b89f4bfbdd9eb9
tree7a753119f10d6a7ef7ae6b35d1014aa6a431b51e
parent9270e838465ed15639ee9f185f3252f6cdc2db26
xen/arm: probe domU kernels and initrds

Find addresses, sizes on device tree from kernel_probe.
Find the cmdline from the bootcmdlines array.

Introduce a new boot_module_find_by_addr_and_kind function to match not
just on boot module kind, but also by address so that we can support
multiple domains.

Introduce a boot_cmdline_find_by_name function to find the right struct
cmdline based on the device tree node name of the "xen,domain"
compatible node.

Set command line for dom0 in kernel_probe for consistency.

Signed-off-by: Stefano Stabellini <stefanos@xilinx.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/domain_build.c
xen/arch/arm/kernel.c
xen/arch/arm/kernel.h
xen/arch/arm/setup.c
xen/include/asm-arm/setup.h