-
Notifications
You must be signed in to change notification settings - Fork 139
Make snapshots region aware #742
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e7ab5a3
to
a9486f4
Compare
Can we get this done before the next release? |
11084ba
to
93612a2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
- Accept iterator instead of slice - Move function from trait to module level. Necessary to maintain object safety of Hypervisor trait Signed-off-by: Ludvig Liljenberg <[email protected]>
- Separate Vecs for initial sandbox regions and mmap regions - Replace unmap_regions(n) with unmap_region(region) for precise control - Add Hash derive for MemoryRegion and related types - Enable use of MemoryRegino in HashSet for efficient set operations Signed-off-by: Ludvig Liljenberg <[email protected]>
- Snapshot now contains the memory region that were mapped at the time of snapshot - On restore, unmap regions that were not mapped at time of snapshot. Map regions that were - Add simple test Signed-off-by: Ludvig Liljenberg <[email protected]>
This PR makes sure that when restoring to a snapshot, memory region that were mapped when the snapshot was taken, will be remapped if they have been unmapped since.
Will add a follow up pr for making sure snapshots "belong" to a particular sandbox, and can not be used to restore different sandbox.