diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-02 09:59:38 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-23 13:54:56 +0200 |
commit | 342ab8d1e4f8650a22a3a1c9fade31df3fd9c1c1 (patch) | |
tree | 2ce0bccf82132d1e8afa5923492a32a9f7c7d5d3 /migration.c | |
parent | be7059cd7f8998d41f0b44ec13907359d04c63d2 (diff) | |
download | qemu-342ab8d1e4f8650a22a3a1c9fade31df3fd9c1c1.tar.gz qemu-342ab8d1e4f8650a22a3a1c9fade31df3fd9c1c1.tar.bz2 qemu-342ab8d1e4f8650a22a3a1c9fade31df3fd9c1c1.zip |
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>
Diffstat (limited to 'migration.c')
-rw-r--r-- | migration.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration.c b/migration.c index b332dae3a4..efea21983a 100644 --- a/migration.c +++ b/migration.c @@ -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 { |