[PATCH v1] vsock: don't send messages when vsock device is not started

2021-10-01 Thread Jiang Wang
Added a check in vhost_vsock_common_send_transport_reset, and only send messages on event queue when the vsock host device is started. Suggested-by: Stefano Garzarella Signed-off-by: Jiang Wang --- hw/virtio/vhost-vsock-common.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff

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 Wa

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

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

2021-09-21 Thread Jiang Wang
versions. Signed-off-by: Jiang Wang --- v1 -> v2: use qemu cmd option to control number of queues, removed configuration settings for dgram. v2 -> v3: use ioctl to get features and decide number of virt queues, instead of qemu cmd option. v3 -> v4: change DGRAM feature bit

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

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

2021-09-13 Thread Jiang Wang
-oriented sockets. Signed-off-by: Jiang Wang --- v1 -> v2: use qemu cmd option to control number of queues, removed configuration settings for dgram. v2 -> v3: use ioctl to get features and decide number of virt queues, instead of qemu cmd option. v3 -> v4: change DGRAM fe

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

2021-09-12 Thread Jiang Wang
-oriented sockets. Signed-off-by: Jiang Wang --- v1 -> v2: use qemu cmd option to control number of queues, removed configuration settings for dgram. v2 -> v3: use ioctl to get features and decide number of virt queues, instead of qemu cmd option. v3 -> v4: change DGRAM fe

Re: Re: [PATCH v4] virtio/vsock: add two more queues for datagram types

2021-09-05 Thread Jiang Wang .
On Mon, Aug 9, 2021 at 3:58 AM Stefano Garzarella wrote: > > On Thu, Aug 05, 2021 at 12:07:02PM -0700, Jiang Wang . wrote: > >On Wed, Aug 4, 2021 at 1:13 AM Stefano Garzarella > >wrote: > >> > >> On Tue, Aug 03, 2021 at 11:41:32PM +, Jiang Wa

Re: Re: [PATCH v4] virtio/vsock: add two more queues for datagram types

2021-08-09 Thread Jiang Wang .
On Mon, Aug 9, 2021 at 3:58 AM Stefano Garzarella wrote: > > On Thu, Aug 05, 2021 at 12:07:02PM -0700, Jiang Wang . wrote: > >On Wed, Aug 4, 2021 at 1:13 AM Stefano Garzarella > >wrote: > >> > >> On Tue, Aug 03, 2021 at 11:41:32PM +, Jiang Wa

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

2021-08-09 Thread Jiang Wang .
On Mon, Aug 9, 2021 at 3:49 AM Stefano Garzarella wrote: > > On Thu, Aug 05, 2021 at 12:00:05PM -0700, Jiang Wang . wrote: > >On Tue, Aug 3, 2021 at 11:49 PM Stefano Garzarella > >wrote: > >> > >> On Wed, Aug 4, 2021 at 8:41 AM Stefano Garzarella > >&

Re: Re: [PATCH v4] virtio/vsock: add two more queues for datagram types

2021-08-05 Thread Jiang Wang .
On Wed, Aug 4, 2021 at 1:13 AM Stefano Garzarella wrote: > > On Tue, Aug 03, 2021 at 11:41:32PM +, 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

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

2021-08-05 Thread Jiang Wang .
On Tue, Aug 3, 2021 at 11:49 PM Stefano Garzarella wrote: > > On Wed, Aug 4, 2021 at 8:41 AM Stefano Garzarella > wrote: > > > > On Tue, Aug 03, 2021 at 11:58:27AM -0700, Jiang Wang . wrote: > > >On Wed, Jul 7, 2021 at 10:27 AM Stefano Garzarella > > >w

[PATCH v4] virtio/vsock: add two more queues for datagram types

2021-08-03 Thread Jiang Wang
-oriented sockets. Signed-off-by: Jiang Wang --- v1 -> v2: use qemu cmd option to control number of queues, removed configuration settings for dgram. v2 -> v3: use ioctl to get features and decide number of virt queues, instead of qemu cmd option. v3 -> v4: change DGRAM fe

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

2021-08-03 Thread Jiang Wang .
On Wed, Jul 7, 2021 at 10:27 AM Stefano Garzarella wrote: > > On Wed, Jul 07, 2021 at 09:52:46AM -0700, Jiang Wang . wrote: > >On Wed, Jul 7, 2021 at 1:33 AM Stefano Garzarella > >wrote: > >> > >> On Tue, Jul 06, 2021 at 10:26:07PM +, Jiang Wa

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

2021-07-07 Thread Jiang Wang .
On Wed, Jul 7, 2021 at 10:27 AM Stefano Garzarella wrote: > > On Wed, Jul 07, 2021 at 09:52:46AM -0700, Jiang Wang . wrote: > >On Wed, Jul 7, 2021 at 1:33 AM Stefano Garzarella > >wrote: > >> > >> On Tue, Jul 06, 2021 at 10:26:07PM +, Jiang Wa

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

2021-07-07 Thread Jiang Wang .
On Wed, Jul 7, 2021 at 1:33 AM Stefano Garzarella wrote: > > On Tue, Jul 06, 2021 at 10:26:07PM +, 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

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

2021-07-06 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 connection-or

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

2021-07-01 Thread Jiang Wang .
On Wed, Jun 30, 2021 at 11:55 PM Stefano Garzarella wrote: > > On Wed, Jun 30, 2021 at 03:44:17PM -0700, Jiang Wang . wrote: > >On Thu, Jun 24, 2021 at 7:31 AM Stefano Garzarella > >wrote: > >> > >> On Wed, Jun 23, 2021 at 11:50:33PM -0700, Jiang Wang . wro

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

2021-07-01 Thread Jiang Wang
-oriented sockets. Signed-off-by: Jiang Wang --- v1 -> v2: use qemu cmd option to control number of queues, removed configuration settings for dgram. hw/virtio/vhost-user-vsock.c | 6 +++--- hw/virtio/vhost-vsock-common.c| 23 ++-

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

2021-06-30 Thread Jiang Wang .
On Thu, Jun 24, 2021 at 7:31 AM Stefano Garzarella wrote: > > On Wed, Jun 23, 2021 at 11:50:33PM -0700, Jiang Wang . wrote: > >Hi Stefano, > > > >I checked virtio_net_set_multiqueue(), which will help with following > >changes in my patch: > > >

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

2021-06-23 Thread Jiang Wang .
module parameter for the vsock_vhost module. Any other ideas? Thanks. btw, I searched Linux kernel code but did not find any examples. Regards, Jiang On Thu, Jun 10, 2021 at 10:29 AM Jiang Wang . wrote: > > On Thu, Jun 10, 2021 at 2:40 AM Stefano Garzarella > wrote: > > > >

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

2021-06-10 Thread Jiang Wang .
On Thu, Jun 10, 2021 at 2:40 AM Stefano Garzarella wrote: > > On Thu, Jun 10, 2021 at 12:14: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

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

2021-06-09 Thread Jiang Wang
-oriented sockets. The virtio spec patch is here: https://www.spinics.net/lists/linux-virtualization/msg50027.html Here is the link for the linux kernel git repo with patches to support dgram sockets: https://github.com/Jiang1155/linux/tree/vsock-dgram-v1 Signed-off-by: Jiang Wang --- configure