Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid needless clone in build_microvm_from_snapshot
There is no need to clone the GuestMemoryMmap here, as create_vmm_and_vcpus returns it again (as part of the Vmm object), and since later code in build_microvm_from_snapshot doesn't need to take ownership of the GuestMemoryMmap, we can just use references to this stored object, avoiding the clone. Signed-off-by: Patrick Roy <[email protected]>
- Loading branch information