v1
2026-08-01
KHO支持多版本数据兼容 · v1
为 KHO/LUO 增加多版本子树接口,单节点下可保存多版本 blob,支持回滚到旧内核的混合模式。
原始补丁链接
子 Patch(4)
1/4
kho: Move subtree blob logic to separate function
Move the logic to set the blob data in a subtree node into a separate function to allow for re-use. No functional change. Signed-off-by: Logan Odell loganodell@google.com — kernel/liveupdate/kex
2/4
kho: Add support for multiple versions in subtrees
Add explicit version support to KHO by creating subnodes with the version number. The first caller to kho_add_subtree_version will create the parent node and versioned subnode. Subsequent calls with a
3/4
kho: Add support for multiple versions to debugfs
Update kho_in_debugfs_init to search for versioned subnodes (depth 2) and expose them as name-version in the input debugfs. This ensures versioned subtrees are visible to userspace for debugging, matc
4/4
kho: Add test cases for versioned subtrees
Add new test cases to test_kho.c to verify saving and restoring multiple versions of a subtree. The test preserves versions 1 and 2 of “kho_test_ver” and retrieves them, verifying their contents. It a