docs: native snapshot-fork feasibility (GO — extend our libkrun fork)#27
Merged
Conversation
Code survey of A3S-Lab/libkrun (vendored checkout): vCPU/VM state save+restore already exists as dead code; pause/resume half-wired; TEE guest_memfd is an in-tree precedent for non-anonymous RAM; device serialization missing — but our use case snapshots an IDLE deferred-main template (quiesced queues), shrinking device state to queue registration + the virtio-fs inode map (the one hard item). Native path chosen over a Firecracker/CH second backend (no virtio-fs in FC; no adapter layer; single VMM). 4-phase plan, Phase A = RAM+CPU snapshot/restore with MAP_PRIVATE CoW, go/no-go in ~2 weeks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves the backend-selection question from #17: go native in A3S-Lab/libkrun (vendored checkout) instead of adding a Firecracker/CH second VMM.
Survey findings: vCPU/VM save+restore already exists (dead code,
vstate.rs); pause/resume half-wired; TEEguest_memfdis in-tree precedent for file-backed RAM; virtio device serialization is missing — but snapshotting an IDLE deferred-main template (P2) collapses the device problem to queue registration + the virtio-fs inode map.4-phase plan, ~4–6 weeks total; Phase A (memfd RAM +
krun_snapshot/krun_restorewithMAP_PRIVATECoW on a quiesced idle VM) gives a measurable go/no-go in ~2 weeks.