mirror-linux/drivers/vhost
Jason Wang 97b2409f28 vhost-net: reduce one userspace copy when building XDP buff
We used to do twice copy_from_iter() to copy virtio-net and packet
separately. This introduce overheads for userspace access hardening as
well as SMAP (for x86 it's stac/clac). So this patch tries to use one
copy_from_iter() to copy them once and move the virtio-net header
afterwards to reduce overheads.

Testpmd + vhost_net shows 10% improvement from 5.45Mpps to 6.0Mpps.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/20250701010352.74515-2-jasowang@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-07-02 15:29:46 -07:00
..
Kconfig vhost-scsi: Dynamically allocate scatterlists 2025-02-25 07:10:46 -05:00
Makefile
iotlb.c
net.c vhost-net: reduce one userspace copy when building XDP buff 2025-07-02 15:29:46 -07:00
scsi.c vhost-scsi: log event queue write descriptors 2025-05-18 17:25:24 -04:00
test.c
test.h
vdpa.c vhost_vdpa: assign irq bypass producer token correctly 2024-09-10 02:51:47 -04:00
vhost.c vhost: modify vhost_log_write() for broader users 2025-05-18 17:25:24 -04:00
vhost.h vhost_task: Handle SIGKILL by flushing work and exiting 2024-05-22 08:31:15 -04:00
vringh.c vringh: use bvec_kmap_local 2025-05-27 10:27:53 -04:00
vsock.c vsock/virtio: add SIOCOUTQ support for all virtio based transports 2024-08-02 09:20:28 +01:00