Commit b1622ac
tests: memory.rs: Extend test_dump_dirty() with trailing clean case
The test_dump_dirty() test currently checks the file contents of a
differential snapshot where the last page of both memory regions is
dirty.
Extend this test to also test the case where the last page of both
regions is clean. Additionally, check that the logical size of the
resulting file is different than the physical size due to the holes
representing clean pages. Finally, make sure that if the KVM dirty
bitmap is larger than the region size, the extra bits are ignored.
Signed-off-by: Ilias Stamatis <ilstam@amazon.com>1 parent 524c6d8 commit b1622ac
1 file changed
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
867 | 867 | | |
868 | 868 | | |
869 | 869 | | |
| 870 | + | |
870 | 871 | | |
871 | 872 | | |
872 | 873 | | |
| |||
1248 | 1249 | | |
1249 | 1250 | | |
1250 | 1251 | | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
1251 | 1296 | | |
1252 | 1297 | | |
1253 | 1298 | | |
| |||
0 commit comments