]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Check QEMU error on failed migration
authorJiri Denemark <jdenemar@redhat.com>
Thu, 12 Oct 2017 13:19:19 +0000 (15:19 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 17 Oct 2017 08:41:45 +0000 (10:41 +0200)
commite1ca8ecb46c1504a8552338aa65ac95cf4a87e08
tree9c4663d47fcf85374fe697d3058a6a49520a631c
parentbefe20184e6fda9a4362307d1ad6fd18fa276529
qemu: Check QEMU error on failed migration

When migration fails, QEMU may provide a description of the error in
the reply to query-migrate QMP command. We can fetch this error and use
it instead of the generic "unexpectedly failed" message.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration.h
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h
tests/qemumonitorjsontest.c