Commit a9fe910
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 0296646 commit a9fe910
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 | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | 124 | | |
127 | 125 | | |
128 | 126 | | |
| |||
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
184 | | - | |
185 | 182 | | |
186 | 183 | | |
187 | 184 | | |
188 | 185 | | |
189 | | - | |
190 | 186 | | |
191 | | - | |
192 | | - | |
193 | 187 | | |
194 | 188 | | |
195 | 189 | | |
| |||
564 | 558 | | |
565 | 559 | | |
566 | 560 | | |
567 | | - | |
568 | 561 | | |
569 | 562 | | |
570 | 563 | | |
571 | 564 | | |
572 | | - | |
573 | 565 | | |
574 | 566 | | |
575 | 567 | | |
| |||
594 | 586 | | |
595 | 587 | | |
596 | 588 | | |
597 | | - | |
598 | 589 | | |
599 | 590 | | |
600 | 591 | | |
601 | 592 | | |
602 | | - | |
603 | 593 | | |
604 | 594 | | |
605 | 595 | | |
| |||
0 commit comments