[libvirt] [PATCH 17/21] Extensible migration APIs
Daniel P. Berrange
berrange at redhat.com
Mon Jun 24 15:02:11 UTC 2013
On Tue, Jun 18, 2013 at 04:05:59PM +0200, Jiri Denemark wrote:
> This patch introduces two new APIs virDomainMigrate3 and
> virDomainMigrateToURI3 that may be used in place of their older
> variants. These new APIs take optional migration parameters (such as
> bandwidth, domain XML, ...) in an array of virTypedParameters, which
> makes adding new parameters easier as there's no need to introduce new
> APIs whenever a new migration parameter needs to be added. Both APIs are
> backward compatible and will automatically use older migration calls in
> case the new calls are not supported as long as the typed parameters
> array does not contain any parameter which was not supported by the
> older calls.
> ---
> include/libvirt/libvirt.h.in | 10 ++
> python/generator.py | 2 +
> src/libvirt.c | 376 +++++++++++++++++++++++++++++++++++++++++++
> src/libvirt_public.syms | 6 +
> 4 files changed, 394 insertions(+)
ACK,
Lets hope this really is the last variant we need to add
for migration :-)
Arguably we could merge the Migrate3 and MigrateToURI3 variants
into one, but that'd complicate life more than is desired, so
leave it as is with them split.
Daniel
--
|: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org -o- http://virt-manager.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list