Re: [RFC 2/5] virtio_ring: introduce virtqueue_map/unmap_sgs()

2025-01-23 Thread Jason Wang
On Thu, Jan 23, 2025 at 3:32 PM Eugenio Perez Martin wrote: > > On Thu, Jan 23, 2025 at 2:51 AM Jason Wang wrote: > > > > On Thu, Jan 23, 2025 at 12:32 AM Eugenio Pérez wrote: > > > > > > From: Jason Wang > > > > > > Introduce new virtqueue DMA operations which allows the drivers that > > > wan

Re: [RFC 2/5] virtio_ring: introduce virtqueue_map/unmap_sgs()

2025-01-22 Thread Eugenio Perez Martin
On Thu, Jan 23, 2025 at 2:51 AM Jason Wang wrote: > > On Thu, Jan 23, 2025 at 12:32 AM Eugenio Pérez wrote: > > > > From: Jason Wang > > > > Introduce new virtqueue DMA operations which allows the drivers that > > want to make use of the premapping API but operate at the sg level. > > > > Note t

Re: [RFC 2/5] virtio_ring: introduce virtqueue_map/unmap_sgs()

2025-01-22 Thread Jason Wang
On Thu, Jan 23, 2025 at 12:32 AM Eugenio Pérez wrote: > > From: Jason Wang > > Introduce new virtqueue DMA operations which allows the drivers that > want to make use of the premapping API but operate at the sg level. > > Note that we still follow the assumtions if virtqueue_add() so > dma_map_sg