COLO: Optimize memory back-up process
commit0393031a16735835a441b6d6e0495a1bd14adb90
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Mon, 24 Feb 2020 06:54:10 +0000 (24 14:54 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Fri, 13 Mar 2020 09:36:30 +0000 (13 09:36 +0000)
treef1d07c287e6283f3b2dd6e06684746a7ee655db9
parentdc14a470763c96fd9d360e1028ce38e8c3613a77
COLO: Optimize memory back-up process

This patch will reduce the downtime of VM for the initial process,
Previously, we copied all these memory in preparing stage of COLO
while we need to stop VM, which is a time-consuming process.
Here we optimize it by a trick, back-up every page while in migration
process while COLO is enabled, though it affects the speed of the
migration, but it obviously reduce the downtime of back-up all SVM'S
memory in COLO preparing stage.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Message-Id: <20200224065414.36524-5-zhang.zhanghailiang@huawei.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
  minor typo fixes
migration/colo.c
migration/ram.c
migration/ram.h