tools: arm: prepare guest FDT building for multiple RAM banks
authorIan Campbell <ian.campbell@citrix.com>
Thu, 22 May 2014 09:46:42 +0000 (10:46 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Jun 2014 13:58:05 +0000 (14:58 +0100)
commit705df41e532d90bcec4b6827c70ca869b89543e9
treeddb1fd4db165e40cf03c6236ae7d78b378ef0a93
parent45d9867837f099e9eed4189dac5ed39d1fe2ed49
tools: arm: prepare guest FDT building for multiple RAM banks

This required exposing the sizes of the banks determined by the domain builder
up to libxl via xc_dom_image.

Since the domain build needs to know the size of the DTB we create placeholder
nodes for each possible bank and when we finalise the DTB we fill in the ones
which are actually populated and NOP out the rest.

Note that the number of guest RAM banks is still 1 after this change.

Also fixes a coding style violation in
libxl__arch_domain_finalise_hw_description while there.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
[ ijc -- minor coding style fix ]
tools/libxc/xc_dom.h
tools/libxc/xc_dom_arm.c
tools/libxl/libxl_arm.c