Commit 5451d8f
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).
Bumps the snapshot version number.
Signed-off-by: Patrick Roy <[email protected]>offset field from GuestMemoryRegionState
1 parent 4d32196 commit 5451d8f
2 files changed
+6
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
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 | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | 131 | | |
134 | 132 | | |
135 | 133 | | |
| |||
188 | 186 | | |
189 | 187 | | |
190 | 188 | | |
191 | | - | |
192 | 189 | | |
193 | 190 | | |
194 | 191 | | |
195 | 192 | | |
196 | | - | |
197 | 193 | | |
198 | | - | |
199 | | - | |
200 | 194 | | |
201 | 195 | | |
202 | 196 | | |
| |||
571 | 565 | | |
572 | 566 | | |
573 | 567 | | |
574 | | - | |
575 | 568 | | |
576 | 569 | | |
577 | 570 | | |
578 | 571 | | |
579 | | - | |
580 | 572 | | |
581 | 573 | | |
582 | 574 | | |
| |||
601 | 593 | | |
602 | 594 | | |
603 | 595 | | |
604 | | - | |
605 | 596 | | |
606 | 597 | | |
607 | 598 | | |
608 | 599 | | |
609 | | - | |
610 | 600 | | |
611 | 601 | | |
612 | 602 | | |
| |||
0 commit comments