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

Re: [libvirt] [PATCH] qemu: Build command line for incoming tunneled migration



This patch is race with:
http://www.redhat.com/archives/libvir-list/2011-January/msg00681.html

, if patch above works, but it was not pushed yet, will it be
pushed?

Regards
Osier

于 2011年01月30日 15:58, Osier Yang 写道:
Command line building for imcoming tunneled migration is missed,
as a result, all the tunneled migration will fail with "unknown
migration protocol".

* src/qemu/qemu_command.c
---
  src/qemu/qemu_command.c |    8 ++++++++
  1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
index a0f86a3..8f681fd 100644
--- a/src/qemu/qemu_command.c
+++ b/src/qemu/qemu_command.c
@@ -4067,6 +4067,14 @@ qemuBuildCommandLine(virConnectPtr conn,
              }
              virCommandAddArg(cmd, migrateFrom);
              virCommandPreserveFD(cmd, migrateFd);
+        } else if (STRPREFIX(migrateFrom, "unix")) {
+            if (!(qemuCmdFlags&  QEMUD_CMD_FLAG_MIGRATE_QEMU_UNIX)) {
+                qemuReportError(VIR_ERR_CONFIG_UNSUPPORTED,
+                                "%s", _("UNIX migration is not supported "
+                                        "with this QEMU binary"));
+                goto error;
+            }
+            virCommandAddArg(cmd, migrateFrom);
          } else {
              qemuReportError(VIR_ERR_INTERNAL_ERROR,
                              "%s", _("unknown migration protocol"));
--
1.7.3.2

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


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