Skip to content

Commit 221a167

Browse files
committed
fixup! [host/*] change API usage (MemoryRegions, MemMgrWrapper, etc.) across codebase
1 parent 8550f40 commit 221a167

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/hyperlight_host/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ pub use sandbox::UninitializedSandbox;
8181
pub use crate::func::call_ctx::MultiUseGuestCallContext;
8282

8383
/// The universal `Result` type used throughout the Hyperlight codebase.
84-
pub type Result<T> = core::result::Result<T, HyperlightError>;
84+
pub type Result<T> = core::result::Result<T, error::HyperlightError>;
8585

8686
// Logs an error then returns with it , more or less equivalent to the bail! macro in anyhow
8787
// but for HyperlightError instead of anyhow::Error

src/hyperlight_host/src/mem/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,15 @@ pub(crate) mod custom_drop;
2121
pub(crate) mod elf;
2222
/// A generic wrapper for executable files (PE, ELF, etc)
2323
pub(crate) mod exe;
24+
/// Functionality to establish a sandbox's memory layout.
25+
pub mod layout;
2426
/// Safe wrapper around an HINSTANCE created by the windows
2527
/// `LoadLibrary` call
2628
#[cfg(target_os = "windows")]
2729
pub(super) mod loaded_lib;
28-
/// Functionality that wraps `SandboxMemorySections` and a
30+
/// memory regions to be mapped inside a vm
31+
pub mod memory_region;
32+
/// Functionality that wraps a `SandboxMemoryLayout` and a
2933
/// `SandboxMemoryConfig` to mutate a sandbox's memory as necessary.
3034
pub mod mgr;
3135
/// Functionality to read and mutate a PE file in a structured manner.

0 commit comments

Comments
 (0)