xen/arm: add reserved-memory regions to the dom0 memory node
authorStefano Stabellini <sstabellini@kernel.org>
Mon, 19 Aug 2019 17:43:38 +0000 (10:43 -0700)
committerJulien Grall <julien.grall@arm.com>
Tue, 20 Aug 2019 12:40:30 +0000 (13:40 +0100)
commit248faa637d2f873b73d2ba38836063df4f36d9b1
tree0c03f7d5c6ccffb8ed908630f4bbe2da731aafe4
parentf9335bd4b89ba398ae993a0655c40c545b75d7c1
xen/arm: add reserved-memory regions to the dom0 memory node

Reserved memory regions are automatically remapped to dom0. Their device
tree nodes are also added to dom0 device tree. However, the dom0 memory
node is not currently extended to cover the reserved memory regions
ranges as required by the spec.  This commit fixes it.

Change make_memory_node to take a  struct meminfo * instead of a
kernel_info. Call it twice for dom0, once to create the first regular
memory node, and the second time to create a second memory node with the
ranges covering reserved-memory regions.

Also, make a small code style fix in make_memory_node.

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