migration: Fix hang after error in destination setup phase
authorFabiano Rosas <farosas@suse.de>
Thu, 13 Feb 2025 17:59:22 +0000 (14:59 -0300)
committerFabiano Rosas <farosas@suse.de>
Fri, 14 Feb 2025 18:19:05 +0000 (15:19 -0300)
commit2b667a8c0f7ad423c9141b3a487898c50a6ff5e0
treef5ed104882f1df129a3a06b24bf82707077f181a
parent4bbadfc55e6ec608df75911b4360e6e995daa28c
migration: Fix hang after error in destination setup phase

If the destination side fails at migration_ioc_process_incoming()
before starting the coroutine, it will report the error but QEMU will
not exit.

Set the migration state to FAILED and exit the process if
exit-on-error allows.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2633
Reported-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-ID: <20250213175927.19642-5-farosas@suse.de>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
migration/channel.c