Live update orchestrator file handlers depend on the preservation of other files. To make sure that the dependency is preserved, the file handlers needs to fetch the preservation token of the preserved dependency. Similarly during restore, a file handler wants to fetch the restored file of the dependency.
There are two known usecases of this, - VFIO-Cdev preservation requires the preservation of iommufd. This is required by the IOMMU preservation series: https://lore.kernel.org/all/[email protected]/ - guest_memfd preservation requires the preservation of kvmfd. This is required by the guest_memfd preservation series: https://lore.kernel.org/all/20ae20f9d1a198b289444ebb4c824314cbba1bcf.1780676742.git.taruns...@google.com/ This patch was being sent as part of the IOMMU preservation series, but now it is being sent separately. Pasha Tatashin (1): liveupdate: luo_file: Add internal APIs for file preservation include/linux/liveupdate.h | 21 ++++++++++ kernel/liveupdate/luo_file.c | 69 ++++++++++++++++++++++++++++++++ kernel/liveupdate/luo_internal.h | 17 ++++++++ 3 files changed, 107 insertions(+) base-commit: 34e8f02817e31826e76bb2ded48bf28fe921f20b -- 2.54.0.1136.gdb2ca164c4-goog
