qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [patch 3/3] do not allow migration if block copy in progres


From: Marcelo Tosatti
Subject: [Qemu-devel] [patch 3/3] do not allow migration if block copy in progress
Date: Tue, 22 Feb 2011 14:00:07 -0300
User-agent: quilt/0.47-1

Signed-off-by: Marcelo Tosatti <address@hidden>

Index: qemu/migration.c
===================================================================
--- qemu.orig/migration.c
+++ qemu/migration.c
@@ -19,6 +19,7 @@
 #include "block.h"
 #include "qemu_socket.h"
 #include "block-migration.h"
+#include "block-copy.h"
 #include "qemu-objects.h"
 
 //#define DEBUG_MIGRATION
@@ -95,6 +96,11 @@ int do_migrate(Monitor *mon, const QDict
         return -1;
     }
 
+    if (block_copy_active()) {
+        monitor_printf(mon, "block copy in progress\n");
+        return -1;
+    }
+
     if (strstart(uri, "tcp:", &p)) {
         s = tcp_start_outgoing_migration(mon, p, max_throttle, detach,
                                          blk, inc);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]