mirror of
https://github.com/qemu/qemu.git
synced 2026-11-06 11:54:52 +00:00
A device may take over a resource from the source in post_load(), e.g. vhost-vsock acquires the device ownership on a CPR target. If the incoming migration fails afterwards, there's currently no way for the device to give that resource back before the failure is published, i.e. before the source is told about it over the return path and resumes, or the management sees the MIGRATION event on the target and resumes the source, or the target exits. Add a migration event for that, sent to the migration notifiers from the failure path of process_incoming_migration_co() before the failure is published. Reviewed-by: Peter Xu <peterx@redhat.com> Signed-off-by: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Akihiko Odaki <odaki@rsg.ci.i.u-tokyo.ac.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20261012-up-vsock-vhost-v5-v16-16-36c38bd15ffc@virtuozzo.com>