> if (likely(mergeable) &&
> - memcpy_toiovecend(nvq->hdr, (unsigned char *)&headcount,
> - offsetof(typeof(hdr), num_buffers),
> - sizeof hdr.num_buffers)) {
> + copy_to_iter(&headcoun
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
> +++
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