Stefano Garzarella <[email protected]> writes: > On Tue, Nov 24, 2026 at 01:20:18PM +0100, Sergio Lopez wrote: >>This RFC adds SOCK_DGRAM support to virtio-vsock and vhost-vsock through >>the existing AF_VSOCK API. It is intended for guest and host services >>that exchange independent requests, responses, or events and need message >>boundaries and sender addresses without a stream connection or application >>framing. > > Thanks for restarting this work, I have finally found the time to took a > quick look, sorry for the delay. > > Reading the cover letter, it is not clear to me the changes we are doing > to the core and VMCI that was already supporting DGRAM. I'd like to > understand better how the backward compatibility is handled and how VMCI > behavior is preserved. Also reading commits, most of them just contains > a description of what the code is doing, but they lack the reasons > behind the changes (i.e. the why). > > Overall it seems the right direction, but I have some open questions > (some of them discussed with Bobby, Stefan, and I at KVM Forum some > weeks ago): > - Can the virtio flow control be affected by a flood of dgrams ? > See > https://docs.oasis-open.org/virtio/virtio/v1.4/virtio-v1.4.html#x1-5720001 > and virtio_vsock_pkt_info.reply / virtio_vsock_skb_reply(skb) > handling. > - Did you test virtio transports when VMCI transport is also loaded? > That one is automatically loaded (for historical reasons) first time > AF_VSOCK socket is created, if af_vsock.ko is not loaded. So could be > a common scenario. > - Any limitation of the current implementation that we will need to > fix/implement in next steps? > - Any performance number? > > > About patches, I started to review, but I hit a wall with patch 6. It's > too big and really hard to review/maintain. Please split it (e.g. the > refactoring for vsock_assign_transport can be moved out, etc.). Also > there are too many if() with conditions duplicated and few comments on > those conditions, for example: >
I agree. I focused too much on quickly addressing Sashiko's feedback and things went out of hand. I'll rework the series with a focus on bisectability and readability. Thanks for the review, Stefano! Sergio.
