migration: Allow migrate-recover to run multiple times
commit08401c0426bc1a5ce4609afd1cda5dd39abbf9fa
authorPeter Xu <peterx@redhat.com>
Thu, 31 Mar 2022 15:08:45 +0000 (31 11:08 -0400)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 21 Apr 2022 18:36:46 +0000 (21 19:36 +0100)
tree900619a942159075bce57fba3293e73c5918a3e4
parenta39e933962314c9949d71c25f234e8a3dddc4b25
migration: Allow migrate-recover to run multiple times

Previously migration didn't have an easy way to cleanup the listening
transport, migrate recovery only allows to execute once.  That's done with a
trick flag in postcopy_recover_triggered.

Now the facility is already there.

Drop postcopy_recover_triggered and instead allows a new migrate-recover to
release the previous listener transport.

Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20220331150857.74406-8-peterx@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c
migration/migration.h
migration/savevm.c