The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH v2 0/7] kho, liveupdate: KHO/LUO observability
@ 2026-11-28 18:27 Chris Down
  2026-11-28 18:27 ` [PATCH v2 1/7] kho: Reclaim the metadata page left reserved after kexec Chris Down
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Chris Down @ 2026-11-28 18:27 UTC (permalink / raw)
  To: Pasha Tatashin, Mike Rapoport, Pratyush Yadav
  Cc: Alexander Graf, Baoquan He, Jonathan Corbet, Shuah Khan, kexec,
	linux-mm, linux-kernel, linux-doc, linux-kselftest, kernel-team,
	Breno Leitao, sashiko-bot

At Meta, we are moving towards using live update on hypervisors whose
VMs can't be migrated away first. We also want to preserve service fd
stores across systemctl kexec.

Our kernel rollout is driven by health checks from each host. For
example, an increase in rejected handovers or retrieval failures may be
a reason to stop a rollout, and the sequence number helps us understand
what is happening on which hosts. The series exposes:

- whether the new kernel accepted the incoming handover
- how much of the preserved memory has been restored
- whether LUO could give back the state that userspace handed over

We expose these in sysfs so the collector can read them without opening
/dev/liveupdate, which starts deserialisation, or depending on debugfs
or the kernel log.

I also noticed that the incoming kexec metadata page stays reserved
after boot, so free it once its contents have been copied.

Pratyush's "kho: housekeeping" series
(https://lore.kernel.org/r/20261127122536.3708770-1-pratyush@kernel.org)
renames kexec_handover.c and kexec_handover_internal.h and changes
kernel/liveupdate/Makefile. This series changes the same three files, so
whichever lands second needs a rebase.

v2:

- Rebase onto the current liveupdate next
- Free the metadata page without reordering kho_init(), now that
  kho/in/sub_fdts is gone (Pasha)
- Drop the Fixes tag from the metadata page patch (Pasha)
- Drop the bootmem size patch and its selftest (Pratyush)
- Move the KHO files to /sys/kernel/kho/incoming/, set up by KHO in
  kho_sysfs.c, so kexec_core.c is no longer touched (Mike)
- Add tags from Breno and Pasha

v1: https://lore.kernel.org/r/cover.1794383544.git.chris@chrisdown.name

Chris Down (7):
  kho: Reclaim the metadata page left reserved after kexec
  liveupdate: Make failed retrieves distinguishable from dropped files
  selftests/liveupdate: Catch incorrect file accounting across kexec
  kho: Expose rejected handovers that look like cold boots
  kho: Report how much handover memory is preserved and restored
  liveupdate: Expose the sequence number for consecutive live updates
  selftests/liveupdate: Check handover revival, sequence and memory
    stats

 .../ABI/testing/sysfs-class-misc-liveupdate   |  56 ++++
 Documentation/ABI/testing/sysfs-kernel-kho    |  21 ++
 Documentation/admin-guide/mm/kho.rst          |  11 +
 Documentation/userspace-api/liveupdate.rst    |   8 +
 MAINTAINERS                                   |   3 +
 kernel/liveupdate/Makefile                    |   2 +-
 kernel/liveupdate/kexec_handover.c            |  26 ++
 kernel/liveupdate/kexec_handover_internal.h   |  10 +
 kernel/liveupdate/kho_sysfs.c                 |  70 +++++
 kernel/liveupdate/luo_core.c                  |  58 ++++
 kernel/liveupdate/luo_file.c                  |  16 +-
 kernel/liveupdate/luo_internal.h              |  34 +++
 kernel/liveupdate/luo_session.c               |   6 +
 tools/testing/selftests/liveupdate/Makefile   |   1 +
 tools/testing/selftests/liveupdate/init.c     |   5 +
 .../selftests/liveupdate/luo_handover_stats.c | 258 ++++++++++++++++++
 .../selftests/liveupdate/run-vmtests.sh       |   1 +
 tools/testing/selftests/liveupdate/vmtest.sh  |   2 +
 18 files changed, 585 insertions(+), 3 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-class-misc-liveupdate
 create mode 100644 Documentation/ABI/testing/sysfs-kernel-kho
 create mode 100644 kernel/liveupdate/kho_sysfs.c
 create mode 100644 tools/testing/selftests/liveupdate/luo_handover_stats.c


base-commit: a8d435799f3c87231bca0c245fd9e60f31e45135
-- 
2.56.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-28 18:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28 18:27 [PATCH v2 0/7] kho, liveupdate: KHO/LUO observability Chris Down
2026-11-28 18:27 ` [PATCH v2 1/7] kho: Reclaim the metadata page left reserved after kexec Chris Down
2026-11-28 18:27 ` [PATCH v2 2/7] liveupdate: Make failed retrieves distinguishable from dropped files Chris Down
2026-11-28 18:27 ` [PATCH v2 3/7] selftests/liveupdate: Catch incorrect file accounting across kexec Chris Down
2026-11-28 18:27 ` [PATCH v2 4/7] kho: Expose rejected handovers that look like cold boots Chris Down
2026-11-28 18:27 ` [PATCH v2 5/7] kho: Report how much handover memory is preserved and restored Chris Down
2026-11-28 18:27 ` [PATCH v2 6/7] liveupdate: Expose the sequence number for consecutive live updates Chris Down
2026-11-28 18:27 ` [PATCH v2 7/7] selftests/liveupdate: Check handover revival, sequence and memory stats Chris Down

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox