summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMartin Kletzander <mkletzan@redhat.com>2020-08-24 15:42:31 +0200
committerMartin Kletzander <mkletzan@redhat.com>2020-09-04 10:20:49 +0200
commit49186372dbe800b78ff3c16ac715b06a287e9190 (patch)
tree474c13960ba0d9cb7138e704891ee090bf2f81bb /include
parentc5872b9a1b28c18c71f607494a636ad1a3bc035e (diff)
downloadlibvirt-49186372dbe800b78ff3c16ac715b06a287e9190.tar.gz
qemu: Allow NBD migration over UNIX socket
Adds new typed param for migration and uses this as a UNIX socket path that should be used for the NBD part of migration. And also adds virsh support. Partially resolves: https://bugzilla.redhat.com/1638889 Signed-off-by: Martin Kletzander <mkletzan@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvirt/libvirt-domain.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
index 8b9d9c110c..77f9116675 100644
--- a/include/libvirt/libvirt-domain.h
+++ b/include/libvirt/libvirt-domain.h
@@ -982,6 +982,19 @@ typedef enum {
# define VIR_MIGRATE_PARAM_DISKS_PORT "disks_port"
/**
+ * VIR_MIGRATE_PARAM_DISKS_URI:
+ *
+ * virDomainMigrate* params field: URI used for incoming disks migration. Type
+ * is VIR_TYPED_PARAM_STRING. Only schemes "tcp" and "unix" are accepted. TCP
+ * URI can currently only provide a server and port to listen on (and connect
+ * to), UNIX URI may only provide a path component for a UNIX socket. This is
+ * currently only supported by the QEMU driver. UNIX URI is only usable if the
+ * management application makes sure that socket created with this name on the
+ * destination will be reachable from the source under the same exact path.
+ */
+# define VIR_MIGRATE_PARAM_DISKS_URI "disks_uri"
+
+/**
* VIR_MIGRATE_PARAM_COMPRESSION:
*
* virDomainMigrate* params multiple field: name of the method used to