| From: |
| Chenghao Duan <duanchenghao-AT-kylinos.cn> |
| To: |
| viro-AT-zeniv.linux.org.uk, brauner-AT-kernel.org, jack-AT-suse.cz, linux-fsdevel-AT-vger.kernel.org, pasha.tatashin-AT-soleen.com, linux-kernel-AT-vger.kernel.org, rppt-AT-kernel.org, pratyush-AT-kernel.org, kexec-AT-lists.infradead.org, linux-mm-AT-kvack.org |
| Subject: |
| [PATCH v1 0/2] luo support for preserving eventfd |
| Date: |
| Thu, 25 Jun 2026 13:49:44 +0800 |
| Message-ID: |
| <20260625054946.73445-1-duanchenghao@kylinos.cn> |
| Cc: |
| jianghaoran-AT-kylinos.cn, duanchenghao-AT-kylinos.cn |
| Archive-link: |
| Article |
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