xen/arm: keep track of reserved-memory regions
authorStefano Stabellini <sstabellini@kernel.org>
Mon, 19 Aug 2019 17:43:33 +0000 (10:43 -0700)
committerJulien Grall <julien.grall@arm.com>
Tue, 20 Aug 2019 12:39:59 +0000 (13:39 +0100)
commitd96594eef39ad471b04884d2d64c3a595e6243b4
treeda0cddcde89ce01598784554d6b93bc2ab00e2ee
parentd9f451d451c9eb2d315ee21a5d839d993af3dd49
xen/arm: keep track of reserved-memory regions

As we parse the device tree in Xen, keep track of the reserved-memory
regions as they need special treatment (follow-up patches will make use
of the stored information.)

Reuse process_memory_node to add reserved-memory regions to the
bootinfo.reserved_mem array.

Refuse to continue once we reach the max number of reserved memory
regions to avoid accidentally mapping any portions of them into a VM.

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