Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com> 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);
- [Qemu-devel] [patch 0/3] live block copy (v2) Marcelo Tosatti
- [Qemu-devel] [patch 3/3] do not allow migration if bl... Marcelo Tosatti
- [Qemu-devel] [patch 1/3] add migration_active functio... Marcelo Tosatti
- [Qemu-devel] [patch 2/3] Add support for live block c... Marcelo Tosatti
- [Qemu-devel] Re: [patch 2/3] Add support for live... Anthony Liguori
- [Qemu-devel] Re: [patch 2/3] Add support for ... Marcelo Tosatti
- [Qemu-devel] Re: [patch 2/3] Add support ... Anthony Liguori
- [Qemu-devel] Re: [patch 2/3] Add sup... Marcelo Tosatti
- [Qemu-devel] Re: [patch 2/3] Add... Anthony Liguori
- Re: [Qemu-devel] Re: [patch ... Avi Kivity
- Re: [Qemu-devel] Re: [patch ... Anthony Liguori
- Re: [Qemu-devel] Re: [patch ... Avi Kivity