vmm: accept migration connections over TLS

Extend ReceiveListener with a TLS-backed listener variant for migration
receivers.

Store the TCP listener together with the server TLS configuration, wrap
accepted sockets in TlsStream::new_server(), and preserver the existing
listener cloning and fd polling behavior so receive-side migration code
can treat TLS listeners like the existing TCP and UNIX cases.

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:56:18 +02:00
committed by Rob Bradford
parent f3623e6403
commit 0ec2ae376b
2 changed files with 21 additions and 2 deletions

View File

@@ -273,7 +273,7 @@ impl WriteVolatile for TlsStream {
/// Carries a TLS server configuration. Intended to be turned into a [`TlsStream`]
/// when paired with a [`TcpStream`].
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct TlsServerConfig {
/// This config is shared between all server connections.
config: Arc<ServerConfig>,