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:
Vladimir Sementsov-Ogievskiy 2023-05-15 16:06:40 +03:00 committed by Juan Quintela
parent dd42ce24a3
commit d0a14a2ba0
4 changed files with 50 additions and 32 deletions

View file

@ -10,11 +10,9 @@ void colo_shutdown(void)
{
}
void *colo_process_incoming_thread(void *opaque)
int coroutine_fn colo_incoming_co(void)
{
error_report("Impossible happend: trying to start COLO thread when COLO "
"module is not built in");
abort();
return 0;
}
void colo_checkpoint_delay_set(void)