From d3bb1e4367566193449e4cb58ab2a46013409e19 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 24 Jul 2008 07:09:45 +0000 Subject: [PATCH] =?UTF-8?q?*=20src/qemu=5Fdriver.c:=20patch=20from=20Guido?= =?UTF-8?q?=20G=C3=BCnther=20checking=20for=20=20=20unsupported=20migrate?= =?UTF-8?q?=20command=20Daniel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeLog | 5 +++++ src/qemu_driver.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index d4fbf64c21..860bc93f06 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Jul 24 09:08:32 CEST 2008 Daniel Veillard + + * src/qemu_driver.c: patch from Guido Günther checking for + unsupported migrate command + Tue Jul 22 19:48:51 CEST 2008 Daniel Veillard * docs/java.html docs/java.html.in: added documentation for the diff --git a/src/qemu_driver.c b/src/qemu_driver.c index 3d0b6c5114..01b4d18eb8 100644 --- a/src/qemu_driver.c +++ b/src/qemu_driver.c @@ -2417,6 +2417,19 @@ static int qemudDomainSave(virDomainPtr dom, return -1; } + DEBUG ("migrate reply: %s", info); + + /* If the command isn't supported then qemu prints: + * unknown command: migrate" */ + if (strstr(info, "unknown command:")) { + qemudReportError (dom->conn, dom, NULL, VIR_ERR_NO_SUPPORT, + "%s", + _("'migrate' not supported by this qemu")); + VIR_FREE(info); + VIR_FREE(command); + return -1; + } + VIR_FREE(info); VIR_FREE(command);