vmm: allow keeping the socket listener around

This allows accepting multiple connections in the migration receive
path.

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-03-10 11:17:20 +01:00
committed by Bo Chen
parent 765311085f
commit 7311211b38
2 changed files with 40 additions and 28 deletions
+3 -2
View File
@@ -2298,9 +2298,10 @@ impl RequestHandler for Vmm {
receive_data_migration.receiver_url
);
let mut listener =
migration_transport::receive_migration_listener(&receive_data_migration.receiver_url)?;
// Accept the connection and get the socket
let mut socket =
migration_transport::receive_migration_socket(&receive_data_migration.receiver_url)?;
let mut socket = listener.accept()?;
event!("vm", "migration-receive-started");