On 04/18/2012 11:45 AM, Anthony Liguori wrote:
>>
>>> I thought I had previously asked for a monitor command to negotiate
>>> extensions for migration?
>>
>> I think it is in another patch.
> 
> So I think we also need:
> 
> { 'command': 'set-migration-capabilities',
>     'data': { 'enable': ['MigrationCapability'] }
> 
> Then a management tool just needs to:
> 
>     caps_from_src = query-migration-capabilities(src_qmp_session)
>     caps_from_dst = query-migration-capabilities(dst_qmp_session)
> 
>     common_caps = intersection(caps_from_src, caps_from_dst)
> 
>     set-migration-capabilities(src_qmp_session, common_caps);
>     set-migration-capabilities(dst_qmp_session, common_caps);

Indeed, this is the most extensible solution.  Libvirt only needs to
learn how to drive feature negotiation once, and all future additions of
new migration features will automatically fit into this framework,
without having to modify libvirt further.

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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to