Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-22 Thread Stefan Hajnoczi
On Wed, Jul 17, 2019 at 01:30:29PM +0200, Stefano Garzarella wrote: > If the packets to sent to the guest are bigger than the buffer > available, we can split them, using multiple buffers and fixing > the length in the packet header. > This is safe since virtio-vsock supports only stream sockets.

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-19 Thread Stefano Garzarella
On Fri, Jul 19, 2019 at 04:51:00PM +0800, Jason Wang wrote: > > On 2019/7/19 下午4:39, Stefano Garzarella wrote: > > On Fri, Jul 19, 2019 at 04:21:52PM +0800, Jason Wang wrote: > > > On 2019/7/19 下午4:08, Stefano Garzarella wrote: > > > > On Thu, Jul 18, 2019 at 07:35:46AM -0400, Michael S. Tsirkin

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-19 Thread Jason Wang
On 2019/7/19 下午4:39, Stefano Garzarella wrote: On Fri, Jul 19, 2019 at 04:21:52PM +0800, Jason Wang wrote: On 2019/7/19 下午4:08, Stefano Garzarella wrote: On Thu, Jul 18, 2019 at 07:35:46AM -0400, Michael S. Tsirkin wrote: On Thu, Jul 18, 2019 at 11:37:30AM +0200, Stefano Garzarella wrote:

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-19 Thread Stefano Garzarella
On Fri, Jul 19, 2019 at 04:21:52PM +0800, Jason Wang wrote: > > On 2019/7/19 下午4:08, Stefano Garzarella wrote: > > On Thu, Jul 18, 2019 at 07:35:46AM -0400, Michael S. Tsirkin wrote: > > > On Thu, Jul 18, 2019 at 11:37:30AM +0200, Stefano Garzarella wrote: > > > > On Thu, Jul 18, 2019 at 10:13 AM

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-19 Thread Jason Wang
On 2019/7/19 下午4:08, Stefano Garzarella wrote: On Thu, Jul 18, 2019 at 07:35:46AM -0400, Michael S. Tsirkin wrote: On Thu, Jul 18, 2019 at 11:37:30AM +0200, Stefano Garzarella wrote: On Thu, Jul 18, 2019 at 10:13 AM Michael S. Tsirkin wrote: On Thu, Jul 18, 2019 at 09:50:14AM +0200,

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-19 Thread Stefano Garzarella
On Thu, Jul 18, 2019 at 07:35:46AM -0400, Michael S. Tsirkin wrote: > On Thu, Jul 18, 2019 at 11:37:30AM +0200, Stefano Garzarella wrote: > > On Thu, Jul 18, 2019 at 10:13 AM Michael S. Tsirkin wrote: > > > On Thu, Jul 18, 2019 at 09:50:14AM +0200, Stefano Garzarella wrote: > > > > On Wed, Jul

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-18 Thread Michael S. Tsirkin
On Thu, Jul 18, 2019 at 11:37:30AM +0200, Stefano Garzarella wrote: > On Thu, Jul 18, 2019 at 10:13 AM Michael S. Tsirkin wrote: > > On Thu, Jul 18, 2019 at 09:50:14AM +0200, Stefano Garzarella wrote: > > > On Wed, Jul 17, 2019 at 4:55 PM Michael S. Tsirkin > > > wrote: > > > > On Wed, Jul 17,

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-18 Thread Stefano Garzarella
On Thu, Jul 18, 2019 at 10:13 AM Michael S. Tsirkin wrote: > On Thu, Jul 18, 2019 at 09:50:14AM +0200, Stefano Garzarella wrote: > > On Wed, Jul 17, 2019 at 4:55 PM Michael S. Tsirkin wrote: > > > On Wed, Jul 17, 2019 at 01:30:29PM +0200, Stefano Garzarella wrote: > > > > If the packets to sent

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-18 Thread Michael S. Tsirkin
On Thu, Jul 18, 2019 at 09:50:14AM +0200, Stefano Garzarella wrote: > On Wed, Jul 17, 2019 at 4:55 PM Michael S. Tsirkin wrote: > > > > On Wed, Jul 17, 2019 at 01:30:29PM +0200, Stefano Garzarella wrote: > > > If the packets to sent to the guest are bigger than the buffer > > > available, we can

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-18 Thread Stefano Garzarella
On Wed, Jul 17, 2019 at 4:55 PM Michael S. Tsirkin wrote: > > On Wed, Jul 17, 2019 at 01:30:29PM +0200, Stefano Garzarella wrote: > > If the packets to sent to the guest are bigger than the buffer > > available, we can split them, using multiple buffers and fixing > > the length in the packet

Re: [PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-17 Thread Michael S. Tsirkin
On Wed, Jul 17, 2019 at 01:30:29PM +0200, Stefano Garzarella wrote: > If the packets to sent to the guest are bigger than the buffer > available, we can split them, using multiple buffers and fixing > the length in the packet header. > This is safe since virtio-vsock supports only stream sockets.

[PATCH v4 4/5] vhost/vsock: split packets to send using multiple buffers

2019-07-17 Thread Stefano Garzarella
If the packets to sent to the guest are bigger than the buffer available, we can split them, using multiple buffers and fixing the length in the packet header. This is safe since virtio-vsock supports only stream sockets. Signed-off-by: Stefano Garzarella --- drivers/vhost/vsock.c