migration: recognize COLO as part of activating process
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Mon, 24 Feb 2020 06:54:12 +0000 (14:54 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 13 Mar 2020 09:36:30 +0000 (09:36 +0000)
We will migrate parts of dirty pages backgroud lively during the gap time
of two checkpoints, without this modification, it will not work
because ram_save_iterate() will check it before send RAM_SAVE_FLAG_EOS
at the end of it.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Message-Id: <20200224065414.36524-7-zhang.zhanghailiang@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c

index 59da5d06255a9014798ad3f2a510d4aabeae8ff4..c1d88ace7f841874a3d9452c0a31cdbea41abf24 100644 (file)
@@ -854,6 +854,7 @@ bool migration_is_setup_or_active(int state)
     case MIGRATION_STATUS_PRE_SWITCHOVER:
     case MIGRATION_STATUS_DEVICE:
     case MIGRATION_STATUS_WAIT_UNPLUG:
+    case MIGRATION_STATUS_COLO:
         return true;
 
     default: