[PATCH vhost 11/17] virtio_ring: export premapped to driver by struct virtqueue
Xuan Zhuo
xuanzhuo at linux.alibaba.com
Wed Jan 31 19:17:15 PST 2024
On Wed, 31 Jan 2024 17:12:43 +0800, Jason Wang <jasowang at redhat.com> wrote:
> On Tue, Jan 30, 2024 at 7:43 PM Xuan Zhuo <xuanzhuo at linux.alibaba.com> wrote:
> >
> > Export the premapped to drivers, then drivers can check
> > the vq premapped mode after the find_vqs().
>
> This looks odd, it's the charge of the driver to set premapped, so it
> should know it?
If the use_dma_api is false, we can not enable the premapped mode.
Though we wrapped dma apis, but the AF_XDP use the default dma api directly.
As we discussed, we just work in premapped mode when the use_dma_api is true.
Thanks.
>
> Thanks
>
More information about the linux-um
mailing list