• J
    qemu: Refactor qemuMigrationUpdateJobStatus · c1a7f199
    Jiri Denemark 提交于
    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: NJiri Denemark <jdenemar@redhat.com>
    c1a7f199
qemu_migration.c 197.4 KB