COLO do not support qdev hotplug migration, disable it. Signed-off-by: Yang Hongyang <yanghy@xxxxxxxxxxxxxx> --- migration-colo.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/migration-colo.c b/migration-colo.c index b90d9b6..f295e56 100644 --- a/migration-colo.c +++ b/migration-colo.c @@ -12,6 +12,7 @@ #include "qemu/thread.h" #include "block/coroutine.h" #include "qemu/error-report.h" +#include "hw/qdev-core.h" #include "migration/migration-colo.h" static QEMUBH *colo_bh; @@ -130,6 +131,9 @@ static const QEMUFileOps colo_read_ops = { static void *colo_thread(void *opaque) { MigrationState *s = opaque; + int dev_hotplug = qdev_hotplug; + + qdev_hotplug = 0; colo_buffer_init(); @@ -145,6 +149,8 @@ static void *colo_thread(void *opaque) qemu_bh_schedule(s->cleanup_bh); qemu_mutex_unlock_iothread(); + qdev_hotplug = dev_hotplug; + return NULL; } @@ -179,10 +185,14 @@ static Coroutine *colo; void colo_process_incoming_checkpoints(QEMUFile *f) { + int dev_hotplug = qdev_hotplug; + if (!restore_use_colo()) { return; } + qdev_hotplug = 0; + colo = qemu_coroutine_self(); assert(colo != NULL); @@ -194,5 +204,7 @@ void colo_process_incoming_checkpoints(QEMUFile *f) colo = NULL; restore_exit_colo(); + qdev_hotplug = dev_hotplug; + return; } -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html