xen/arm: static memory initialization
authorPenny Zheng <penny.zheng@arm.com>
Fri, 10 Sep 2021 02:52:12 +0000 (02:52 +0000)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Mon, 13 Sep 2021 21:10:22 +0000 (14:10 -0700)
commit4a9e73e6e53e9d8bc005a08c3968ec36d793f140
tree8ef1117d9138fd9c974fb1b918505b72a80feada
parent540a637c3410780b519fc055f432afe271f642f8
xen/arm: static memory initialization

This patch introduces static memory initialization, during system boot-up.

The new function init_staticmem_pages is responsible for static memory
initialization.

Helper free_staticmem_pages is the equivalent of free_heap_pages, to free
nr_mfns pages of static memory.

This commit also introduces a new CONFIG_STATIC_MEMORY option to wrap all
static-allocation-related code.

Put asynchronously scrubbing pages of static memory in TODO list.

Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/setup.c
xen/common/Kconfig
xen/common/page_alloc.c
xen/include/xen/mm.h