diff options
author | zhanghailiang <zhang.zhanghailiang@huawei.com> | 2020-02-24 14:54:12 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-03-13 09:36:30 +0000 |
commit | 19dd408a479cae3027ae9ff9ef3f509ad3e681e5 (patch) | |
tree | 1a2f200018dc1a9cf070f27e5071252f386a375c /migration | |
parent | 8af66371ed8e86c7caea9b814dcee23e8ba08f79 (diff) | |
download | qemu-19dd408a479cae3027ae9ff9ef3f509ad3e681e5.zip qemu-19dd408a479cae3027ae9ff9ef3f509ad3e681e5.tar.gz qemu-19dd408a479cae3027ae9ff9ef3f509ad3e681e5.tar.bz2 |
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 <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>
Diffstat (limited to 'migration')
-rw-r--r-- | migration/migration.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/migration/migration.c b/migration/migration.c index 59da5d0..c1d88ac 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: |