[libvirt-users] Async migration: possible?

Eric Blake eblake at redhat.com
Tue Apr 1 18:43:24 UTC 2014

On 04/01/2014 12:38 PM, Pasquale Dir wrote:
> I am seeing that migrate() function is blocking, isn't there a non blocking
> function with a callback associated to it, so to report events like end
> migration, migration progress (job domain info informations) and so on?

Although the migrate command is blocking, there is nothing stopping you
from opening up a second connection to the same URI and tracking the
status of the migration through that second connection.  In fact, 'virsh
migrate' implements a --timeout option precisely by using two threads,
one polling the status in relation to the timeout, while the other
blocks in the migrate call.

Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20140401/6401c95e/attachment.sig>

More information about the libvirt-users mailing list