hyperlight_host/mem/mod.rs
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025 The Hyperlight Authors.
3
4/// A simple ELF loader
5pub(crate) mod elf;
6/// A generic wrapper for executable files (PE, ELF, etc)
7pub(crate) mod exe;
8/// Functionality to establish a sandbox's memory layout.
9pub mod layout;
10/// memory regions to be mapped inside a vm
11pub mod memory_region;
12/// Functionality that wraps a `SandboxMemoryLayout` and a
13/// `SandboxMemoryConfig` to mutate a sandbox's memory as necessary.
14pub mod mgr;
15/// Structures to represent pointers into guest and host memory
16pub mod ptr;
17/// Structures to represent memory address spaces into which pointers
18/// point.
19pub(super) mod ptr_addr_space;
20/// Structures to represent an offset into a memory space
21pub mod ptr_offset;
22/// A wrapper around unsafe functionality to create and initialize
23/// a memory region for a guest running in a sandbox.
24pub mod shared_mem;
25/// Utilities for writing shared memory tests
26#[cfg(all(test, not(miri)))] // uses proptest which isn't miri-compatible
27pub(crate) mod shared_mem_tests;