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
added custom guest memory region and tmp custom guest
Context: Instead of having a static memory layout set by the host, we want to provide the guest w/ a custom sized
allocated undifferentiated memory region for it address in any way it wants. This commit starts that by adding the
custom guest memory region.
Changes:
- added new section to SandboxMemoryLayout, and made getters for its offset and size.
- changed get_total_page_table_size calculation to account for custom section.
- added new section to builder in get_memory_regions.
- wrote address of custom guest memory region to custom guest memory offset.
- added new memory section to page table setup (i.e., set_up_shared_memory).
- added function to get custom guest memory region as Vec<u8>.
- made custom guest memory section size configurable via SandboxConfiguration.
- fixed existing tests.
- added new guest (customguest) to test custom setup. Modified Justfile to include it for easy builds too.
- added new test for custom init with the new customguest.
Signed-off-by: danbugs <[email protected]>
0 commit comments