]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Propagate QEMU errors during incoming migrations
authorJiri Denemark <jdenemar@redhat.com>
Fri, 5 Sep 2014 23:16:20 +0000 (01:16 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 8 Sep 2014 11:33:44 +0000 (13:33 +0200)
commit03890605dc981f46ac72d17e4ac7db0da1b88e97
treeb75f5e9182a551ece106688d21876e0ddb78e3a5
parent2990db96b61d60a487152f9382881a2f56f4fca8
qemu: Propagate QEMU errors during incoming migrations

When QEMU fails during incoming migration after we successfully started
it (i.e., during Perform or Finish phase), we report a rather unhelpful
message

    Unable to read from monitor: Connection reset by peer

We already have a code that takes error messages from QEMU's error
output but we disable it once QEMU successfully starts. This patch
postpones this until the end of Finish phase during incoming migration
so that we can report a much better error message:

    internal error: early end of file from monitor: possible problem:
    Unknown savevm section or instance '0000:00:05.0/virtio-balloon' 0
    load of migration failed

https://bugzilla.redhat.com/show_bug.cgi?id=1090093

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.c
src/qemu/qemu_process.c