[PATCH v2 04/10] liveupdate: add support for linked-block serialization
Pasha Tatashin
pasha.tatashin at soleen.com
Sun May 17 11:40:50 PDT 2026
On 05-17 20:26, Mike Rapoport wrote:
> On Thu, May 14, 2026 at 10:26:22PM +0000, Pasha Tatashin wrote:
> > Introduce a linked-block serialization mechanism for LUO state.
> >
> > Previously, LUO used contiguous memory blocks for serializing sessions
> > and files, which imposed limits on the total number of items that could
> > be preserved across a live update.
> >
> > This commit adds the infrastructure for a more flexible, block-based
> > approach where serialized data is stored in a chain of linked blocks.
> > This is a preparatory step to allow an unlimited number of
> > luo_sessions and luo_files to be preserved.
>
> Shouldn't it be a part of KHO?
It can be. However, at the moment, it is only used by LUO, so I kept it
there. Sami is also planning to use it for IOMMU; if so, he will adopt
the interface for his usage as well, and move it to a separate KHO
library.
>
> > Signed-off-by: Pasha Tatashin <pasha.tatashin at soleen.com>
> > ---
> > Documentation/core-api/liveupdate.rst | 8 +
> > include/linux/kho/abi/luo.h | 22 ++
> > kernel/liveupdate/Makefile | 1 +
> > kernel/liveupdate/luo_block.c | 388 ++++++++++++++++++++++++++
> > kernel/liveupdate/luo_internal.h | 57 ++++
> > 5 files changed, 476 insertions(+)
> > create mode 100644 kernel/liveupdate/luo_block.c
>
> --
> Sincerely yours,
> Mike.
More information about the kexec
mailing list