Centos-kernel-stream-9/kernel/livepatch
Ryan Sullivan 67eaf09d47 livepatch: Add "replace" sysfs attribute
JIRA: https://issues.redhat.com/browse/RHEL-61781

There are situations when it might make sense to combine livepatches
with and without the atomic replace on the same system. For example,
the livepatch without the atomic replace might provide a hotfix
or extra tuning.

Managing livepatches on such systems might be challenging. And the
information which of the installed livepatches do not use the atomic
replace would be useful.

Add new sysfs interface 'replace'. It works as follows:

   $ cat /sys/kernel/livepatch/livepatch-non_replace/replace
   0

   $ cat /sys/kernel/livepatch/livepatch-replace/replace
   1

[ commit log improved by Petr ]

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Miroslav Benes <mbenes@suse.cz>
Link: https://lore.kernel.org/r/20240625151123.2750-2-laoar.shao@gmail.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
(cherry picked from commit adb68ed26a3e92224e04502c768f1bb03b7c7aeb)
Signed-off-by: Ryan Sullivan <rysulliv@redhat.com>
2024-10-15 09:54:10 -04:00
..
Kconfig
Makefile
core.c livepatch: Add "replace" sysfs attribute 2024-10-15 09:54:10 -04:00
core.h
patch.c livepatch: Rename KLP_* to KLP_TRANSITION_* 2024-10-15 09:54:10 -04:00
patch.h
shadow.c
state.c
state.h
transition.c livepatch: Rename KLP_* to KLP_TRANSITION_* 2024-10-15 09:54:10 -04:00
transition.h