]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: Properly report failed migration
authorJiri Denemark <jdenemar@redhat.com>
Wed, 13 May 2015 16:08:50 +0000 (18:08 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 19 Jun 2015 13:13:16 +0000 (15:13 +0200)
commit39564891f88f13f4ab78d16588fc80ba8a563690
treedf80f080720fb739ea20740c0ef7ed22d3173844
parente2cc0e667e8aba163f29a0b480095f78fce3ea11
qemu: Properly report failed migration

Because we are polling we may detect some errors after we asked QEMU for
migration status even though they occurred before. If this happens and
QEMU reports migration completed successfully, we would happily report
the migration succeeded even though we should have cancelled it because
of the other error.

In practise it is not a big issue now but it will become a much bigger
issue once the check for storage migration status is moved inside the
loop in qemuMigrationWaitForCompletion.

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