Commit 386acef
Bump hyperlight-host to new snapshot api (#128)
* Updating hyperlight-wasm crate features so mshv3 is the default (instead of mshv2)
Signed-off-by: Mark Rossett <[email protected]>
* update hyperlight dependencies to 0.8.0
Signed-off-by: Ludvig Liljenberg <[email protected]>
* [host] migrate to snapshot-based sandbox API
Replace transition-based sandbox evolution with direct snapshot/restore API:
- Remove EvolvableSandbox/DevolvableSandbox trait usage
- Replace transition callbacks with direct method calls
- Add snapshot/restore methods to LoadedWasmSandbox
- Store initial snapshots in WasmSandbox for efficient unloading
- Export Snapshot type in public API
This provides more direct control over sandbox state management
and enables features like checkpoint/restore.
Signed-off-by: Ludvig Liljenberg <[email protected]>
* [guest] improve WASM runtime memory management
- Reuse wasmtime Store and Instance across guest function calls instead
of creating new one per call.
- Establish memory contract between host and guest.
- Guest functions takes ownership of input parameters
- Guest transfer ownership of return values
- Host functions parameters are borrowed from guest
- Host function return values are owned by guest and guest must free them.
- Component: Add post_return calls for proper WASM function cleanup
- Fix ABI mismatch in parameter of guest_dispatch_function
Signed-off-by: Ludvig Liljenberg <[email protected]>
* Update wasm files to account for new memory contracts
Signed-off-by: Ludvig Liljenberg <[email protected]>
* Modify justfile such that build-wasmtime-runtime is done last
...and so "build" recipe doens't build runtime. Seeems to fix some local build issues
Signed-off-by: Ludvig Liljenberg <[email protected]>
---------
Signed-off-by: Mark Rossett <[email protected]>
Signed-off-by: Ludvig Liljenberg <[email protected]>
Co-authored-by: Mark Rossett <[email protected]>1 parent 946e6ad commit 386acef
File tree
22 files changed
+688
-325
lines changed- .github/workflows
- src
- hyperlight_wasm_macro
- src
- hyperlight_wasm
- src
- sandbox
- wasm_runtime
- src
- wasmsamples
22 files changed
+688
-325
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
0 commit comments