[PATCH v1 0/2] luo support for preserving eventfd

From: Chenghao Duan

Date: Thu Jun 25 2026 - 01:50:16 EST


It is my great honor to participate in the development of LiveUpdate.
The current patch implements logic to preserve and retrieve eventfd
states, which I developed by referencing memfd_luo while learning the
LiveUpdate framework.

eventfd serves as a critical notification mechanism between Guest and
Host. During host kernel upgrades, we can preserve the corresponding
eventfd states and restore them after the kernel update completes.

Patch 0001 implements eventfd_luo, while Patch 0002 contains selftest code.
Test procedures:
1. ./luo_test_eventfd --stage 1
2. kexec reboot
3. ./luo_test_eventfd --stage 2

Chenghao Duan (2):
eventfd: luo: luo support for preserving eventfd
selftests: liveupdate: Add selftest for eventfd LUO

fs/Makefile | 1 +
fs/eventfd.c | 40 ++
fs/eventfd_luo.c | 250 ++++++++++++
include/linux/eventfd.h | 2 +
include/linux/kho/abi/eventfd.h | 39 ++
kernel/liveupdate/Kconfig | 16 +
tools/testing/selftests/liveupdate/Makefile | 1 +
tools/testing/selftests/liveupdate/config | 2 +
.../selftests/liveupdate/luo_test_eventfd.c | 376 ++++++++++++++++++
9 files changed, 727 insertions(+)
create mode 100644 fs/eventfd_luo.c
create mode 100644 include/linux/kho/abi/eventfd.h
create mode 100644 tools/testing/selftests/liveupdate/luo_test_eventfd.c

--
2.25.1