From: zhanghailiang Date: Mon, 24 Feb 2020 06:54:12 +0000 (+0800) Subject: migration: recognize COLO as part of activating process X-Git-Tag: v5.0.0-rc0~36^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19dd408a479cae3027ae9ff9ef3f509ad3e681e5;p=thirdparty%2Fqemu.git migration: recognize COLO as part of activating process 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 Message-Id: <20200224065414.36524-7-zhang.zhanghailiang@huawei.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- diff --git a/migration/migration.c b/migration/migration.c index 59da5d06255..c1d88ace7f8 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -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: