External email: Use caution opening links or attachments
On Thu, Jan 25, 2024 at 06:25:11PM +0200, Avihai Horon wrote:
Hello,
Today there are several types of migration channels that can be used
during migration: main migration channel, multifd channels and postcopy
preempt channel. Each channel type has its own code to connect and to
TLS upgrade itself when needed. There is no unified API for these tasks
and it makes the code a bit unclear and cumbersome.
This series aims to solve this by introducing two new APIs for the above
tasks that will replace the existing code.
The first one is an API to TLS upgrade migration channels. A new
function, migration_tls_channel_connect(), is introduced and is used by
main migration, multifd and postcopy preempt channels.
The second one is an API to connect migration channels. A new function,
migration_channel_connect(), is introduced and is used by all migration
channels other than main migration channel, i.e., multifd and postcopy
preempt channels. The reason it's not used by main migration channel is
because the main channel is a bit special and has different flows, and I
didn't see a smooth way to include it.
Patch breakdown:
1-5: Some fixes and cleanups.
6-12: Add new migration channel TLS upgrade API.
13-17: Add new migration channel connect API.
Hi, Avihai,
I am queuing patch 1 as it does look like a real bug to fix asap. I'll
copy stable for that one. For such patches, feel free to post separately
next time if you think I should merge earlier than the rest.