diff options
author | Zhang Chen <zhangckid@gmail.com> | 2018-09-03 12:38:43 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2018-10-19 11:15:03 +0800 |
commit | 0ffcece32519e85a2971cafdc421f4fd3107d766 (patch) | |
tree | b8d3e3e64b7333e961c1b1e3f0895713f313aca2 /include/migration/colo.h | |
parent | 6214231abde01119d3084a67262d35e909bd9414 (diff) | |
download | qemu-0ffcece32519e85a2971cafdc421f4fd3107d766.zip |
colo-compare: implement the process of checkpoint
While do checkpoint, we need to flush all the unhandled packets,
By using the filter notifier mechanism, we can easily to notify
every compare object to do this process, which runs inside
of compare threads as a coroutine.
Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
Signed-off-by: Zhang Chen <zhangckid@gmail.com>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/migration/colo.h')
-rw-r--r-- | include/migration/colo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/migration/colo.h b/include/migration/colo.h index 2fe48ad353..fefb2fcf4c 100644 --- a/include/migration/colo.h +++ b/include/migration/colo.h @@ -16,6 +16,12 @@ #include "qemu-common.h" #include "qapi/qapi-types-migration.h" +enum colo_event { + COLO_EVENT_NONE, + COLO_EVENT_CHECKPOINT, + COLO_EVENT_FAILOVER, +}; + void colo_info_init(void); void migrate_start_colo_process(MigrationState *s); |