Skip to content

feat: add support for vsock connections #623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged

feat: add support for vsock connections #623

merged 1 commit into from
Apr 14, 2025

Conversation

domenkozar
Copy link
Contributor

I've hidden it behind a feature flag, since it's kind of uncommon.

@domenkozar domenkozar requested a review from a team as a code owner April 9, 2025 14:31
@hds
Copy link
Collaborator

hds commented Apr 9, 2025

Hey! This looks good in general. Would you mind adding a bit more background and justification to your PR message (that will go into the commit history).

Basically because I didn't know what a vsock was until today, so I figure the reference would be worthwhile. 😅

@domenkozar
Copy link
Contributor Author

@hds done :)

@domenkozar
Copy link
Contributor Author

Friendly ping :)

@hds
Copy link
Collaborator

hds commented Apr 14, 2025

@domenkozar Thanks for the ping. I've just had another look through the PR, however don't we need to add vsock support into tokio-console as well? Otherwise this feels like only half the feature.

@domenkozar
Copy link
Contributor Author

@hds something like this? :)

Copy link
Collaborator

@hds hds left a comment

Choose a reason for hiding this comment

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

Looks good! Just a few small things regarding error handling (mostly in the case where the new feature isn't enabled).

@domenkozar
Copy link
Contributor Author

PTAL :)

@hds hds changed the title Add support for tokio-vsock feat: add support for tokio-vsock Apr 14, 2025
Copy link
Collaborator

@hds hds left a comment

Choose a reason for hiding this comment

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

Looks good. Just a couple of CI checks that are failing. Thanks for all your work on this PR!

@hds hds changed the title feat: add support for tokio-vsock feat: add support for vsock connections Apr 14, 2025
This allows connecting to VSOCK address family,
which is used in VMs: https://man7.org/linux/man-pages/man7/vsock.7.html
@hds hds merged commit 63c70ee into tokio-rs:main Apr 14, 2025
19 checks passed
@hds
Copy link
Collaborator

hds commented Apr 14, 2025

@domenkozar Merged! Thanks for your contribution!

I hope to get a release of the crates out in the next week. There are just a few little changes that we'd like to make first.

@github-actions github-actions bot mentioned this pull request Apr 10, 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