]> git.proxmox.com Git - qemu.git/commit
migration: centralize call to migrate_fd_error()
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Oct 2012 07:59:38 +0000 (09:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 23 Oct 2012 11:54:56 +0000 (13:54 +0200)
commit342ab8d1e4f8650a22a3a1c9fade31df3fd9c1c1
tree2ce0bccf82132d1e8afa5923492a32a9f7c7d5d3
parentbe7059cd7f8998d41f0b44ec13907359d04c63d2
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>
migration-tcp.c
migration-unix.c
migration.c