Re: [PATCH net-next 2/2] vhost-net: reduce one userspace copy when building XDP buff

2025-06-15 Thread Jason Wang
On Fri, Jun 13, 2025 at 10:16 AM Willem de Bruijn wrote: > > Jason Wang wrote: > > 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

Re: [PATCH net-next 2/2] vhost-net: reduce one userspace copy when building XDP buff

2025-06-13 Thread Willem de Bruijn
Jason Wang wrote: > 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

[PATCH net-next 2/2] vhost-net: reduce one userspace copy when building XDP buff

2025-06-12 Thread Jason Wang
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 over