Signed-off-by: Jim Paris <[EMAIL PROTECTED]>
---

Having two migrations run simultaneously was causing my crashes.
The command was sent twice because of a bug in the readline routines,
but adding a check here as well seems like a good idea.

 qemu/migration.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/qemu/migration.c b/qemu/migration.c
index 4d7aa01..96b0c2f 100644
--- a/qemu/migration.c
+++ b/qemu/migration.c
@@ -973,6 +973,12 @@ int migrate_incoming(const char *device)
 void do_migrate(int detach, const char *uri)
 {
     const char *ptr;
+    MigrationState *s = current_migration;
+
+    if (s) {
+       term_printf("Migration already active\n");
+       return;
+    }
 
     status = MIG_STAT_INVALID_PARAMS;
     if (strstart(uri, "exec:", &ptr)) {
-- 
1.5.3.GIT


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to