]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: mpu: Introduce choice between MMU and MPU
authorAyan Kumar Halder <ayan.kumar.halder@amd.com>
Mon, 28 Oct 2024 12:45:43 +0000 (12:45 +0000)
committerJulien Grall <jgrall@amazon.com>
Fri, 1 Nov 2024 14:00:46 +0000 (14:00 +0000)
There are features in the forthcoming patches which are dependent on
MPU. For eg fixed start address.
Also, some of the Xen features (eg STATIC_MEMORY) will be selected
by the MPU configuration.

Thus, this patch introduces a choice between MMU and MPU for the type
of memory management system. By default, MMU is selected.
MPU is now gated by UNSUPPORTED.

Update SUPPORT.md to state that the support for MPU is experimental.
Also updated CHANGELOG.md as well.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Reviewed-by: Luca Fancellu <luca.fancellu@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
Acked-by: Oleksii Kurochko <oleksii.kurochko@gmail.com>
CHANGELOG.md
SUPPORT.md
xen/arch/arm/Kconfig
xen/arch/arm/platforms/Kconfig

index c499d12dc444d0fa895eaeed4cff4dc1646f470b..674944cbe4fb597987be13e9639914697f154377 100644 (file)
@@ -12,6 +12,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
    - Prefer ACPI reboot over UEFI ResetSystem() run time service call.
 
 ### Added
+ - On Arm:
+   - Experimental support for Armv8-R.
 
 ### Removed
  - On x86:
index 4f560943561cd12f2a59f2b1147bd6e989219c79..82239d02940ab3c8be337b317c84221bbed7c82a 100644 (file)
@@ -40,6 +40,7 @@ supported in this document.
 
     Status, Xen in AArch64 mode: Supported
     Status, Xen in AArch32 mode: Tech Preview
+    Status, Xen in Armv8-R: Experimental
     Status, Cortex A57 r0p0-r1p1: Supported, not security supported
     Status, Cortex A77 r0p0-r1p0: Supported, not security supported
 
index 323c9673618539ad905ba49970997641440e2a70..ed92eb67cb0d305258fdb85caf63d71cd41112d9 100644 (file)
@@ -58,10 +58,25 @@ config PADDR_BITS
        default 40 if ARM_PA_BITS_40
        default 48 if ARM_64
 
+choice
+       prompt "Memory management system"
+       default MMU
+       help
+         User can choose between the different forms of memory management system.
+
 config MMU
-       def_bool y
+       bool "MMU"
        select HAS_PMAP
        select HAS_VMAP
+       help
+         Select it if you plan to run Xen on A-profile Armv7+
+
+config MPU
+       bool "MPU" if UNSUPPORTED
+       help
+         Memory Protection Unit (MPU). Select if you plan to run Xen on ARMv8-R
+         systems supporting EL2. (UNSUPPORTED)
+endchoice
 
 source "arch/Kconfig"
 
index 76f7e76b1bf494520042fbff6c6346aa0e87417c..02322c259c5aad0ef13a0cda9321c4848ab1cfe5 100644 (file)
@@ -1,5 +1,5 @@
 choice
-       prompt "Platform Support"
+       prompt "Platform Support" if MMU
        default ALL_PLAT
        help
        Choose which hardware platform to enable in Xen.