]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/arm: Introduce CONFIG_MMU Kconfig option
authorHenry Wang <Henry.Wang@arm.com>
Mon, 28 Aug 2023 01:32:13 +0000 (09:32 +0800)
committerStefano Stabellini <stefano.stabellini@amd.com>
Fri, 8 Sep 2023 22:07:25 +0000 (15:07 -0700)
There are two types of memory system architectures available for
Arm-based systems, namely the Virtual Memory System Architecture (VMSA)
and the Protected Memory System Architecture (PMSA). According to
ARM DDI 0487G.a, A VMSA provides a Memory Management Unit (MMU) that
controls address translation, access permissions, and memory attribute
determination and checking, for memory accesses made by the PE. And
refer to ARM DDI 0600A.c, the PMSA supports a unified memory protection
scheme where an Memory Protection Unit (MPU) manages instruction and
data access. Currently, Xen only supports VMSA.

Introduce a Kconfig option CONFIG_MMU, which is currently default
set to y and unselectable because currently only VMSA is supported.
CONFIG_MMU will be used in follow-up patches.

Suggested-by: Julien Grall <jgrall@amazon.com>
Signed-off-by: Henry Wang <Henry.Wang@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/Kconfig

index 650aca99ac262ac700ec2a8baf11f805c0e204e0..632dd9792e3c15636da87be40d61e2df6beeff9a 100644 (file)
@@ -59,6 +59,9 @@ config PADDR_BITS
        default 40 if ARM_PA_BITS_40
        default 48 if ARM_64
 
+config MMU
+       def_bool y
+
 source "arch/Kconfig"
 
 config ACPI