Rebase hyperlight dep onto upstream main#98
Conversation
There was a problem hiding this comment.
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-hostdependency from a pinned commit on a fork to thehyperlight-dev/hyperlighthyperlight-unikraftbranch. - Updated
map_file_cowcall sites to the new 2-argument signature (label removed). - Refreshed
Cargo.lockto 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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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>
0bfd989 to
676d940
Compare
Signed-off-by: danbugs <danilochiarlone@gmail.com>
Summary
hyperlight-hostdependency fromdanbugs/hyperlight(pinned rev on stale fork) tohyperlight-dev/hyperlightbranchhyperlight-unikraft, which is rebased on current upstreammainmap_file_cowcalls to the new upstream 2-arg signature (label parameter was removed)hyperlight-unikraftbranch 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_fileforpyhl)Test plan
cargo fmt --checkpassescargo clippy -D warningspassescargo test --all-targets— 3/3 tests passpyhl setupcreates snapshot successfullypyhl runloads snapshot and executes Python (numpy import verified)