]> git.proxmox.com Git - mirror_qemu.git/commit
tests/qtest: option to suspend during migration
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 3 Jan 2024 20:05:39 +0000 (12:05 -0800)
committerPeter Xu <peterx@redhat.com>
Thu, 4 Jan 2024 01:52:42 +0000 (09:52 +0800)
commit5014478e0dc0e7e542e462fe271a24fd07bd813d
treef12b65f6333391d80f515e3566c3d417d444bce2
parentf0649758be63da16d215344011fc67aa07531542
tests/qtest: option to suspend during migration

Add an option to suspend the src in a-b-bootblock.S, which puts the guest
in S3 state after one round of writing to memory.  The option is enabled by
poking a 1 into the suspend_me word in the boot block prior to starting the
src vm.  Generate symbol offsets in a-b-bootblock.h so that the suspend_me
offset is known.  Generate the bootblock for each test, because suspend_me
may differ for each.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Acked-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/1704312341-66640-11-git-send-email-steven.sistare@oracle.com
Signed-off-by: Peter Xu <peterx@redhat.com>
tests/migration/i386/Makefile
tests/migration/i386/a-b-bootblock.S
tests/migration/i386/a-b-bootblock.h
tests/qtest/migration-test.c