diff options
author | zhanghailiang <zhang.zhanghailiang@huawei.com> | 2017-01-17 20:57:42 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2017-02-13 17:27:13 +0000 |
commit | 479125d53eb8509d69a0548f131028a65fcbd65a (patch) | |
tree | c3779bd0ff6ac7efd37947c94bd9c33aa718c5f0 /include/migration/colo.h | |
parent | 59046ec29ad4c24391bb9fe1fbdced33557aaa70 (diff) | |
download | qemu-479125d53eb8509d69a0548f131028a65fcbd65a.zip |
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>
Diffstat (limited to 'include/migration/colo.h')
-rw-r--r-- | include/migration/colo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/migration/colo.h b/include/migration/colo.h index e32eef4763..2bbff9e6c2 100644 --- a/include/migration/colo.h +++ b/include/migration/colo.h @@ -35,4 +35,6 @@ COLOMode get_colo_mode(void); /* failover */ void colo_do_failover(MigrationState *s); + +void colo_checkpoint_notify(void *opaque); #endif |