It should not be possible to select and build livepatch if HAS_VMAP is
not selected. This is the case on MPU systems.

Signed-off-by: Michal Orzel <michal.or...@amd.com>
---
 xen/common/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/common/Kconfig b/xen/common/Kconfig
index 2539a635f111..16936418a6e6 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
-- 
2.43.0


Reply via email to