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