Linux filesystem development
 help / color / mirror / Atom feed
* [PATCH v1 0/2] luo support for preserving eventfd
@ 2026-06-25  5:49 Chenghao Duan
  2026-06-25  5:49 ` [PATCH v1 1/2] eventfd: luo: " Chenghao Duan
  2026-06-25  5:49 ` [PATCH v1 2/2] selftests: liveupdate: Add selftest for eventfd LUO Chenghao Duan
  0 siblings, 2 replies; 4+ messages in thread
From: Chenghao Duan @ 2026-06-25  5:49 UTC (permalink / raw)
  To: viro, brauner, jack, linux-fsdevel, pasha.tatashin, linux-kernel,
	rppt, pratyush, kexec, linux-mm
  Cc: jianghaoran, duanchenghao

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


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

end of thread, other threads:[~2026-06-25  9:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-25  5:49 [PATCH v1 0/2] luo support for preserving eventfd Chenghao Duan
2026-06-25  5:49 ` [PATCH v1 1/2] eventfd: luo: " Chenghao Duan
2026-06-25  9:06   ` Pratyush Yadav
2026-06-25  5:49 ` [PATCH v1 2/2] selftests: liveupdate: Add selftest for eventfd LUO Chenghao Duan

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