Re: [PATCH vhost v2 04/12] virtio_ring: split: support premapped

2023-03-14 Thread Jason Wang
On Tue, Mar 14, 2023 at 3:32 PM Jason Wang wrote: > > On Wed, Mar 8, 2023 at 2:44 PM Xuan Zhuo wrote: > > > > virtio core only supports virtual addresses, dma is completed in virtio > > core. > > > > In some scenarios (such as the AF_XDP), the memory is allocated > > and DMA is completed in advan

Re: [PATCH vhost v2 04/12] virtio_ring: split: support premapped

2023-03-14 Thread Jason Wang
On Wed, Mar 8, 2023 at 2:44 PM Xuan Zhuo wrote: > > virtio core only supports virtual addresses, dma is completed in virtio > core. > > In some scenarios (such as the AF_XDP), the memory is allocated > and DMA is completed in advance, so it is necessary for us to support Should be "DMA mapping is

[PATCH vhost v2 04/12] virtio_ring: split: support premapped

2023-03-07 Thread Xuan Zhuo
virtio core only supports virtual addresses, dma is completed in virtio core. In some scenarios (such as the AF_XDP), the memory is allocated and DMA is completed in advance, so it is necessary for us to support passing the DMA address to virtio core. Drives can use sg->dma_address to pass the ma