]> git.ipfire.org Git - thirdparty/qemu.git/commit
scripts/analyze-migration: Support mapped-ram snapshot format
authorPawel Zmarzly <pzmarzly0@gmail.com>
Thu, 13 Nov 2025 18:17:08 +0000 (13:17 -0500)
committerPeter Xu <peterx@redhat.com>
Tue, 23 Dec 2025 14:24:34 +0000 (09:24 -0500)
commit0002b0db1377808e3c2abcb4f02f3d3aa8ce304a
tree9bd4d58077bace5d33e909a8f3f19e740016f7a1
parente476d36ef74c5abf97f0b861f79c65e869655a41
scripts/analyze-migration: Support mapped-ram snapshot format

The script has not been updated to read mapped-ram snapshots and is currently
crashing when trying to read such a file.

With this commit, it can now read a snapshot created with:

    (qemu) migrate_set_capability x-ignore-shared on
    (qemu) migrate_set_capability mapped-ram on
    (qemu) migrate -d file:vm.state

Signed-off-by: Pawel Zmarzly <pzmarzly0@gmail.com>
Link: https://lore.kernel.org/r/20251126155015.941129-1-pzmarzly0@gmail.com
[peterx: space fixes, introduce parseMappedRamBlob(), add comments, etc.]
Signed-off-by: Peter Xu <peterx@redhat.com>
scripts/analyze-migration.py