migration: fix COLO broken caused by a previous commit
commit0306dae5ac47dfbcc1b166b9e2deb13fc4d5a011
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Mon, 24 Feb 2020 06:54:07 +0000 (24 14:54 +0800)
committerJuan Quintela <quintela@redhat.com>
Fri, 28 Feb 2020 09:13:54 +0000 (28 10:13 +0100)
treed9fc1973d2dd9dd28f73f077d1819989ebae9880
parenta152bd00932a819af0f2ca3199e071e431fa93cb
migration: fix COLO broken caused by a previous commit

This commit "migration: Create migration_is_running()" broke
COLO. Becuase there is a process broken by this commit.

colo_process_checkpoint
 ->colo_do_checkpoint_transaction
   ->migrate_set_block_enabled
     ->qmp_migrate_set_capabilities

It can be fixed by make COLO process as an exception,
Maybe we need a better way to fix it.

Cc: Juan Quintela <quintela@redhat.com>
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c