1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only 212cf89b5SJosh Poimboeufconfig HAVE_LIVEPATCH 383ac237aSChristoph Jaeger bool 4b700e7f0SSeth Jennings help 5b700e7f0SSeth Jennings Arch supports kernel live patching 6b700e7f0SSeth Jennings 712cf89b5SJosh Poimboeufconfig LIVEPATCH 883ac237aSChristoph Jaeger bool "Kernel Live Patching" 92860cd8aSSteven Rostedt (VMware) depends on DYNAMIC_FTRACE_WITH_REGS || DYNAMIC_FTRACE_WITH_ARGS 10b700e7f0SSeth Jennings depends on MODULES 11b700e7f0SSeth Jennings depends on SYSFS 12b700e7f0SSeth Jennings depends on KALLSYMS_ALL 1312cf89b5SJosh Poimboeuf depends on HAVE_LIVEPATCH 145720acf4SMiroslav Benes depends on !TRIM_UNUSED_KSYMS 15b700e7f0SSeth Jennings help 16b700e7f0SSeth Jennings Say Y here if you want to support kernel live patching. 17b700e7f0SSeth Jennings This option has no runtime impact until a kernel "patch" 18b700e7f0SSeth Jennings module uses the interface provided by this option to register 19b700e7f0SSeth Jennings a patch, causing calls to patched functions to be redirected 20b700e7f0SSeth Jennings to new function code contained in the patch module. 21*7ae60ff0SJosh Poimboeuf 22*7ae60ff0SJosh Poimboeufconfig HAVE_KLP_BUILD 23*7ae60ff0SJosh Poimboeuf bool 24*7ae60ff0SJosh Poimboeuf help 25*7ae60ff0SJosh Poimboeuf Arch supports klp-build 26*7ae60ff0SJosh Poimboeuf 27*7ae60ff0SJosh Poimboeufconfig KLP_BUILD 28*7ae60ff0SJosh Poimboeuf def_bool y 29*7ae60ff0SJosh Poimboeuf depends on LIVEPATCH && HAVE_KLP_BUILD 30*7ae60ff0SJosh Poimboeuf select OBJTOOL 31*7ae60ff0SJosh Poimboeuf help 32*7ae60ff0SJosh Poimboeuf Enable klp-build support 33