]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Fix parsing of s390 stream
authorFabiano Rosas <farosas@suse.de>
Thu, 9 Jan 2025 18:52:45 +0000 (15:52 -0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 18 Jan 2025 10:42:40 +0000 (13:42 +0300)
commit1e223152b64a57863a5480d8a7c2c832146022f2
tree522db84cdf0222304ba4e85969f61d6cb9ac159b
parentaacde7dfb7acf289a2a521e3754ab3d29806823f
migration: Fix parsing of s390 stream

The parsing for the S390StorageAttributes section is currently leaving
an unconsumed token that is later interpreted by the generic code as
QEMU_VM_EOF, cutting the parsing short.

The migration will issue a STATTR_FLAG_DONE between iterations, which
the script consumes correctly, but there's a final STATTR_FLAG_EOS at
.save_complete that the script is ignoring. Since the EOS flag is a
u64 0x1ULL and the stream is big endian, on little endian hosts a byte
read from it will be 0x0, the same as QEMU_VM_EOF.

Fixes: 81c2c9dd5d ("tests/qtest/migration-test: Fix analyze-migration.py for s390x")
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20250109185249.23952-4-farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
(cherry picked from commit 69d1f784569fdb950f2923c3b6d00d7c1b71acc1)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
scripts/analyze-migration.py