What's Changed
Added
- ARM64 guests support CPUs without LSE atomics when built with
-C target-feature=-lse. - Add
HYPERLIGHT_SURROGATE_EXTRACT_DIRto configure the surrogate extraction directory on Windows. - Add
Sandbox::recreate(), which rebuilds a sandbox's VM and memory from a snapshot. It recovers unrecoverable sandboxes and keeps configuration, host functions, and interrupt handles by @ludfjig in #1751 - Add ARM64 Linux MSHV support by @cshung in #1626
Changed
hyperlight-hostrequires Rust 1.95.Snapshot::savecaches memory-layer hashes and trusts existing same-length
regular blobs by their content-addressed filenames without verifying their
contents. Callers must keep blobs immutable. Use the new
Snapshot::checked_saveto recompute hashes, verify existing blobs, and
atomically repair mismatched contents.- Breaking: Snapshots use ABI 12. Guests must be rebuilt and existing
snapshots regenerated. Capture and restore provide full H2G bootstrap
capacity before guest entry, independent of retained buffers. Snapshot
capture runs on the host while the guest is stopped.
On-disk snapshots store transport geometry. Loading rebuilds the ring images.
The checkpoint request,prepare_snapshot,VirtqProducer::reclaim_slots,
and queue reset APIs are removed. Snapshot::saveno longer synchronously flushes files to stable storage.
Callers requiring power-loss durability must sync the snapshot files and
directory hierarchy themselves after saving.- Breaking: Snapshots use ABI 10 and config schema v6. Guests must be rebuilt
and existing snapshots regenerated. Guest entry takes the random seed, host
page size, and log level. - Breaking: Encode function calls with serde/postcard instead of FlatBuffers.
- Stop resetting guest FPU state between guest calls to improve performance.
Fixed
- Fix surrogate process creation for Windows paths containing Unicode or spaces.
- Fix restore on WHP not rewinding the guest TSC on hosts with
TSC_ADJUSTsupport. - HVF sandbox initialization accepts seeds that match Apple hypercall identifiers.
- Host-written snapshot memory has instruction-cache coherence before guest execution.
- Fix slow scratch zeroing on restore under KVM in default builds.
- Fix C# component bindings keeping an entry for every resource handle passed to or from the guest.
Removed
- Breaking:
SandboxBuilder::init_data,GuestEnvironment,GuestBlob,
GuestHandle,HyperlightPEB, andread_n_bytes_from_user_memory.
Pass startup data through a host function and retain itsByteChunksreply.
UninitializedSandbox::newtakes aGuestBinary. - Remove Git details from build logs. These were not shipped on crates.io.
- Remove the
print_debugfeature andhyperlight_host::debug!. Usetracing::debug!instead. - Breaking: Remove the
executable_heapfeature. To run code from the guest
heap, write it, then map its pages executable with
hyperlight_guest_bin::paging::modify_mapping. Flush them with
paging::barrier::downgrade_in_place. On aarch64, also sync the instruction
cache before running the code.
Full Changelog (excl. dependencies)
- fix(ci): limit setup for golden checks and benchmark reports by @cshung in #2031
- Moves the surrogate from the shared
target\release\build\hlsby @simongdavies in #2038 - HIP 0008: Postcard serialization for host-guest messages by @ludfjig in #1999
- Fix C# rejection tests with the stricter WIT parser by @jsturtevant in #2049
- Restore the guest TSC exactly on WHP by @ludfjig in #2022
- Test guest CET access across KVM kernels by @jsturtevant in #2051
- HIP 0009: add proposal for hyperlight streams by @andreiltd in #1969
- Document structured label usage by @yoshuawuyts in #2010
- Migrate label automation by @yoshuawuyts in #2042
- Add Sandbox::recreate to recover unrecoverable sandboxes by @ludfjig in #1751
- fix: avoid apple hypercalls and synchronize snapshot instruction caches by @andreiltd in #2039
- feat!: replace shared-memory init data with virtqueue buffers by @andreiltd in #2030
- Replace FlatBuffers with serde/postcard for host-guest messages by @ludfjig in #2044
- Add a configurable surrogate extraction directory on Windows by @ludfjig in #2058
- Remove print_debug and simplify Cargo features by @ludfjig in #1980
- Remove synchronous flushes from snapshot saving by @jprendes in #2078
- Pick KVM scratch zeroing at runtime by @ludfjig in #2084
- Skip FPU reset before each guest call by @ludfjig in #2081
- Cache snapshot memory hashes and add checked saving by @jprendes in #2079
- leakpocalypse in internal resource table API by @syntactically in #2076
- Implement MSHV aarch64 backend by @cshung in #1626
- Support opt-in Raspberry Pi 4 guest builds by @cshung in #2092
- update changelog by @simongdavies in #2096
- feat(virtq): rebuild message queues on snapshot capture and restore by @andreiltd in #2091
- Warm up per-sample benchmark state by @ludfjig in #2101
- Remove C# resource table entries once they're released by @ludfjig in #2098
- Remove executable_heap feature by @ludfjig in #2026
- Add explicit snapshot compaction with optional base-layer preservation by @jprendes in #2097
- HIP 0007: Major Versions by @yoshuawuyts in #1994
Full Changelog (dependencies)
- chore(deps): bump log from 0.4.34 to 0.4.35 in /src/tests/rust_guests by @dependabot[bot] in #2037
- chore(deps): bump iced-x86 from 1.21.0 to 1.22.0 by @dependabot[bot] in #2035
- chore(deps): bump log from 0.4.34 to 0.4.35 by @dependabot[bot] in #2036
- chore(deps): bump actions-rust-lang/setup-rust-toolchain from 2.0.0 to 2.0.1 by @dependabot[bot] in #2032
- chore(deps): bump crate-ci/typos from 1.51.1 to 1.52.0 by @dependabot[bot] in #2034
- chore(deps): bump taiki-e/install-action from 2.87.31 to 2.89.1 by @dependabot[bot] in #2033
- chore(deps): bump cc from 1.10.0 to 1.11.0 by @dependabot[bot] in #2041
- chore(deps): bump toml from 1.1.8+spec-1.1.0 to 1.2.0+spec-1.1.0 by @dependabot[bot] in #2046
- chore(deps): bump the wasm-tools group across 1 directory with 4 updates by @dependabot[bot] in #1964
- chore(deps): bump oras-project/setup-oras from 2.0.2 to 2.0.3 by @dependabot[bot] in #2017
- chore(deps): bump taiki-e/install-action from 2.89.1 to 2.90.1 by @dependabot[bot] in #2045
- chore(deps): bump ruzstd to 0.9.1 by @jsturtevant in #2048
- chore(deps): bump libz-sys to 1.1.31 by @jsturtevant in #2047
- chore(deps): bump docker/login-action from 4.7.0 to 4.8.0 by @dependabot[bot] in #2053
- chore(deps): bump linkme from 0.3.37 to 0.3.38 by @dependabot[bot] in #2060
- chore(deps): bump uuid from 1.28.0 to 1.29.2 by @dependabot[bot] in #2064
- chore(deps): bump toml from 1.2.0+spec-1.1.0 to 1.2.1+spec-1.1.0 by @dependabot[bot] in #2065
- chore(deps): bump fixedbitset from 0.5.7 to 0.5.9 by @dependabot[bot] in #2066
- chore(deps): bump taiki-e/install-action from 2.90.1 to 2.90.3 by @dependabot[bot] in #2059
- chore(deps): bump crate-ci/typos from 1.52.0 to 1.52.2 by @dependabot[bot] in #2074
- chore(deps): bump rust-embed from 8.13.0 to 8.14.0 by @dependabot[bot] in #2077
- chore(deps): bump cc from 1.11.0 to 1.11.1 by @dependabot[bot] in #2063
- chore(deps): bump loom from 0.7.2 to 0.7.3 by @dependabot[bot] in #2062
- chore(deps): bump smallvec from 1.16.4 to 1.16.5 by @dependabot[bot] in #2061
- chore(deps): bump cc from 1.11.1 to 1.11.2 by @dependabot[bot] in #2087
- chore(deps): bump rand from 0.10.3 to 0.10.4 by @dependabot[bot] in #2088
- chore(deps): bump windows-version from 0.1.7 to 0.100.0 by @dependabot[bot] in #1831
- chore(deps): bump uuid from 1.29.2 to 1.29.3 by @dependabot[bot] in #2095
- chore(deps): bump bytes from 1.12.1 to 1.12.2 by @dependabot[bot] in #2103
- chore(deps): bump regex from 1.13.1 to 1.13.2 by @dependabot[bot] in #2104
- chore(deps): bump smallvec from 1.16.5 to 1.16.6 by @dependabot[bot] in #2116
- chore(deps): bump postcard from 1.1.3 to 1.2.0 by @dependabot[bot] in #2127
- chore(deps): bump env_logger from 0.11.11 to 0.11.12 by @dependabot[bot] in #2126
- chore(deps): bump toml from 1.2.1+spec-1.1.0 to 1.2.2+spec-1.1.0 by @dependabot[bot] in #2125
Full Changelog: v0.19.0...dev-latest