> Expose VIRTIO_VSOCK_F_DGRAM in the vhost feature bitmap and retain the
> negotiated value for each guest.  Keep datagrams disabled until the
> feature is negotiated.
> 
> Use a vhost-specific datagram destination check to look up the guest
> in the socket's network namespace and require its negotiated datagram
> feature. The common virtio implementation supplies the bind and
> message operations; destination validation remains in connect() and
> sendmsg(), where the remote CID is available.
> 
> Reject guest datagrams on ingress unless the receiving virtqueue
> acknowledged the feature. Complete rejected descriptors normally so the
> queue can continue processing subsequent traffic.
> 
> Signed-off-by: Sergio Lopez <[email protected]>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review ยท 
https://sashiko.dev/#/patchset/[email protected]?part=5


Reply via email to