Re: [PATCH 1/3] vsock/virtio: support for SOCK_SEQPACKET socket.

2021-01-02 Thread Arseny Krasnov
> E.g. what you describe sounds like it will work but > won't allow pipelining more than one message in flight. You mean it will fail when two threads send concurrently using same socket? Yes, this problem could be fixed adding semaphore to send loop. > Support will probably need a feature bit, t

Re: [PATCH 1/3] vsock/virtio: support for SOCK_SEQPACKET socket.

2020-12-30 Thread Michael S. Tsirkin
On Tue, Dec 29, 2020 at 02:04:51PM +0300, Arseny Krasnov wrote: > To preserve message boundaries, new packet operation was added: > to mark start of record(with record length in header). To send record, > packet with start marker is sent first, then all data is transmitted as > 'RW' packets

[PATCH 1/3] vsock/virtio: support for SOCK_SEQPACKET socket.

2020-12-29 Thread Arseny Krasnov
To preserve message boundaries, new packet operation was added: to mark start of record(with record length in header). To send record, packet with start marker is sent first, then all data is transmitted as 'RW' packets. On receiver's side, length of record is known from packet with