linux-stable/drivers/vhost
Stefano Garzarella 70d594d17e vhost/vsock: split packets to send using multiple buffers
commit 6dbd3e66e7 upstream.

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@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-01 09:16:08 +01:00
..
Kconfig vhost: allow vhost-scsi driver to be built-in 2018-08-22 01:01:32 +03:00
Kconfig.vringh
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
net.c vhost_net: fix possible infinite loop 2019-08-04 09:30:55 +02:00
scsi.c vhost: scsi: add weight support 2019-08-04 09:30:55 +02:00
test.c vhost/test: fix build for vhost test - again 2019-09-16 08:21:40 +02:00
test.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
vhost.c vhost: make sure log_num < in_num 2019-09-16 08:22:25 +02:00
vhost.h vhost: introduce vhost_exceeds_weight() 2019-08-04 09:30:55 +02:00
vringh.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
vsock.c vhost/vsock: split packets to send using multiple buffers 2019-12-01 09:16:08 +01:00