Skip to content

Conversation

@phip1611
Copy link
Member

@phip1611 phip1611 commented Aug 18, 2025

Part of #7291 to work towards live-migration with FDs for virtio-net devices.

About

This implements the closing of all file descriptors opened externally for a certain device. This allows management software (e.g., libvirt) to properly close tap devices after a hot-remove operation.

Background: virtio-net devices are currently the only devices for that you can pass externally opened FDs. This works via UNIX SCM_RIGHTS messages via the UNIX domain socket between the management software (e.g., libvirt) and Cloud Hypervisor.

Steps to Undraft

@phip1611 phip1611 requested a review from a team as a code owner August 18, 2025 12:10
@phip1611 phip1611 force-pushed the productize-network_fd_livemig_prep-1 branch 5 times, most recently from 0638a8b to 3d7b156 Compare August 18, 2025 13:05
@phip1611 phip1611 changed the title devices: remove preserved fds on device hot detach devices: remove preserved fds on device hot detach net_util: misc improvements [network fd livemig prerequisite 1/N] Aug 18, 2025
@phip1611 phip1611 changed the title devices: remove preserved fds on device hot detach net_util: misc improvements [network fd livemig prerequisite 1/N] devices: remove preserved fds on device hot detach [network fd livemig prerequisite 1/N] Aug 18, 2025
Close all file descriptors opened externally for this device.
This allows management software (e.g., libvirt) to properly close
tap devices after a hot-remove operation.

Background: virtio-net devices are currently the only devices for
that you can pass externally opened FDs. This works via UNIX
SCM_RIGHTS messages via the UNIX domain socket between the management
software (e.g., libvirt) and Cloud Hypervisor.

Signed-off-by: Philipp Schuster <[email protected]>
On-behalf-of: SAP [email protected]
@phip1611 phip1611 force-pushed the productize-network_fd_livemig_prep-1 branch from 3d7b156 to 515bb97 Compare August 18, 2025 13:37
@phip1611 phip1611 changed the title devices: remove preserved fds on device hot detach [network fd livemig prerequisite 1/N] devices: remove preserved fds on device hot detach Aug 21, 2025
@phip1611 phip1611 marked this pull request as draft August 22, 2025 08:14
@phip1611 phip1611 changed the title devices: remove preserved fds on device hot detach [WIP] devices: remove preserved fds on device hot detach Aug 22, 2025
@likebreath likebreath closed this Aug 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants