Re: [PATCH v3 17/18] vhost: don't bother copying iovecs in handle_rx(), kill memcpy_toiovecend()

2015-02-04 Thread Michael S. Tsirkin
> if (likely(mergeable) && > - memcpy_toiovecend(nvq->hdr, (unsigned char *)&headcount, > - offsetof(typeof(hdr), num_buffers), > - sizeof hdr.num_buffers)) { > + copy_to_iter(&headcoun

Re: [PATCH v3 17/18] vhost: don't bother copying iovecs in handle_rx(), kill memcpy_toiovecend()

2015-02-04 Thread Michael S. Tsirkin
On Wed, Feb 04, 2015 at 06:40:08AM +, Al Viro wrote: > From: Al Viro > > Cc: Michael S. Tsirkin > Cc: kvm@vger.kernel.org > Cc: virtualizat...@lists.linux-foundation.org > Signed-off-by: Al Viro Acked-by: Michael S. Tsirkin > --- > drivers/vhost/net.c | 82 > +++

[PATCH v3 17/18] vhost: don't bother copying iovecs in handle_rx(), kill memcpy_toiovecend()

2015-02-03 Thread Al Viro
From: Al Viro Cc: Michael S. Tsirkin Cc: kvm@vger.kernel.org Cc: virtualizat...@lists.linux-foundation.org Signed-off-by: Al Viro --- drivers/vhost/net.c | 82 +++-- include/linux/uio.h | 3 -- lib/iovec.c | 26 - 3 files