Displaying 3 results from an estimated 3 matches for "virtqueue_add_split_prepare".
2023 Feb 20
2
[PATCH vhost 01/10] virtio_ring: split: refactor virtqueue_add_split() for premapped
...t;xuanzhuo at linux.alibaba.com> wrote:
>
> DMA-related logic is separated from the virtqueue_add_split to prepare
> for subsequent support for premapped.
The patch seems to do more than what is described here.
To simplify reviewers, I'd suggest to split this patch into three:
1) virtqueue_add_split_prepare() (could we have a better name?)
2) virtqueue_map_sgs()
3) virtqueue_add_split_vring()
(Or only factor DMA parts out, I haven't gone through the reset of the patches)
Thanks
>
> Signed-off-by: Xuan Zhuo <xuanzhuo at linux.alibaba.com>
> ---
> drivers/virtio/virtio_ring.c...
2023 Feb 20
1
[PATCH vhost 04/10] virtio_ring: split: introduce virtqueue_add_split_premapped()
...struct vring_virtqueue *vq = to_vvq(_vq);
> > + struct vring_desc *desc;
> > + int head;
> > + int err;
> > +
> > + START_USE(vq);
> > +
> > + /* check vq state and try to alloc desc for indirect. */
> > + err = virtqueue_add_split_prepare(vq, total_sg, out_sgs, data, ctx, gfp, &desc);
> > + if (err)
> > + goto end;
> > +
> > + head = vq->free_head;
> > + err = virtqueue_add_split_vring(vq, sgs, total_sg, out_sgs, in_sgs, desc);
> > + if (err)
> >...
2023 Feb 14
11
[PATCH vhost 00/10] virtio core prepares for AF_XDP
XDP socket(AF_XDP) is an excellent bypass kernel network framework. The zero
copy feature of xsk (XDP socket) needs to be supported by the driver. The
performance of zero copy is very good.
ENV: Qemu with vhost.
vhost cpu | Guest APP CPU |Guest Softirq CPU | PPS
-----------------------------|---------------|------------------|------------
xmit by sockperf: 90% | 100%