]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Make updating stats in qemuMigrationCheckJobStatus optional
authorJiri Denemark <jdenemar@redhat.com>
Mon, 5 Oct 2015 12:32:58 +0000 (14:32 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 6 Oct 2015 14:15:21 +0000 (16:15 +0200)
commit829c62b7a5268a639116bc1cea51d1c6598f4bf4
tree7585f293302a3803204086615405e5a27e2acd2e
parent2af983f4c42e8f0af95fe1eb464e14ba52bb1145
qemu: Make updating stats in qemuMigrationCheckJobStatus optional

With new QEMU which supports migration events,
qemuMigrationCheckJobStatus needs to explicitly query QEMU for migration
statistics once migration is completed to make sure the caller sees
up-to-date statistics with both old and new QEMU. However, some callers
are not interested in the statistics at all and once we start waiting
for a completed migration on the destination host too, checking the
statistics would even fail. Let's push the decision whether to update
the statistics or not to the caller.

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