migration: Enable TLS for preempt channel
commitf0afaf6ce4995d37cd411ae26cf8ca1d6dde0f93
authorPeter Xu <peterx@redhat.com>
Thu, 7 Jul 2022 18:55:18 +0000 (7 14:55 -0400)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 20 Jul 2022 11:15:09 +0000 (20 12:15 +0100)
tree322909cf3d2b6b1924edff1fa43cbd86eaabc8b3
parent9a2666275215048c73f1d66f7d57d7ea32328082
migration: Enable TLS for preempt channel

This patch is based on the async preempt channel creation.  It continues
wiring up the new channel with TLS handshake to destionation when enabled.

Note that only the src QEMU needs such operation; the dest QEMU does not
need any change for TLS support due to the fact that all channels are
established synchronously there, so all the TLS magic is already properly
handled by migration_tls_channel_process_incoming().

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20220707185518.27529-1-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/postcopy-ram.c
migration/trace-events