mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
migration: process_incoming_migration_co(): move colo part to colo
Let's make better public interface for COLO: instead of colo_process_incoming_thread and not trivial logic around creating the thread let's make simple colo_incoming_co(), hiding implementation from generic code. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Juan Quintela <quintela@redhat.com> Message-Id: <20230515130640.46035-4-vsementsov@yandex-team.ru> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
parent
dd42ce24a3
commit
d0a14a2ba0
4 changed files with 50 additions and 32 deletions
|
@ -28,7 +28,6 @@ bool migration_in_colo_state(void);
|
|||
int 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);
|
||||
|
||||
COLOMode get_colo_mode(void);
|
||||
|
@ -44,5 +43,13 @@ void colo_do_failover(void);
|
|||
*/
|
||||
void colo_checkpoint_delay_set(void);
|
||||
|
||||
/*
|
||||
* Starts COLO incoming process. Called from process_incoming_migration_co()
|
||||
* after loading the state.
|
||||
*
|
||||
* Called with BQL locked, may temporary release BQL.
|
||||
*/
|
||||
int coroutine_fn colo_incoming_co(void);
|
||||
|
||||
void colo_shutdown(void);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue