xen: introduce CDF_directmap
authorStefano Stabellini <sstabellini@kernel.org>
Mon, 14 Feb 2022 03:19:47 +0000 (03:19 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 17 Feb 2022 19:42:49 +0000 (19:42 +0000)
commit80e2005373dd40f9d4696e78f1f9ddef2e978abf
tree251f8f75f043cce46f7fd5950e6de762386ecd9b
parent6f815e86eff46b0e1ef7815e9933c2bdf590e68f
xen: introduce CDF_directmap

This commit introduces a new arm-specific flag CDF_directmap to specify
that a domain should have its memory direct-map(guest physical address
== host physical address) at domain creation.

Also, add a directmap flag under struct arch_domain and use it to
reimplement is_domain_direct_mapped.

For now, direct-map is only available when statically allocated memory is
used for the domain, that is, "xen,static-mem" must be also defined in the
domain configuration.

Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
docs/misc/arm/device-tree/booting.txt
xen/arch/arm/domain.c
xen/arch/arm/domain_build.c
xen/arch/arm/include/asm/domain.h
xen/arch/x86/domain.c
xen/common/domain.c
xen/include/xen/domain.h