]> git.proxmox.com Git - mirror_qemu.git/commit
COLO: fix setting checkpoint-delay not working properly
authorzhanghailiang <zhang.zhanghailiang@huawei.com>
Tue, 17 Jan 2017 12:57:42 +0000 (20:57 +0800)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 13 Feb 2017 17:27:13 +0000 (17:27 +0000)
commit479125d53eb8509d69a0548f131028a65fcbd65a
treec3779bd0ff6ac7efd37947c94bd9c33aa718c5f0
parent59046ec29ad4c24391bb9fe1fbdced33557aaa70
COLO: fix setting checkpoint-delay not working properly

If we set checkpoint-delay through command 'migrate-set-parameters',
It will not take effect until we finish last sleep chekpoint-delay,
That's will be offensive espeically when we want to change its value
from an extreme big one to a proper value.

Fix it by using timer to realize checkpoint-delay.

Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Message-Id: <1484657864-21708-2-git-send-email-zhang.zhanghailiang@huawei.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
include/migration/colo.h
include/migration/migration.h
migration/colo.c
migration/migration.c