vmm: add TLS streams to migration transport

Teach the migration transport to handle TLS-backed streams alongside
plain TCP and UNIX sockets.

Introduce a Tls variant in SocketStream and implement the necessary
traits.

Also updates the local-migration error path to reject any non-UNIX
transport, which now includes TLS-wrapped TCP connections.

On-behalf-of: SAP sebastian.eydam@sap.com
Signed-off-by: Sebastian Eydam <sebastian.eydam@cyberus-technology.de>
This commit is contained in:
Sebastian Eydam
2026-04-14 13:18:54 +02:00
committed by Rob Bradford
parent eaceef5aa0
commit f3623e6403
3 changed files with 122 additions and 2 deletions
+2 -2
View File
@@ -1470,9 +1470,9 @@ impl Vmm {
// Proceed with sending memory file descriptors over UNIX socket
vm.send_memory_fds(unix_socket)?;
}
SocketStream::Tcp(_tcp_socket) => {
_ => {
return Err(MigratableError::MigrateSend(anyhow!(
"--local option is not supported with TCP sockets",
"--local option is only supported with UNIX sockets",
)));
}
}