]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: properly quit migration with abort_on_error
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 24 Apr 2014 14:28:36 +0000 (16:28 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 29 Apr 2014 08:40:44 +0000 (10:40 +0200)
commit837154a151ce056caba73e60c641a705136fb965
treef5ddd4e668d49faa3257e7dd7d26d2b5fb60dd47
parentf6ec6af8a6314c73165b751f55f3e1e4bf5229f5
qemu: properly quit migration with abort_on_error

When EIO comes to qemu while it's replying to
qemuMigrationUpdateJobStatus(), qemu blocks, the migration of RAM can
complete in the meantime, and when qemu unblocks, it sends us
BLOCK_IO_ERROR plus migrations "status": "complete".  Even though we
act upon the BLOCK_IO_ERROR by setting the proper state of the domain,
the call still waits for the proper reply on monitor for query_migrate
and after it gets it, it checks that migration is completed and the
migration is finished.  This is what abort_on_error flag was meant for
(we can migrate with these errors, but this flag must inhibit such
behaviour).  Changing the order of the steps guarantees the flag works
properly.

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

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_migration.c