[libvirt] [PATCH v4 02/12] qemu: Convert jobInfo stats into a union

Jiri Denemark jdenemar at redhat.com
Fri Feb 2 11:11:39 UTC 2018


On Thu, Feb 01, 2018 at 18:24:33 -0500, John Ferlan wrote:
> 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. While doing this, also change the name of the
> field from @stats to @migStats to make it easier to find.
> 
> 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 @migStats 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
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>

You were too fast with v4. See
https://www.redhat.com/archives/libvir-list/2018-February/msg00092.html

Jirka




More information about the libvir-list mailing list