[libvirt] [PATCH v13] support offline migration

Eric Blake eblake at redhat.com
Fri Nov 9 04:50:59 UTC 2012


On 11/08/2012 09:31 PM, li guang wrote:
>>> seem flags was forgotten at qemuDomainMigratePrepare3, so any
>>> preparation for offline migration will be impossible, isn't it?
>>> do you mean I should change MigratePrepare functions to add
>>> flags as a parameter?
>>
>> Huh?  qemuDomainMigratePrepare3 already has a flags argument (arg 8),
>> and it is directly related to the flags argument that was originally
>> passed to virDomainMigrate() in libvirt.c.
>>
> 
> please check qemuMigrationPrepareDirect called in
> qemuDomainMigratePrepare3

qemuMigrationPrepareDirect is not a callback, and not a public API, so
you are free to change its signature and add a flags parameter if that
is necessary to get the information to the right places.  The only
signatures you can't change are in src/libvirt.c and in functions
serving as callbacks registered through signatures in src/driver.h.

-- 
Eric Blake   eblake at 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: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121108/b9d3b495/attachment-0001.sig>


More information about the libvir-list mailing list