Likun/upf enable smoke - #1
Open
Liquidzk wants to merge 22 commits into
Open
Conversation
Signed-off-by: Liquidzk <492928615@qq.com>
Signed-off-by: Liquidzk <492928615@qq.com>
Signed-off-by: Liquidzk <492928615@qq.com>
Signed-off-by: Liquidzk <492928615@qq.com>
Liquidzk
force-pushed
the
likun/upf-enable-smoke
branch
from
July 13, 2026 03:05
3a81581 to
21f105e
Compare
Signed-off-by: Liquidzk <492928615@qq.com>
Signed-off-by: Liquidzk <492928615@qq.com>
Signed-off-by: Liquidzk <492928615@qq.com>
Liquidzk
force-pushed
the
likun/upf-enable-smoke
branch
from
July 14, 2026 08:13
a206f6d to
4a060b1
Compare
Signed-off-by: Liquidzk <492928615@qq.com>
Signed-off-by: Liquidzk <492928615@qq.com>
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.
Summary
Properly integrate Firecracker's UFFD-backed UPF snapshot restore path. Related to vhive-serverless#807.
This PR restores the basic
-snapshots -upfflow for the current Firecracker stack by wiring Firecracker's vanilla UFFD memory backend into vHive's memory manager.REAP working-set recording/replay and lazy working-set prefetch need follow-up work.
Implementation Notes ⚒️
Configure UPF restore to use Firecracker
Uffdmemory backend.Receive mappings JSON and one UFFD fd from Firecracker's Unix socket payload.
Store mappings in
SnapshotState.Serve page faults using mapping-based offsets:
region.Offset + (faultPageAddr - region.BaseHostVirtAddr)Remove the old legacy working-set/trace path from this basic implementation.
Add memory manager unit tests and CI coverage, including
-race.External Dependencies 🍀
Breaking API Changes⚠️
The existing public flags/options are preserved.
-lazy/WithLazyModeremain accepted for compatibility, but working-set/lazy replay have not been implemented in this PR.Simply specify none (N/A) if not applicable.