Re: [PATCH vhost v6 07/10] virtio: find_vqs: add new parameter premapped

2024-03-28 Thread Jason Wang
On Wed, Mar 27, 2024 at 7:14 PM Xuan Zhuo wrote: > > If the premapped mode is enabled, the dma array(struct vring_desc_dma) of > virtio core will not be allocated. That is judged when find_vqs() is > called. To avoid allocating dma array in find_vqs() and releasing it > immediately by virtqueue_se

[PATCH vhost v6 07/10] virtio: find_vqs: add new parameter premapped

2024-03-27 Thread Xuan Zhuo
If the premapped mode is enabled, the dma array(struct vring_desc_dma) of virtio core will not be allocated. That is judged when find_vqs() is called. To avoid allocating dma array in find_vqs() and releasing it immediately by virtqueue_set_dma_premapped(). This patch introduces a new parameter to