diff options
author | Li Zhijian <lizhijian@fujitsu.com> | 2024-05-16 11:45:16 +0800 |
---|---|---|
committer | Fabiano Rosas <farosas@suse.de> | 2024-05-22 17:34:31 -0300 |
commit | 787ea49e80df0e7af922586f6076da94410cdd08 (patch) | |
tree | 3d9562175d3a2b4f1964a1d74425bfb1ce43080f /include/migration | |
parent | 55a331655dbc8feee198f379eaafa3e75e744b7b (diff) | |
download | qemu-787ea49e80df0e7af922586f6076da94410cdd08.zip qemu-787ea49e80df0e7af922586f6076da94410cdd08.tar.gz qemu-787ea49e80df0e7af922586f6076da94410cdd08.tar.bz2 |
migration/colo: make colo_incoming_co() return void
Currently, it always returns 0, no need to check the return value at all.
In addition, enter colo coroutine only if migration_incoming_colo_enabled()
is true.
Once the destination side enters the COLO* state, the COLO process will
take over the remaining processes until COLO exits.
Cc: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
[fixed mangled author email address]
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Diffstat (limited to 'include/migration')
-rw-r--r-- | include/migration/colo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/migration/colo.h b/include/migration/colo.h index eaac07f..43222ef 100644 --- a/include/migration/colo.h +++ b/include/migration/colo.h @@ -49,7 +49,7 @@ void colo_checkpoint_delay_set(void); * * Called with BQL locked, may temporary release BQL. */ -int coroutine_fn colo_incoming_co(void); +void coroutine_fn colo_incoming_co(void); void colo_shutdown(void); #endif |