Re: Please backport 6dbd3e66e778 vhost/vsock: split packets to send using multiple buffers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 25, 2019 at 04:39:00PM +0100, Stefano Garzarella wrote:
> Hi,
> with Michael, we realized that this patch merged upstream solves an
> issue in the device emulation in the vhost-vsock module.
> Before this patch, the emulation did not meet the VIRTIO vsock
> specification, assuming that the buffer in the RX virtqueue was always 4 KB,
> without checking the actual size.
> 
> Please, backport the following patch to fix this issue:
> 
> commit 6dbd3e66e7785a2f055bf84d98de9b8fd31ff3f5
> Author: Stefano Garzarella <sgarzare@xxxxxxxxxx>
> Date:   Tue Jul 30 17:43:33 2019 +0200
> 
>     vhost/vsock: split packets to send using multiple buffers
>    
>     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 <sgarzare@xxxxxxxxxx>
>     Reviewed-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>
>     Acked-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
>     Signed-off-by: David S. Miller <davem@xxxxxxxxxxxxx>
> 
> 
> The commit applies and builds against 4.14, 4.19, and 5.3

Now queud up, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux