Commit 3fb06e9
committed
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]>1 parent 9e011ba commit 3fb06e9
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
475 | | - | |
| 475 | + | |
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
535 | | - | |
| 535 | + | |
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| |||
0 commit comments