diff options
author | Peter Xu | 2022-03-01 09:39:14 +0100 |
---|---|---|
committer | Dr. David Alan Gilbert | 2022-03-02 19:20:45 +0100 |
commit | e031149c78489413038e934eec9f54ac699cf322 (patch) | |
tree | b6314db603a6fdf723c8177d6049b71e05c8c83c /tests | |
parent | migration: postcopy_pause_fault_thread() never fails (diff) | |
download | qemu-e031149c78489413038e934eec9f54ac699cf322.tar.gz qemu-e031149c78489413038e934eec9f54ac699cf322.tar.xz qemu-e031149c78489413038e934eec9f54ac699cf322.zip |
migration: Add migration_incoming_transport_cleanup()
Add a helper to cleanup the transport listener.
When do it, we should also null-ify the cleanup hook and the data, then it's
even safe to call it multiple times.
Move the socket_address_list cleanup altogether, because that's a mirror of the
listener channels and only for the purpose of query-migrate. Hence when
someone wants to cleanup the listener transport, it should also want to cleanup
the socket list too, always.
No functional change intended.
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20220301083925.33483-15-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions