arm: Define kconfig symbols used by arm64 cpufeatures
authorBertrand Marquis <bertrand.marquis@arm.com>
Mon, 13 Jun 2022 12:53:14 +0000 (13:53 +0100)
committerStefano Stabellini <stefano.stabellini@xilinx.com>
Thu, 16 Jun 2022 00:33:56 +0000 (17:33 -0700)
Define kconfig symbols which are used by arm64 cpufeatures to prevent
using undefined symbols and rely on IS_ENABLED returning false.
All the features related to those symbols are unsupported by Xen:
- pointer authentication
- sve
- memory tagging
- branch target identification

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/Kconfig

index a89a67802aa9beeee29d894befbbc6b42d3c2d9d..5900aa2efef30b941668a0b509b795a1c133034f 100644 (file)
@@ -98,6 +98,34 @@ config HARDEN_BRANCH_PREDICTOR
 
          If unsure, say Y.
 
+config ARM64_PTR_AUTH
+       def_bool n
+       depends on ARM64
+       help
+         Pointer authentication support.
+         This feature is not supported in Xen.
+
+config ARM64_SVE
+       def_bool n
+       depends on ARM64
+       help
+         Scalar Vector Extension support.
+         This feature is not supported in Xen.
+
+config ARM64_MTE
+       def_bool n
+       depends on ARM64
+       help
+         Memory Tagging Extension support.
+         This feature is not supported in Xen.
+
+config ARM64_BTI
+       def_bool n
+       depends on ARM64
+       help
+         Branch Target Identification support.
+         This feature is not supported in Xen.
+
 config TEE
        bool "Enable TEE mediators support (UNSUPPORTED)" if UNSUPPORTED
        default n