Displaying 9 results from an estimated 9 matches for "virtio_dma_map".
2023 Feb 20
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
On Mon, 20 Feb 2023 13:38:24 +0800, Jason Wang <jasowang at redhat.com> wrote:
> On Tue, Feb 14, 2023 at 3:27 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
> >
> > Added virtio_dma_map() to map DMA addresses for virtual memory in
> > advance. The purpose is to keep memory mapped across multiple add/get
> > buf operations.
>
> I wonder if instead of exporting helpers like this, it might be simple
> to just export dma_dev then the upper layer can use DMA API at...
2023 Feb 21
2
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...2023 at 3:02 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
>
> On Mon, 20 Feb 2023 13:38:24 +0800, Jason Wang <jasowang at redhat.com> wrote:
> > On Tue, Feb 14, 2023 at 3:27 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
> > >
> > > Added virtio_dma_map() to map DMA addresses for virtual memory in
> > > advance. The purpose is to keep memory mapped across multiple add/get
> > > buf operations.
> >
> > I wonder if instead of exporting helpers like this, it might be simple
> > to just export dma_dev then the upper...
2023 Feb 21
2
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...2023 at 3:02 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
>
> On Mon, 20 Feb 2023 13:38:24 +0800, Jason Wang <jasowang at redhat.com> wrote:
> > On Tue, Feb 14, 2023 at 3:27 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
> > >
> > > Added virtio_dma_map() to map DMA addresses for virtual memory in
> > > advance. The purpose is to keep memory mapped across multiple add/get
> > > buf operations.
> >
> > I wonder if instead of exporting helpers like this, it might be simple
> > to just export dma_dev then the upper...
2023 Mar 02
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...libaba.com> wrote:
> > >
> > > On Mon, 20 Feb 2023 13:38:24 +0800, Jason Wang <jasowang at redhat.com> wrote:
> > > > On Tue, Feb 14, 2023 at 3:27 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
> > > > >
> > > > > Added virtio_dma_map() to map DMA addresses for virtual memory in
> > > > > advance. The purpose is to keep memory mapped across multiple add/get
> > > > > buf operations.
> > > >
> > > > I wonder if instead of exporting helpers like this, it might be simple
> &g...
2023 Mar 02
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...; > > >
> > > > On Mon, 20 Feb 2023 13:38:24 +0800, Jason Wang <jasowang at redhat.com> wrote:
> > > > > On Tue, Feb 14, 2023 at 3:27 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
> > > > > >
> > > > > > Added virtio_dma_map() to map DMA addresses for virtual memory in
> > > > > > advance. The purpose is to keep memory mapped across multiple add/get
> > > > > > buf operations.
> > > > >
> > > > > I wonder if instead of exporting helpers like this, it mig...
2023 Mar 02
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...; > > > > On Mon, 20 Feb 2023 13:38:24 +0800, Jason Wang <jasowang at redhat.com> wrote:
> > > > > > On Tue, Feb 14, 2023 at 3:27 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
> > > > > > >
> > > > > > > Added virtio_dma_map() to map DMA addresses for virtual memory in
> > > > > > > advance. The purpose is to keep memory mapped across multiple add/get
> > > > > > > buf operations.
> > > > > >
> > > > > > I wonder if instead of exporting helpe...
2023 Mar 02
2
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...20 Feb 2023 13:38:24 +0800, Jason Wang <jasowang at redhat.com> wrote:
> > > > > > > > On Tue, Feb 14, 2023 at 3:27 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
> > > > > > > > >
> > > > > > > > > Added virtio_dma_map() to map DMA addresses for virtual memory in
> > > > > > > > > advance. The purpose is to keep memory mapped across multiple add/get
> > > > > > > > > buf operations.
> > > > > > > >
> > > > > > > >...
2023 Feb 14
11
[PATCH vhost 00/10] virtio core prepares for AF_XDP
...dd_indirect_packed()
virtio_ring: packed: refactor virtqueue_add_packed() for premapped
virtio_ring: split: introduce virtqueue_add_split_premapped()
virtio_ring: packed: introduce virtqueue_add_packed_premapped()
virtio_ring: introduce virtqueue_add_inbuf_premapped()
virtio_ring: add api virtio_dma_map() for advance dma
virtio_ring: introduce dma sync api for virtio
virtio_ring: correct the expression of the description of
virtqueue_resize()
virtio_ring: introduce virtqueue_reset()
drivers/virtio/virtio_ring.c | 792 ++++++++++++++++++++++++++++-------
include/linux/virtio.h |...
2023 Feb 20
1
[PATCH vhost 08/10] virtio_ring: introduce dma sync api for virtio
...);
> > +
> > MODULE_LICENSE("GPL");
> > diff --git a/include/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...