mdlayher / vsock

Package vsock provides access to Linux VM sockets (AF_VSOCK) for communication between a hypervisor and its virtual machines. MIT Licensed.
MIT License
336 stars 65 forks source link

vsock: implement ListenDatagram and DialDatagram #2

Open mdlayher opened 7 years ago

mdlayher commented 7 years ago

Add the connectionless counterparts alongside the existing connection-oriented API.

mdlayher commented 6 years ago

Hey @stefanha, have the datagram sockets been implemented yet? Last I was aware, I don't think they were available.

stefanha commented 6 years ago

On Thu, Nov 23, 2017 at 5:23 PM, Matt Layher notifications@github.com wrote:

Hey @stefanha https://github.com/stefanha, have the datagram sockets been implemented yet? Last I was aware, I don't think they were available.

SOCK_DGRAM is not available yet. There is currently no work in this area.

Stefan

mdlayher commented 2 years ago

There may be some work on this now: https://lwn.net/Articles/859271/.

stefanha commented 2 years ago

SOCK_SEQPACKET and SOCK_DGRAM are on the way but not 100% finished yet. @stefano-garzarella

stefano-garzarella commented 2 years ago

SOCK_SEQPACKET and SOCK_DGRAM are on the way but not 100% finished yet. @stefano-garzarella

Yep, SOCK_SEQPACKET is almost done. It is also merged in virtio-spec 1.2 and supported starting from Linux v5.14 and QEMU v6.1.

For SOCK_DGRAM, Jiang is still working on it. It hasn't landed upstream yet.

mdlayher commented 2 years ago

Thank you both for the updates!

NullHypothesis commented 10 months ago

For SOCK_DGRAM, Jiang is still working on it. It hasn't landed upstream yet.

Hey @stefano-garzarella, is there any update on this? AFAICT, there was some LKML activity back in June 2023 and I assume the patch set hasn't landed yet? Thanks!

stefano-garzarella commented 10 months ago

For SOCK_DGRAM, Jiang is still working on it. It hasn't landed upstream yet.

Hey @stefano-garzarella, is there any update on this? AFAICT, there was some LKML activity back in June 2023 and I assume the patch set hasn't landed yet? Thanks!

Yep, the patches are not landed yet. AFAIK @beshleman and his colleagues in ByteDance are working on that.

beshleman commented 10 months ago

This is true. We should see new spec/code patches out very soon (this or next month I think).

mdlayher commented 10 months ago

Excellent news! Happy to incorporate dgram mode as appropriate once the kernel APIs are ready to go.