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

2021-09-27 Thread Stefano Garzarella
On Fri, Sep 24, 2021 at 03:27:30PM -0700, Jiang Wang . wrote: On Thu, Sep 23, 2021 at 2:18 AM Stefano Garzarella wrote: [...] > >To explain it, I think the event queue number does not matter for the >vhost and qemu. The vhost-vsock kernel module does not allocate any >data structure for the

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

2021-09-24 Thread Jiang Wang .
On Thu, Sep 23, 2021 at 2:18 AM Stefano Garzarella wrote: > > On Wed, Sep 22, 2021 at 10:36:24AM -0700, Jiang Wang . wrote: > >On Wed, Sep 22, 2021 at 2:23 AM Stefano Garzarella > >wrote: > >> > >> On Wed, Sep 22, 2021 at 12:00:24AM +, Jiang Wang wrote: > >> >Datagram sockets are

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

2021-09-23 Thread Stefano Garzarella
On Wed, Sep 22, 2021 at 10:36:24AM -0700, Jiang Wang . wrote: On Wed, Sep 22, 2021 at 2:23 AM Stefano Garzarella wrote: On Wed, Sep 22, 2021 at 12:00:24AM +, Jiang Wang wrote: >Datagram sockets are connectionless and unreliable. >The sender does not know the capacity of the receiver >and

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

2021-09-22 Thread Jiang Wang .
On Wed, Sep 22, 2021 at 2:23 AM Stefano Garzarella wrote: > > On Wed, Sep 22, 2021 at 12:00:24AM +, 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 v7] virtio/vsock: add two more queues for datagram types

2021-09-22 Thread Stefano Garzarella
On Wed, Sep 22, 2021 at 12:00:24AM +, 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 it will

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

2021-09-21 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