Re: [PATCH vhost v5 00/10] virtio: drivers maintain dma info for premapped vq

2024-03-27 Thread Jason Wang
On Wed, Mar 27, 2024 at 4:07 PM Xuan Zhuo wrote: > > On Wed, 27 Mar 2024 15:50:17 +0800, Jason Wang wrote: > > On Wed, Mar 27, 2024 at 3:16 PM Xuan Zhuo > > wrote: > > > > > > On Tue, 26 Mar 2024 14:35:21 +0800, Jason Wang > > > wrote: > > > > On Mon, Mar 25, 2024 at 4:54 PM Xuan Zhuo > > >

Re: [PATCH vhost v5 00/10] virtio: drivers maintain dma info for premapped vq

2024-03-27 Thread Xuan Zhuo
On Wed, 27 Mar 2024 15:50:17 +0800, Jason Wang wrote: > On Wed, Mar 27, 2024 at 3:16 PM Xuan Zhuo wrote: > > > > On Tue, 26 Mar 2024 14:35:21 +0800, Jason Wang wrote: > > > On Mon, Mar 25, 2024 at 4:54 PM Xuan Zhuo > > > wrote: > > > > > > > > As discussed: > > > > > > > > http://lore.kernel.o

Re: [PATCH vhost v5 00/10] virtio: drivers maintain dma info for premapped vq

2024-03-27 Thread Jason Wang
On Wed, Mar 27, 2024 at 3:16 PM Xuan Zhuo wrote: > > On Tue, 26 Mar 2024 14:35:21 +0800, Jason Wang wrote: > > On Mon, Mar 25, 2024 at 4:54 PM Xuan Zhuo > > wrote: > > > > > > As discussed: > > > > > > http://lore.kernel.org/all/cacgkmevq0no8qgc46u4mgsmtud44fd_cflcpavmj3rhyqrz...@mail.gmail.com

Re: [PATCH vhost v5 00/10] virtio: drivers maintain dma info for premapped vq

2024-03-27 Thread Xuan Zhuo
On Tue, 26 Mar 2024 14:35:21 +0800, Jason Wang wrote: > On Mon, Mar 25, 2024 at 4:54 PM Xuan Zhuo wrote: > > > > As discussed: > > > > http://lore.kernel.org/all/cacgkmevq0no8qgc46u4mgsmtud44fd_cflcpavmj3rhyqrz...@mail.gmail.com > > > > If the virtio is premapped mode, the driver should manage th

Re: [PATCH vhost v5 00/10] virtio: drivers maintain dma info for premapped vq

2024-03-25 Thread Jason Wang
On Mon, Mar 25, 2024 at 4:54 PM Xuan Zhuo wrote: > > As discussed: > > http://lore.kernel.org/all/cacgkmevq0no8qgc46u4mgsmtud44fd_cflcpavmj3rhyqrz...@mail.gmail.com > > If the virtio is premapped mode, the driver should manage the dma info by > self. > So the virtio core should not store the dma

[PATCH vhost v5 00/10] virtio: drivers maintain dma info for premapped vq

2024-03-25 Thread Xuan Zhuo
As discussed: http://lore.kernel.org/all/cacgkmevq0no8qgc46u4mgsmtud44fd_cflcpavmj3rhyqrz...@mail.gmail.com If the virtio is premapped mode, the driver should manage the dma info by self. So the virtio core should not store the dma info. We can release the memory used to store the dma info. For