Displaying 9 results from an estimated 9 matches for "virtio_dma_mapping_error".
2023 Feb 21
2
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...virt_to_page(addr);
> > > + offset = offset_in_page(addr);
> > > +
> > > + return virtio_dma_map_page(dev, page, offset, length, dir);
> > > +}
> > > +EXPORT_SYMBOL_GPL(virtio_dma_map);
> > > +
> > > +/**
> > > + * virtio_dma_mapping_error - check dma address
> > > + * @dev: virtio device
> > > + * @addr: DMA address
> > > + *
> > > + * This API is only for pre-mapped buffers, for non premapped buffers virtio
> > > + * core handles DMA API internally.
> > > + *
> > > + *...
2023 Feb 21
2
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...virt_to_page(addr);
> > > + offset = offset_in_page(addr);
> > > +
> > > + return virtio_dma_map_page(dev, page, offset, length, dir);
> > > +}
> > > +EXPORT_SYMBOL_GPL(virtio_dma_map);
> > > +
> > > +/**
> > > + * virtio_dma_mapping_error - check dma address
> > > + * @dev: virtio device
> > > + * @addr: DMA address
> > > + *
> > > + * This API is only for pre-mapped buffers, for non premapped buffers virtio
> > > + * core handles DMA API internally.
> > > + *
> > > + *...
2023 Feb 20
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...et;
> > +
> > + page = virt_to_page(addr);
> > + offset = offset_in_page(addr);
> > +
> > + return virtio_dma_map_page(dev, page, offset, length, dir);
> > +}
> > +EXPORT_SYMBOL_GPL(virtio_dma_map);
> > +
> > +/**
> > + * virtio_dma_mapping_error - check dma address
> > + * @dev: virtio device
> > + * @addr: DMA address
> > + *
> > + * This API is only for pre-mapped buffers, for non premapped buffers virtio
> > + * core handles DMA API internally.
> > + *
> > + * Returns 0 means dma valid. Other me...
2023 Mar 02
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...dr);
> > > > > +
> > > > > + return virtio_dma_map_page(dev, page, offset, length, dir);
> > > > > +}
> > > > > +EXPORT_SYMBOL_GPL(virtio_dma_map);
> > > > > +
> > > > > +/**
> > > > > + * virtio_dma_mapping_error - check dma address
> > > > > + * @dev: virtio device
> > > > > + * @addr: DMA address
> > > > > + *
> > > > > + * This API is only for pre-mapped buffers, for non premapped buffers virtio
> > > > > + * core handles DMA API...
2023 Mar 02
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...+
> > > > > > + return virtio_dma_map_page(dev, page, offset, length, dir);
> > > > > > +}
> > > > > > +EXPORT_SYMBOL_GPL(virtio_dma_map);
> > > > > > +
> > > > > > +/**
> > > > > > + * virtio_dma_mapping_error - check dma address
> > > > > > + * @dev: virtio device
> > > > > > + * @addr: DMA address
> > > > > > + *
> > > > > > + * This API is only for pre-mapped buffers, for non premapped buffers virtio
> > > > > >...
2023 Mar 02
2
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...e, offset, length, dir);
> > > > > > > > > +}
> > > > > > > > > +EXPORT_SYMBOL_GPL(virtio_dma_map);
> > > > > > > > > +
> > > > > > > > > +/**
> > > > > > > > > + * virtio_dma_mapping_error - check dma address
> > > > > > > > > + * @dev: virtio device
> > > > > > > > > + * @addr: DMA address
> > > > > > > > > + *
> > > > > > > > > + * This API is only for pre-mapped buffers, for...
2023 Mar 02
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...; > + return virtio_dma_map_page(dev, page, offset, length, dir);
> > > > > > > +}
> > > > > > > +EXPORT_SYMBOL_GPL(virtio_dma_map);
> > > > > > > +
> > > > > > > +/**
> > > > > > > + * virtio_dma_mapping_error - check dma address
> > > > > > > + * @dev: virtio device
> > > > > > > + * @addr: DMA address
> > > > > > > + *
> > > > > > > + * This API is only for pre-mapped buffers, for non premapped buffers virtio
> >...
2023 Feb 20
1
[PATCH vhost 08/10] virtio_ring: introduce dma sync api for virtio
...nclude/linux/virtio.h b/include/linux/virtio.h
> > index b5fa71476737..d0e707d744a0 100644
> > --- a/include/linux/virtio.h
> > +++ b/include/linux/virtio.h
> > @@ -225,4 +225,12 @@ dma_addr_t virtio_dma_map(struct device *dev, void *addr, unsigned int length,
> > int virtio_dma_mapping_error(struct device *dev, dma_addr_t addr);
> > void virtio_dma_unmap(struct device *dev, dma_addr_t dma, unsigned int length,
> > enum dma_data_direction dir);
> > +bool virtio_dma_need_sync(struct device *dev, dma_addr_t addr);
> > +void virtio_dma_sync_si...
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%