forked from rust-vmm/vm-memory
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This moves the Unix specific parts of the mmap module into mmap-unix.rs and adds mmap-windows.rs, containing the Windows implementation. The Windows implementation uses VirtualAlloc, VirtualFree, CreateFileMappingA and MapViewOfFile to provide the same functionality as on Unix. The external dependencies are defined in the same file, avoiding additional crate dependencies. Signed-off-by: Timo Kreuzer <timo@crowdstrike.com>
- Loading branch information
Showing
7 changed files
with
468 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
### TODO List | ||
- Abstraction layer to seperate VM memory management from VM memory accessor. | ||
- Help needed to refine documentation and usage examples. | ||
- Support of Windows OS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.