xen/arm: introduce kinfo->phandle_gic
authorStefano Stabellini <sstabellini@kernel.org>
Mon, 30 Sep 2019 23:13:37 +0000 (16:13 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 4 Oct 2019 17:15:41 +0000 (10:15 -0700)
commit7a7a45756ad96ebb4f833c15a00ca5b61a2c6d99
tree73d8d07c12146f32cd40e422a606291b112a1738
parent242624e153472a99386ff3808b9ed52f6925c6de
xen/arm: introduce kinfo->phandle_gic

Instead of always hard-coding the GIC phandle (GUEST_PHANDLE_GIC), store
it in a variable under kinfo. This way it can be dynamically chosen per
domain. Remove the fdt pointer argument to the make_*_domU_node
functions and oass a struct kernel_info * instead. The fdt pointer can
be accessed from kinfo->fdt. Remove the struct domain *d parameter to
the make_*_domU_node functions because it becomes unused.

Initialize phandle_gic to GUEST_PHANDLE_GIC at the beginning of
prepare_dtb_domU for DomUs. Later patches will change the value of
phandle_gic depending on user provided information.

For Dom0, initialize phandle_gic to dt_interrupt_controller->phandle
(current value) at the beginning of prepare_dtb.

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