[PATCH 17/21] qemu: migration: dest: qemuMigrationOpenTunnel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Introduce an auxiliary handler domainMigrateOpenTunnel for QEMU.

Signed-off-by: Pavel Boldin <pboldin@xxxxxxxxxxxx>
---
 src/qemu/qemu_migration.c | 19 +++++++++++++++++++
 src/qemu/qemu_migration.h |  6 ++++++
 2 files changed, 25 insertions(+)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index 303cd47..4708387 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -3605,6 +3605,25 @@ qemuMigrationPrepareTunnel(virQEMUDriverPtr driver,
 }
 
 
+int
+qemuMigrationOpenTunnel(virQEMUDriverPtr driver,
+                        virConnectPtr dconn,
+                        virStreamPtr st,
+                        virDomainDefPtr def,
+                        unsigned long flags)
+{
+    VIR_DEBUG("driver=%p, dconn=%p, st=%p, def=%p, flags=%lx",
+              driver, dconn, st, def, flags);
+
+    if (st == NULL) {
+        virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+                       _("opening a tunnel requested but NULL stream passed"));
+        return -1;
+    }
+
+    return 0;
+}
+
 static virURIPtr
 qemuMigrationParseURI(const char *uri, bool *wellFormed)
 {
diff --git a/src/qemu/qemu_migration.h b/src/qemu/qemu_migration.h
index 8175f4b..f91791e 100644
--- a/src/qemu/qemu_migration.h
+++ b/src/qemu/qemu_migration.h
@@ -121,6 +121,12 @@ int qemuMigrationPrepareTunnel(virQEMUDriverPtr driver,
                                const char *origname,
                                unsigned long flags);
 
+int qemuMigrationOpenTunnel(virQEMUDriverPtr driver,
+                            virConnectPtr dconn,
+                            virStreamPtr st,
+                            virDomainDefPtr def,
+                            unsigned long flags);
+
 int qemuMigrationPrepareDirect(virQEMUDriverPtr driver,
                                virConnectPtr dconn,
                                const char *cookiein,
-- 
1.9.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]