]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Refactor qemuMigrationUpdateJobStatus
authorJiri Denemark <jdenemar@redhat.com>
Tue, 26 May 2015 12:37:30 +0000 (14:37 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 19 Jun 2015 13:15:12 +0000 (15:15 +0200)
commitc1a7f199e82e201e4f6f9401f65b9edc80f98349
tree7bd453d0156188c41b8f5e858c4930c2aeb528a4
parent30d94bcdec942f844a38a640d3d5adf3b42ff635
qemu: Refactor qemuMigrationUpdateJobStatus

Once we start waiting for migration events instead of polling
query-migrate, priv->job.current will not be regularly updated anymore
because we will get the current status directly from the events. Thus
virDomainGetJob{Info,Stats} will have to query QEMU, but they can't just
blindly update priv->job.current structure. This patch introduces
qemuMigrationFetchJobStatus which just fills in a caller supplied
structure and makes qemuMigrationUpdateJobStatus a tiny wrapper around
it.

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