search for: virtio_get_dma_dev

Displaying 6 results from an estimated 6 matches for "virtio_get_dma_dev".

2023 Mar 02
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...p, but > > > also check whether DMA is used. > > > > We should let the DMA API decide by exporting a correct dma_dev. E.g > > when ACCESS_PLATFORM is not negotiated, advertising a DMA dev without > > dma_ops. > > > Do you mean we provide this API? > > virtio_get_dma_dev() > > If it returns NULL, the caller will use the physical memory address directly. If > this func return a dma_dev, the caller should use DMA API. cc the XDP_SOCKET's maintainers. First of all, Jason does not want to encapsulate the API of DMA by Virtio. It is best to pass DMA Devi...
2023 Mar 02
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...is used. > > > > > > We should let the DMA API decide by exporting a correct dma_dev. E.g > > > when ACCESS_PLATFORM is not negotiated, advertising a DMA dev without > > > dma_ops. > > > > > > Do you mean we provide this API? > > > > virtio_get_dma_dev() > > > > If it returns NULL, the caller will use the physical memory address directly. If > > this func return a dma_dev, the caller should use DMA API. > > > cc the XDP_SOCKET's maintainers. > > First of all, Jason does not want to encapsulate the API of DMA b...
2023 Mar 02
2
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
....g > > > > > > when ACCESS_PLATFORM is not negotiated, advertising a DMA dev without > > > > > > dma_ops. > > > > > > > > > > > > > > > Do you mean we provide this API? > > > > > > > > > > virtio_get_dma_dev() > > > > > > > > > > If it returns NULL, the caller will use the physical memory address directly. If > > > > > this func return a dma_dev, the caller should use DMA API. > > > > > > > > > > > > cc the XDP_SOCKET'...
2023 Mar 02
1
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
...gt; We should let the DMA API decide by exporting a correct dma_dev. E.g > > > > when ACCESS_PLATFORM is not negotiated, advertising a DMA dev without > > > > dma_ops. > > > > > > > > > Do you mean we provide this API? > > > > > > virtio_get_dma_dev() > > > > > > If it returns NULL, the caller will use the physical memory address directly. If > > > this func return a dma_dev, the caller should use DMA API. > > > > > > cc the XDP_SOCKET's maintainers. > > > > First of all, Jason does...
2023 Feb 21
2
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
On Mon, Feb 20, 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.
2023 Feb 21
2
[PATCH vhost 07/10] virtio_ring: add api virtio_dma_map() for advance dma
On Mon, Feb 20, 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.