You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of using a shared memory region or a host function callback
to provide host function definitions to the guest, the host now pushes
the serialized definitions directly as a parameter to InitWasmRuntime.
Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
6
6
## [Prerelease] - Unreleased
7
7
8
+
### Changed
9
+
-**BREAKING CHANGE:** Removed `SandboxBuilder::with_function_definition_size`. Host function definitions are now pushed to the guest at runtime load time instead of using a separate memory region. (#388)
Copy file name to clipboardExpand all lines: src/hyperlight_wasm/src/sandbox/proto_wasm_sandbox.rs
+45-2Lines changed: 45 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,9 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
+
use hyperlight_common::flatbuffer_wrappers::function_types::{ParameterType,ReturnType};
18
+
use hyperlight_common::flatbuffer_wrappers::host_function_definition::HostFunctionDefinition;
19
+
use hyperlight_common::flatbuffer_wrappers::host_function_details::HostFunctionDetails;
17
20
use hyperlight_host::func::{HostFunction,ParameterTuple,Registerable,SupportedReturnType};
18
21
use hyperlight_host::sandbox::config::SandboxConfiguration;
19
22
use hyperlight_host::{GuestBinary,Result,UninitializedSandbox, new_error};
@@ -31,6 +34,8 @@ use crate::build_info::BuildInfo;
31
34
/// With that `WasmSandbox` you can load a Wasm module through the `load_module` method and get a `LoadedWasmSandbox` which can then execute functions defined in the Wasm module.
32
35
pubstructProtoWasmSandbox{
33
36
pub(super)inner:Option<UninitializedSandbox>,
37
+
/// Tracks registered host function definitions for pushing to the guest at load time
0 commit comments