Skip to content

Commit 59d5595

Browse files
committed
Refactor memory module to remove shared_mem_snapshot and replace with shared_memory_snapshot_manager for improved snapshot management
Signed-off-by: Simon Davies <[email protected]>
1 parent f646159 commit 59d5595

File tree

1 file changed

+12
-3
lines changed
  • src/hyperlight_host/src/mem

1 file changed

+12
-3
lines changed

src/hyperlight_host/src/mem/mod.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,25 @@ See the License for the specific language governing permissions and
1414
limitations under the License.
1515
*/
1616

17+
/// Various helper functions for working with bitmaps
18+
pub(crate) mod bitmap;
19+
/// a module for tracking dirty pages in the host.
20+
pub(crate) mod dirty_page_tracking;
1721
/// A simple ELF loader
1822
pub(crate) mod elf;
1923
/// A generic wrapper for executable files (PE, ELF, etc)
2024
pub(crate) mod exe;
2125
/// Functionality to establish a sandbox's memory layout.
2226
pub mod layout;
27+
#[cfg(target_os = "linux")]
28+
mod linux_dirty_page_tracker;
2329
/// memory regions to be mapped inside a vm
2430
pub mod memory_region;
2531
/// Functionality that wraps a `SandboxMemoryLayout` and a
2632
/// `SandboxMemoryConfig` to mutate a sandbox's memory as necessary.
2733
pub mod mgr;
34+
/// A compact snapshot representation for memory pages
35+
pub(crate) mod page_snapshot;
2836
/// Structures to represent pointers into guest and host memory
2937
pub mod ptr;
3038
/// Structures to represent memory address spaces into which pointers
@@ -35,9 +43,10 @@ pub mod ptr_offset;
3543
/// A wrapper around unsafe functionality to create and initialize
3644
/// a memory region for a guest running in a sandbox.
3745
pub mod shared_mem;
38-
/// A wrapper around a `SharedMemory` and a snapshot in time
39-
/// of the memory therein
40-
pub mod shared_mem_snapshot;
4146
/// Utilities for writing shared memory tests
4247
#[cfg(test)]
4348
pub(crate) mod shared_mem_tests;
49+
/// A wrapper around a `SharedMemory` to manage snapshots of the memory
50+
pub mod shared_memory_snapshot_manager;
51+
#[cfg(target_os = "windows")]
52+
mod windows_dirty_page_tracker;

0 commit comments

Comments
 (0)