tools: arm: prepare domain builder for multiple banks of guest RAM
authorIan Campbell <ian.campbell@citrix.com>
Thu, 22 May 2014 09:46:41 +0000 (10:46 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 2 Jun 2014 13:57:12 +0000 (14:57 +0100)
commit45d9867837f099e9eed4189dac5ed39d1fe2ed49
tree695b5b85bfbc4781aeaa021bc81030ed0942cb84
parentdb57c96dc0afebc1c72c0b0c66489bdfd91872c9
tools: arm: prepare domain builder for multiple banks of guest RAM

Prepare for adding more banks of guest RAM by renaming a bunch of defines
as RAM0 and replacing variables with arrays and introducing loops.

Also in preparation switch to using GUEST_RAM0_BASE explicitly instead of
implicitly via dom->rambase_pfn (while asserting that they must be the same).
This makes the multiple bank case cleaner (although it looks a bit odd for
now).

GUEST_RAM_BASE is defined as the address of the lowest RAM bank, it is used in
tools/libxl/libxl_dom.c to call xc_dom_rambase_init().

Lastly for now ramsize (total size) and rambank_size[0] (size of first bank)
are the same, but use the appropriate one for each context.

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>
tools/libxc/xc_dom_arm.c
xen/include/public/arch-arm.h