]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Extend v3 migration protocol to allow app supplied XML for target
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 18 May 2011 09:26:30 +0000 (05:26 -0400)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 25 May 2011 15:47:47 +0000 (11:47 -0400)
commit7ad4b6b9cc132e25a8ed6f9f04932069f4425a32
treee331af753c24f4317eebe58708ca1f3976803856
parentdea64db1d20fd05502989008eb2324c24eacb5b7
Extend v3 migration protocol to allow app supplied XML for target

This extends the v3 migration protocol such that the
virDomainMigrateBegin3 and virDomainMigratePerform3
methods accept an application supplied XML config for
the target VM.

If the 'xmlin' parameter is NULL, then Begin3 uses the
current guest XML as normal. A driver implementing the
Begin3 method should either reject all non-NULL 'xmlin'
parameters, or strictly validate that the app supplied
XML does not change guest ABI.

The Perform3 method also needed the xmlin parameter to
cope with the Peer2Peer migration sequence.

NB it is not yet possible to use this capability since
neither of the public virDomainMigrate/virDomainMigrateToURI
methods have a way to pass in XML.

* daemon/remote.c, src/remote/remote_driver.c,
  src/remote/remote_protocol.x, src/remote_protocol-structs:
  Add 'remote_string xmlin' parameter to begin3/perform3
  RPC messages
* src/libvirt.c, src/driver.h, src/libvirt_internal.h: Add
  'const char *xmlin' parameter to Begin3/Perform3 methods
* src/qemu/qemu_driver.c, src/qemu/qemu_migration.c,
  src/qemu/qemu_migration.h: Pass xmlin parameter around
  migration methods
daemon/remote.c
src/driver.h
src/libvirt.c
src/libvirt_internal.h
src/qemu/qemu_driver.c
src/qemu/qemu_migration.c
src/qemu/qemu_migration.h
src/remote/remote_driver.c
src/remote/remote_protocol.x
src/remote_protocol-structs