From 69e69d59e83a98ca3272c5028fa89f7e9196770d Mon Sep 17 00:00:00 2001 From: Song Liu Date: Wed, 19 May 2021 15:18:27 -0700 Subject: [PATCH] doc: kpatch-build uses "replace" flag by default Add documentation about kpatch-build enables livepatch "replace" flag by default, and provides -R|--non-replace option to disable the flag. Signed-off-by: Song Liu --- doc/patch-author-guide.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/patch-author-guide.md b/doc/patch-author-guide.md index 33c1b27..f3dcf73 100644 --- a/doc/patch-author-guide.md +++ b/doc/patch-author-guide.md @@ -39,6 +39,13 @@ recommended that when patching a system which has already been patched, the second patch should be a cumulative upgrade which is a superset of the first patch. +Since upstream kernel 5.1, livepatch supports a "replace" flag to help the +management of cumulative patches. With the flag set, the kernel will load +the cumulative patch and unload all existing patches in one transition. +kpatch-build enables the replace flag by default. If replace behavior is +not desired, the user can disable it with -R|--non-replace. + + Data structure changes ----------------------