Skip to content

vmm: clean up migration threads on failure - #188

Merged
olivereanderson merged 1 commit into
cyberus-technology:gardenlinuxfrom
arctic-alpaca:migration-cleanup-gardenlinux
Jul 29, 2026
Merged

vmm: clean up migration threads on failure#188
olivereanderson merged 1 commit into
cyberus-technology:gardenlinuxfrom
arctic-alpaca:migration-cleanup-gardenlinux

Conversation

@arctic-alpaca

Copy link
Copy Markdown

Migration threads may be left orphaned and keep the socket bound after a migration has failed. Prevent this by signaling termination via the terminate_fd in ReceiveAdditionalConnections's Drop impl.

As far as I can tell, we cannot test this in libvirt because it doesn't expose a way to create the conditions that the migration fails.

Backport of cloud-hypervisor#8656

Fixes https://github.com/cobaltcore-dev/cobaltcore/issues/640

Migration threads may be left orphaned and keep the socket bound after
a migration has failed. Prevent this by signaling termination via the
`terminate_fd` in `ReceiveAdditionalConnections`'s `Drop` impl.

On-behalf-of: SAP julian.schindel@sap.com
Signed-off-by: Julian Schindel <julian.schindel@cyberus-technology.de>

@olivereanderson olivereanderson left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@olivereanderson
olivereanderson merged commit d00bdc0 into cyberus-technology:gardenlinux Jul 29, 2026
19 checks passed
@arctic-alpaca
arctic-alpaca deleted the migration-cleanup-gardenlinux branch July 30, 2026 05:24
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.

3 participants