Commit 6ff0ff5
committed
refactor: drop
In praxis, the way we wrote our snapshot files has always been just
writing all regions in-order. This mean that the offset of a region is
simply the sum of the sizes of the preceding regions. The new
`GuestMemoryMmap::create` code already computes the offsets for mapping
the memory file this way, so drop the explicit calculation at snapshot
creation time (as the calculated value isnt used by the restoration
anymore).
Do not bump the snapshot version number, because we already did so since
the last release.
Signed-off-by: Patrick Roy <[email protected]>offset field from GuestMemoryRegionState
1 parent 3ab85d2 commit 6ff0ff5
2 files changed
+5
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
| 607 | + | |
| 608 | + | |
608 | 609 | | |
609 | 610 | | |
610 | 611 | | |
611 | | - | |
| 612 | + | |
612 | 613 | | |
613 | 614 | | |
| 615 | + | |
614 | 616 | | |
615 | 617 | | |
616 | 618 | | |
| |||
790 | 792 | | |
791 | 793 | | |
792 | 794 | | |
793 | | - | |
794 | 795 | | |
795 | 796 | | |
796 | 797 | | |
| |||
799 | 800 | | |
800 | 801 | | |
801 | 802 | | |
802 | | - | |
| 803 | + | |
803 | 804 | | |
804 | 805 | | |
805 | 806 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | 132 | | |
135 | 133 | | |
136 | 134 | | |
| |||
184 | 182 | | |
185 | 183 | | |
186 | 184 | | |
187 | | - | |
188 | 185 | | |
189 | 186 | | |
190 | 187 | | |
191 | 188 | | |
192 | | - | |
193 | 189 | | |
194 | | - | |
195 | | - | |
196 | 190 | | |
197 | 191 | | |
198 | 192 | | |
| |||
567 | 561 | | |
568 | 562 | | |
569 | 563 | | |
570 | | - | |
571 | 564 | | |
572 | 565 | | |
573 | 566 | | |
574 | 567 | | |
575 | | - | |
576 | 568 | | |
577 | 569 | | |
578 | 570 | | |
| |||
597 | 589 | | |
598 | 590 | | |
599 | 591 | | |
600 | | - | |
601 | 592 | | |
602 | 593 | | |
603 | 594 | | |
604 | 595 | | |
605 | | - | |
606 | 596 | | |
607 | 597 | | |
608 | 598 | | |
| |||
0 commit comments