]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Reject qmp_migrate_cancel after postcopy
authorFabiano Rosas <farosas@suse.de>
Thu, 13 Feb 2025 17:59:23 +0000 (14:59 -0300)
committerFabiano Rosas <farosas@suse.de>
Fri, 14 Feb 2025 18:19:05 +0000 (15:19 -0300)
commit646119088f8a1d9925239e70b0a7b426bfb6e58a
treeef4a2aba334fc17ba55035e68ea717a3a9c5c09a
parent2b667a8c0f7ad423c9141b3a487898c50a6ff5e0
migration: Reject qmp_migrate_cancel after postcopy

After postcopy has started, it's not possible to recover the source
machine in case a migration error occurs because the destination has
already been changing the state of the machine. For that same reason,
it doesn't make sense to try to cancel the migration after postcopy
has started. Reject the cancel command during postcopy.

Reviewed-by: Peter Xu <peterx@redhat.com>
Message-ID: <20250213175927.19642-6-farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/migration.c