Re: [PATCH vhost v10 02/10] virtio_ring: introduce virtqueue_set_premapped()

2023-06-27 Thread Xuan Zhuo
On Tue, 27 Jun 2023 10:56:54 -0400, "Michael S. Tsirkin" wrote: > On Tue, Jun 27, 2023 at 04:50:01PM +0800, Xuan Zhuo wrote: > > On Tue, 27 Jun 2023 16:03:23 +0800, Jason Wang wrote: > > > On Fri, Jun 2, 2023 at 5:22 PM Xuan Zhuo > > > wrote: > > > > > > > > This helper allows the driver chang

Re: [PATCH vhost v10 02/10] virtio_ring: introduce virtqueue_set_premapped()

2023-06-27 Thread Michael S. Tsirkin
On Tue, Jun 27, 2023 at 04:50:01PM +0800, Xuan Zhuo wrote: > On Tue, 27 Jun 2023 16:03:23 +0800, Jason Wang wrote: > > On Fri, Jun 2, 2023 at 5:22 PM Xuan Zhuo wrote: > > > > > > This helper allows the driver change the dma mode to premapped mode. > > > Under the premapped mode, the virtio core d

Re: [PATCH vhost v10 02/10] virtio_ring: introduce virtqueue_set_premapped()

2023-06-27 Thread Xuan Zhuo
On Tue, 27 Jun 2023 16:03:23 +0800, Jason Wang wrote: > On Fri, Jun 2, 2023 at 5:22 PM Xuan Zhuo wrote: > > > > This helper allows the driver change the dma mode to premapped mode. > > Under the premapped mode, the virtio core do not do dma mapping > > internally. > > > > This just work when the

Re: [PATCH vhost v10 02/10] virtio_ring: introduce virtqueue_set_premapped()

2023-06-27 Thread Jason Wang
On Fri, Jun 2, 2023 at 5:22 PM Xuan Zhuo wrote: > > This helper allows the driver change the dma mode to premapped mode. > Under the premapped mode, the virtio core do not do dma mapping > internally. > > This just work when the use_dma_api is true. If the use_dma_api is false, > the dma options i

[PATCH vhost v10 02/10] virtio_ring: introduce virtqueue_set_premapped()

2023-06-02 Thread Xuan Zhuo
This helper allows the driver change the dma mode to premapped mode. Under the premapped mode, the virtio core do not do dma mapping internally. This just work when the use_dma_api is true. If the use_dma_api is false, the dma options is not through the DMA APIs, that is not the standard way of th