[libvirt PATCH 70/80] qemu: Create completed jobData in qemuMigrationSrcComplete

Peter Krempa pkrempa at redhat.com
Thu May 12 15:34:58 UTC 2022


On Tue, May 10, 2022 at 17:21:31 +0200, Jiri Denemark wrote:
> Normally the structure is created once the source reports completed
> migration, but with post-copy migration we can get here even after
> libvirt daemon was restarted. It doesn't make sense to preserve the
> structure in our status XML as we're going to rewrite almost all of it
> while refreshing the stats anyway. So we just create the structure here
> if it doesn't exist to make sure we can properly report statistics of a
> completed migration.
> 
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
>  src/qemu/qemu_migration.c | 30 +++++++++++++++++-------------

Reviewed-by: Peter Krempa <pkrempa at redhat.com>


More information about the libvir-list mailing list