Skip to content

Rebase hyperlight dep onto upstream main#98

Open
danbugs wants to merge 2 commits into
mainfrom
chore/rebase-hyperlight-dep
Open

Rebase hyperlight dep onto upstream main#98
danbugs wants to merge 2 commits into
mainfrom
chore/rebase-hyperlight-dep

Conversation

@danbugs

@danbugs danbugs commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Switch hyperlight-host dependency from danbugs/hyperlight (pinned rev on stale fork) to hyperlight-dev/hyperlight branch hyperlight-unikraft, which is rebased on current upstream main
  • Adapt map_file_cow calls to the new upstream 2-arg signature (label parameter was removed)
  • The hyperlight-unikraft branch in hyperlight core carries the non-upstreamed features this repo needs: whp-no-surrogate mode, restore_preserving_file_mappings, and the snapshot file format (to_file/from_file for pyhl)

Test plan

  • cargo fmt --check passes
  • cargo clippy -D warnings passes
  • cargo test --all-targets — 3/3 tests pass
  • helloworld-c example runs (including 10x snapshot/restore)
  • pyhl setup creates snapshot successfully
  • pyhl run loads snapshot and executes Python (numpy import verified)

Copilot AI review requested due to automatic review settings June 22, 2026 22:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the hyperlight-host dependency to a rebased upstream branch (hyperlight-dev/hyperlight hyperlight-unikraft) and adjusts host code to match the updated upstream API, keeping this repository aligned with current Hyperlight main while retaining required non-upstream features.

Changes:

  • Switched hyperlight-host dependency from a pinned commit on a fork to the hyperlight-dev/hyperlight hyperlight-unikraft branch.
  • Updated map_file_cow call sites to the new 2-argument signature (label removed).
  • Refreshed Cargo.lock to reflect the rebased dependency graph (including updated transitive crate versions).

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
host/src/lib.rs Updates map_file_cow usage to match upstream API changes.
host/Cargo.toml Points hyperlight-host at the rebased upstream hyperlight-unikraft branch.
host/Cargo.lock Updates locked git source and transitive dependency versions from the rebase.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread host/Cargo.toml Outdated

@github-actions github-actions Bot 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.

Linux Benchmarks

Details
Benchmark suite Current: 0bfd989 Previous: 4460ae2 Ratio
hello_world (median) 20 ms 20 ms 1
pandas (median) 120 ms 110 ms 1.09
density (per VM) 11 MB 11 MB 1
snapshot (disk) 657 MiB 656 MiB 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@github-actions github-actions Bot 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.

Windows Benchmarks

Details
Benchmark suite Current: 0bfd989 Previous: 4460ae2 Ratio
hello_world (median) 348 ms 301 ms 1.16
pandas (median) 1023 ms 768 ms 1.33
density (per VM) 656 MB 656 MB 1
snapshot (disk) 664 MiB 664 MiB 1

This comment was automatically generated by workflow using github-action-benchmark.

Snapshot-to-disk is now upstream (OCI format), so the hyperlight-unikraft
branch in hyperlight core is down to just the whp-no-surrogate perf
commits. Update save/load APIs to match upstream's OCI-based Snapshot
persistence (save/load with OciTag instead of to_file/from_file_unchecked),
remove the sparsify_snapshot code (no longer applicable with OCI layout),
and update all snapshot path references from snapshot.hls to snapshot/.

Signed-off-by: danbugs <danilochiarlone@gmail.com>
@danbugs danbugs force-pushed the chore/rebase-hyperlight-dep branch from 0bfd989 to 676d940 Compare June 24, 2026 03:34
Signed-off-by: danbugs <danilochiarlone@gmail.com>
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