Cédric Le Goater <c...@redhat.com> writes: > close_return_path_on_source() retrieves the migration error from the > the QEMUFile '->to_dst_file' to know if a shutdown is required to exit > the return-path thread. However, in migrate_fd_cleanup(), '->to_dst_file' > is cleaned up before calling close_return_path_on_source() and the > shutdown is never performed, leaving the source and destination > waiting for an event to occur.
Isn't this just missing qemu_file_shutdown() at migrate_fd_cleanup? if (s->to_dst_file) { ... migration_ioc_unregister_yank_from_file(tmp); + qemu_file_shutdown(tmp); qemu_fclose(tmp); }