Re: [RFC v6] virtio/vsock: add two more queues for datagram types

2021-09-16 Thread Stefano Garzarella
On Thu, Sep 16, 2021 at 08:26:15AM +0200, Stefano Garzarella wrote: On Wed, Sep 15, 2021 at 08:59:17PM -0700, Jiang Wang . wrote: On Tue, Sep 14, 2021 at 5:46 AM Stefan Hajnoczi wrote: On Mon, Sep 13, 2021 at 10:18:43PM +, Jiang Wang wrote: Datagram sockets are connectionless and

Re: Re: [RFC v6] virtio/vsock: add two more queues for datagram types

2021-09-16 Thread Stefan Hajnoczi
On Wed, Sep 15, 2021 at 08:59:17PM -0700, Jiang Wang . wrote: > On Tue, Sep 14, 2021 at 5:46 AM Stefan Hajnoczi wrote: > > On Mon, Sep 13, 2021 at 10:18:43PM +, Jiang Wang wrote: > > > diff --git a/hw/virtio/vhost-user-vsock.c b/hw/virtio/vhost-user-vsock.c > > > index 6095ed7349..e9ec0e1c00

Re: [RFC v6] virtio/vsock: add two more queues for datagram types

2021-09-16 Thread Stefano Garzarella
On Wed, Sep 15, 2021 at 08:59:17PM -0700, Jiang Wang . wrote: On Tue, Sep 14, 2021 at 5:46 AM Stefan Hajnoczi wrote: On Mon, Sep 13, 2021 at 10:18:43PM +, Jiang Wang wrote: > Datagram sockets are connectionless and unreliable. > The sender does not know the capacity of the receiver > and

Re: Re: [RFC v6] virtio/vsock: add two more queues for datagram types

2021-09-15 Thread Jiang Wang .
On Tue, Sep 14, 2021 at 5:46 AM Stefan Hajnoczi wrote: > > On Mon, Sep 13, 2021 at 10:18:43PM +, Jiang Wang wrote: > > Datagram sockets are connectionless and unreliable. > > The sender does not know the capacity of the receiver > > and may send more packets than the receiver can handle. > >

Re: [RFC v6] virtio/vsock: add two more queues for datagram types

2021-09-14 Thread Stefan Hajnoczi
On Mon, Sep 13, 2021 at 10:18:43PM +, Jiang Wang wrote: > Datagram sockets are connectionless and unreliable. > The sender does not know the capacity of the receiver > and may send more packets than the receiver can handle. > > Add two more dedicate virtqueues for datagram sockets, > so that

[RFC v6] virtio/vsock: add two more queues for datagram types

2021-09-13 Thread Jiang Wang
Datagram sockets are connectionless and unreliable. The sender does not know the capacity of the receiver and may send more packets than the receiver can handle. Add two more dedicate virtqueues for datagram sockets, so that it will not unfairly steal resources from stream and future