Thread (1 message) flat view 1 message, 1 author, 2021-03-15

Re: [RFC PATCH v6 17/22] virtio/vsock: SEQPACKET feature bit support

From: Stefano Garzarella <sgarzare@redhat.com>
Date: 2021-03-15 11:30:24
Also in: kvm, lkml, netdev

On Sun, Mar 07, 2021 at 09:04:01PM +0300, Arseny Krasnov wrote:
This adds handling of SEQPACKET bit: guest tries to negotiate it
with vhost.

Signed-off-by: Arseny Krasnov <redacted>
---
net/vmw_vsock/virtio_transport.c | 5 +++++
1 file changed, 5 insertions(+)
Also for this patch I think is better to move after we set the 
seqpackets ops.
quoted hunk
diff --git a/net/vmw_vsock/virtio_transport.c b/net/vmw_vsock/virtio_transport.c
index 2700a63ab095..41c5d0a31e08 100644
--- a/net/vmw_vsock/virtio_transport.c
+++ b/net/vmw_vsock/virtio_transport.c
@@ -612,6 +612,10 @@ static int virtio_vsock_probe(struct virtio_device *vdev)
	rcu_assign_pointer(the_virtio_vsock, vsock);

	mutex_unlock(&the_virtio_vsock_mutex);
+
+	if (vdev->features & (1ULL << VIRTIO_VSOCK_F_SEQPACKET))
+		virtio_transport.seqpacket_allow = true;
+
	return 0;

out:
@@ -695,6 +699,7 @@ static struct virtio_device_id id_table[] = {
};

static unsigned int features[] = {
+	VIRTIO_VSOCK_F_SEQPACKET
};

static struct virtio_driver virtio_vsock_driver = {
-- 
2.25.1
_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help