[PATCH v1 3/4] qemu: support incoming "fd" uri

Tejus GK posted 4 patches 2 weeks, 4 days ago
[PATCH v1 3/4] qemu: support incoming "fd" uri
Posted by Tejus GK 2 weeks, 4 days ago
If "fd" is the choosen protocol for the live migration, the destination
VM should start up with -incoming as "fd", this patch adds support for
the same.

Signed-off-by: Tejus GK <tejus.gk@nutanix.com>
---
 src/qemu/qemu_migration.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index 6dd022163b..0cd417c15d 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -2427,7 +2427,8 @@ qemuMigrationDstGetURI(const char *migrateFrom,
 {
     char *uri = NULL;
 
-    if (STREQ(migrateFrom, "stdio"))
+    if (STREQ(migrateFrom, "stdio") ||
+        STREQ(migrateFrom, "fd"))
         uri = g_strdup_printf("fd:%d", migrateFd);
     else
         uri = g_strdup(migrateFrom);
-- 
2.43.7