Skip to content
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

Replace the old vsock device with TSIv2's vsock #45

Merged
merged 3 commits into from
May 30, 2022
Merged

Conversation

slp
Copy link
Contributor

@slp slp commented May 30, 2022

No description provided.

slp added 2 commits May 30, 2022 08:45
Derive "Clone" for Epoll. TSIv2's vsock will need this.

Signed-off-by: Sergio Lopez <slp@redhat.com>
Drop use of the kqueue crate making use of the low-level interface
exposed via libc instead. This allows us to operate in a way that fits
better our need to emulate epoll.

Signed-off-by: Sergio Lopez <slp@redhat.com>
Replace the original vsock implementation, coming from Firecracker and
slightly modified to support TSI, with a device implementation
specifically designed to support TSIv2.

TSIv2, in addition of being cleaner (TSI was mostly a PoC), adds
support for SOCK_DGRAM, enabling guests to make use of UDP. This is
specially useful for DNS, as it removed the need to add "options
use-vs" to "/etc/resolv.conf", and enables the use of musl-based OCI
images, such as the ones derived from Alpine.

Starting this commit, libkrun requires version 2 or later of the
libkrunfw payload.

Signed-off-by: Sergio Lopez <slp@redhat.com>
@slp slp merged commit 34caba2 into containers:main May 30, 2022
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.

None yet

1 participant