diff options
author | Zhang Chen <zhangckid@gmail.com> | 2018-09-03 12:38:47 +0800 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2018-10-19 11:15:03 +0800 |
commit | aad555c2294b5de22524b7dbacc728d51cc63bcc (patch) | |
tree | 2f83c8e78d6866ec5ae7a6f5c80225d0b9751f67 /include/migration | |
parent | 8e48ac95865ac97d10a81cb7a5bbae310878f519 (diff) | |
download | qemu-aad555c2294b5de22524b7dbacc728d51cc63bcc.zip qemu-aad555c2294b5de22524b7dbacc728d51cc63bcc.tar.gz qemu-aad555c2294b5de22524b7dbacc728d51cc63bcc.tar.bz2 |
COLO: Remove colo_state migration struct
We need to know if migration is going into COLO state for
incoming side before start normal migration.
Instead by using the VMStateDescription to send colo_state
from source side to destination side, we use MIG_CMD_ENABLE_COLO
to indicate whether COLO is enabled or not.
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>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/colo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/migration/colo.h b/include/migration/colo.h index fefb2fc..99ce17a 100644 --- a/include/migration/colo.h +++ b/include/migration/colo.h @@ -28,8 +28,9 @@ void migrate_start_colo_process(MigrationState *s); bool migration_in_colo_state(void); /* loadvm */ -bool migration_incoming_enable_colo(void); -void migration_incoming_exit_colo(void); +void migration_incoming_enable_colo(void); +void migration_incoming_disable_colo(void); +bool migration_incoming_colo_enabled(void); void *colo_process_incoming_thread(void *opaque); bool migration_incoming_in_colo_state(void); |