From aeea3fd3415b02c170c7b6bb44dabab2cdb6ccad Mon Sep 17 00:00:00 2001 From: Michal Orzel Date: Thu, 31 Jul 2025 10:05:22 +0200 Subject: [PATCH] common: Make livepatch dependent on HAS_VMAP While technically possible to support live-patching on MPU systems, today the code depends on vmap. However, this relationship is not reflected in Kconfig and allows to enable live-patching on MPU, where HAS_VMAP is not selected. Signed-off-by: Michal Orzel Reviewed-by: Jan Beulich --- xen/common/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/Kconfig b/xen/common/Kconfig index 2539a635f1..16936418a6 100644 --- a/xen/common/Kconfig +++ b/xen/common/Kconfig @@ -477,7 +477,7 @@ config CRYPTO config LIVEPATCH bool "Live patching support" default X86 - depends on "$(XEN_HAS_BUILD_ID)" = "y" && SYSCTL + depends on "$(XEN_HAS_BUILD_ID)" = "y" && SYSCTL && HAS_VMAP select CC_SPLIT_SECTIONS help Allows a running Xen hypervisor to be dynamically patched using