Skip to content

UPF working set restoring - #1229

Merged
leokondrashov merged 6 commits into
vhive-serverless:mainfrom
Liquidzk:likun/upf-ws-restore
Jul 27, 2026
Merged

UPF working set restoring#1229
leokondrashov merged 6 commits into
vhive-serverless:mainfrom
Liquidzk:likun/upf-ws-restore

Conversation

@Liquidzk

@Liquidzk Liquidzk commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #1221. This PR restores UPF working-set recording and replay.

Implementation Notes ⚒️

  • Stores working-set pages and traces as snapshot artifacts.
  • Installs the recorded working set during subsequent snapshot restores.
  • Adds tests for recording and replaying working sets across different VM instances.

The legacy working-set design relied on VM-local in-memory state and did not fit revision-based restores. (exists some differences from the old version) This implementation therefore:

  • Stores artifacts by revision snapshot instead of VM ID.
  • Persists versioned trace metadata for reuse across VM instances.
  • Uses Firecracker mappings and page sizes for address translation.
  • Validates and atomically replaces working-set artifacts.

External Dependencies 🍀

Breaking API Changes ⚠️

Simply specify none (N/A) if not applicable.

Liquidzk added 5 commits July 21, 2026 14:18
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>
Signed-off-by: Liquidzk <492928615@qq.com>

@leokondrashov leokondrashov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, please fix the minor comments

Comment thread vhive.go
Comment thread ctriface/Makefile Outdated
Comment thread ctriface/orch_options.go
Comment thread memory/manager/trace.go Outdated
@Liquidzk
Liquidzk force-pushed the likun/upf-ws-restore branch from 32bce33 to 6d56829 Compare July 26, 2026 15:39
Signed-off-by: Liquidzk <492928615@qq.com>
@Liquidzk
Liquidzk force-pushed the likun/upf-ws-restore branch from 6d56829 to f82cee6 Compare July 26, 2026 16:07

@leokondrashov leokondrashov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good now

@leokondrashov
leokondrashov merged commit 4dc352c into vhive-serverless:main Jul 27, 2026
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants