qemu: Properly report failed migration
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 <62bdf77dc47919a4d59a91822129d14633cfca81@redhat.com>

agx/libvirt,zippy2/libvirt,jfehlig/libvirt,agx/libvirt,olafhering/libvirt,jfehlig/libvirt,taget/libvirt,zippy2/libvirt,andreabolognani/libvirt,taget/libvirt,crobinso/libvirt,eskultety/libvirt,libvirt/libvirt,andreabolognani/libvirt,fabianfreyer/libvirt,eskultety/libvirt,crobinso/libvirt,jardasgit/libvirt,datto/libvirt,rlaager/libvirt,VenkatDatta/libvirt,nertpinx/libvirt,datto/libvirt,zippy2/libvirt,agx/libvirt,agx/libvirt,VenkatDatta/libvirt,crobinso/libvirt,datto/libvirt,andreabolognani/libvirt,eskultety/libvirt,fabianfreyer/libvirt,taget/libvirt,andreabolognani/libvirt,nertpinx/libvirt,rlaager/libvirt,taget/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,rlaager/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,jardasgit/libvirt,olafhering/libvirt,jardasgit/libvirt,eskultety/libvirt,libvirt/libvirt,olafhering/libvirt,datto/libvirt,olafhering/libvirt,jardasgit/libvirt,nertpinx/libvirt,rlaager/libvirt,datto/libvirt,jfehlig/libvirt,nertpinx/libvirt,libvirt/libvirt,rlaager/libvirt,agx/libvirt,taget/libvirt,andreabolognani/libvirt,crobinso/libvirt,VenkatDatta/libvirt,libvirt/libvirt,jardasgit/libvirt,zippy2/libvirt,fabianfreyer/libvirt,eskultety/libvirt