]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Convert jobInfo stats into a union
authorJohn Ferlan <jferlan@redhat.com>
Fri, 26 Jan 2018 17:30:50 +0000 (12:30 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 6 Feb 2018 12:36:53 +0000 (07:36 -0500)
commit93412bb827b445704417277470773b3c5b467a1f
tree5eebc004868fa49f5ad1a5d386df535a5e965a3f
parentcb775a51a0eb953635c8e35689b8b1f3cce0d381
qemu: Convert jobInfo stats into a union

Convert the stats field in _qemuDomainJobInfo to be a union. This
will allow for the collection of various different types of stats
in the same field.

When starting the async job that will end up being used for stats,
set the @statsType value appropriately. The @mirrorStats are
special and are used with stats.mig in order to generate the
returned job stats for a migration.

Using the NONE should avoid the possibility that some random
async job would try to return stats for migration even though
a migration is not in progress.

For now a migration and a save job will use the same statsType

Reviewed-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_migration_cookie.c
src/qemu/qemu_process.c