]> xenbits.xensource.com Git - libvirt.git/commit
qemu: introduce QEMU_DOMAIN_JOB_STATUS_POSTCOPY
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Fri, 1 Sep 2017 06:49:21 +0000 (09:49 +0300)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 7 Sep 2017 07:41:45 +0000 (09:41 +0200)
commit09f57f9aaca6d2703567d5cda45d47fc06131ae0
tree2fdd149715963844c67ee688d31c2a1c4c5671ad
parent751a1c7f0ade5c9e5ea858bbaf97e39950f821e6
qemu: introduce QEMU_DOMAIN_JOB_STATUS_POSTCOPY

Let's introduce QEMU_DOMAIN_JOB_STATUS_POSTCOPY state for job.current->status
instead of checking job.current->stats.status. The latter can be changed
when fetching migration statistics. Moving state function from the variable
and leave only store function seems more managable.

This patch removes all state checking usage of stats except for
qemuDomainGetJobStatsInternal. This place will be handled separately.

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