]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: document dxml argument to migrate2
authorEric Blake <eblake@redhat.com>
Thu, 14 Jul 2011 17:09:03 +0000 (11:09 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 15 Jul 2011 23:40:24 +0000 (17:40 -0600)
Commit 135554166 introduced a nice feature without documenting it.

* src/libvirt.c (virDomainMigrate2): Add paragraph.

src/libvirt.c

index 7c68bd8240323a4f236598bd11dc73765ea0573f..001c38dd75679b38274bdbd3d4d71271de7bcc40 100644 (file)
@@ -4293,6 +4293,15 @@ error:
  * different processors even with the same architecture, or between
  * different types of hypervisor.
  *
+ * If the hypervisor supports it, @dxml can be used to alter
+ * host-specific portions of the domain XML that will be used on
+ * the destination.  For example, it is possible to alter the
+ * backing filename that is associated with a disk device, in order
+ * to account for naming differences between source and destination
+ * in accessing the underlying storage.  The migration will fail
+ * if @dxml would cause any guest-visible changes.  Pass NULL
+ * if no changes are needed to the XML between source and destination.
+ *
  * Returns the new domain object if the migration was successful,
  *   or NULL in case of error.  Note that the new domain object
  *   exists in the scope of the destination connection (dconn).