[libvirt] [PATCH v2 14/22] qemu: Refactor qemuMigrationUpdateJobStatus

Peter Krempa pkrempa at redhat.com
Wed Jun 10 09:31:17 UTC 2015


On Tue, Jun 02, 2015 at 14:34:19 +0200, Jiri Denemark wrote:
> 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: Jiri Denemark <jdenemar at redhat.com>
> ---
>

ACK,

Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150610/f3b2c23b/attachment-0001.sig>


More information about the libvir-list mailing list