mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
migration: centralize call to migrate_fd_error()
The call to migrate_fd_error() was missing for non-socket backends, so centralize it in qmp_migrate(). Before: (qemu) migrate fd:ffff migrate: An undefined error has occurred (qemu) info migrate (qemu) After: (qemu) migrate fd:ffff migrate: An undefined error has occurred (qemu) info migrate capabilities: xbzrle: off Migration status: failed total time: 0 milliseconds (The awful error message will be fixed later in the series). Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
be7059cd7f
commit
342ab8d1e4
3 changed files with 1 additions and 2 deletions
|
@ -524,6 +524,7 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk,
|
|||
}
|
||||
|
||||
if (ret < 0 || local_err) {
|
||||
migrate_fd_error(s);
|
||||
if (!local_err) {
|
||||
error_set_errno(errp, -ret, QERR_UNDEFINED_ERROR);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue