OSDN Git Service

migration: Cleanup postcopy_preempt_setup()
authorPeter Xu <peterx@redhat.com>
Wed, 8 Feb 2023 20:28:11 +0000 (15:28 -0500)
committerJuan Quintela <quintela@redhat.com>
Sat, 11 Feb 2023 15:51:09 +0000 (16:51 +0100)
commitfc063a7b8ac0e1362897f4fb3f5c09dce2b2f5af
tree02da2a8b2b631770a846f87ba7cbab90cf005801
parentd6f74fd12e464325f260d157c221e29480c62368
migration: Cleanup postcopy_preempt_setup()

Since we just dropped the only case where postcopy_preempt_setup() can
return an error, it doesn't need a retval anymore because it never fails.
Move the preempt check to the caller, preparing it to be used elsewhere to
do nothing but as simple as kicking the async connection.

Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/migration.c
migration/postcopy-ram.c
migration/postcopy-ram.h