Reduce the time of checkpoint for COLO
commitb70cb3b4854dc4d65c89a8f6704c0f1e9d900ac3
authorRao, Lei <lei.rao@intel.com>
Fri, 16 Oct 2020 05:52:01 +0000 (16 13:52 +0800)
committerJason Wang <jasowang@redhat.com>
Wed, 11 Nov 2020 08:52:23 +0000 (11 16:52 +0800)
tree5c7ede1420aab70c64e696d6428a260f41b5be6a
parent33609e95b206788681263b76d6649a556d064e4d
Reduce the time of checkpoint for COLO

we should set ram_bulk_stage to false after ram_state_init,
otherwise the bitmap will be unused in migration_bitmap_find_dirty.
all pages in ram cache will be flushed to the ram of secondary guest
for each checkpoint.

Signed-off-by: Lei Rao <lei.rao@intel.com>
Signed-off-by: Derek Su <dereksu@qnap.com>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Li Zhijian <lizhijian@cn.fujitsu.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
migration/ram.c