Skip to content

liveupdate: Add internal APIs for file preservation

Samiullah Khawaja kexec linux-mm lkml 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest1 patch 0 repliesNew
  2. v21 patch 1 replyApplied
  3. v11 patch 11 repliesSuperseded

Changes in v3 from the cover letter

- Add File Handler dependency documentation.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1liveupdate: luo_file: Add internal APIs for file preservationinclude/linux/liveupdate.h kernel/liveupdate/luo_file.c kernel/liveupdate/luo_internal.h+123 -00 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchPranjal Shrivastava
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/1] liveupdate: Add internal APIs for file preservation

Note: Sending v3 of this as it was requested to document some of the discussion we had on the email.

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.tarunsahu@google.com/

This patch was being sent as part of the IOMMU preservation series, but now it is being sent separately.

v3:
- Add File Handler dependency documentation.

v2:
- rebased on liveupdate/next to resolve conflicts
- Added a note about resolution of dependencies based on offline discussion with Pasha and David.

Pasha Tatashin (1):
liveupdate: luo_file: Add internal APIs for file preservation

 include/linux/liveupdate.h       | 22 +++++++++
 kernel/liveupdate/luo_file.c     | 84 ++++++++++++++++++++++++++++++++
 kernel/liveupdate/luo_internal.h | 17 +++++++
 3 files changed, 123 insertions(+)

base-commit: 3a0b8fa2eb36afc88b62a95f33f0c77c71fa5ded

Signature · 1 line
2.55.0.766.g2966f0265a-goog