Re: [PATCH vhost v6 06/10] virtio_ring: no store dma info when unmap is not needed

2024-03-28 Thread Jason Wang
On Thu, Mar 28, 2024 at 3:42 PM Xuan Zhuo wrote: > > On Thu, 28 Mar 2024 15:06:33 +0800, Jason Wang wrote: > > On Wed, Mar 27, 2024 at 7:14 PM Xuan Zhuo > > wrote: > > > > > > As discussed: > > > http://lore.kernel.org/all/CACGkMEug-=C+VQhkMYSgUKMC==04m7-uem_yc21bggkkzh8...@mail.gmail.com > > >

Re: [PATCH vhost v6 06/10] virtio_ring: no store dma info when unmap is not needed

2024-03-28 Thread Xuan Zhuo
On Thu, 28 Mar 2024 15:06:33 +0800, Jason Wang wrote: > On Wed, Mar 27, 2024 at 7:14 PM Xuan Zhuo wrote: > > > > As discussed: > > http://lore.kernel.org/all/CACGkMEug-=C+VQhkMYSgUKMC==04m7-uem_yc21bggkkzh8...@mail.gmail.com > > > > When the vq is premapped mode, the driver manages the dma > > in

Re: [PATCH vhost v6 06/10] virtio_ring: no store dma info when unmap is not needed

2024-03-28 Thread Jason Wang
On Wed, Mar 27, 2024 at 7:14 PM Xuan Zhuo wrote: > > As discussed: > http://lore.kernel.org/all/CACGkMEug-=C+VQhkMYSgUKMC==04m7-uem_yc21bggkkzh8...@mail.gmail.com > > When the vq is premapped mode, the driver manages the dma > info is a good way. > > So this commit make the virtio core not to stor

[PATCH vhost v6 06/10] virtio_ring: no store dma info when unmap is not needed

2024-03-27 Thread Xuan Zhuo
As discussed: http://lore.kernel.org/all/CACGkMEug-=C+VQhkMYSgUKMC==04m7-uem_yc21bggkkzh8...@mail.gmail.com When the vq is premapped mode, the driver manages the dma info is a good way. So this commit make the virtio core not to store the dma info and release the memory which is used to store the