Thread (48 messages) 48 messages, 6 authors, 2024-02-21

Re: [PATCH vhost 11/17] virtio_ring: export premapped to driver by struct virtqueue

From: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Date: 2024-02-01 03:19:46
Also in: bpf, kvm, linux-remoteproc, linux-s390, linux-um, platform-driver-x86, virtualization

On Wed, 31 Jan 2024 17:12:43 +0800, Jason Wang [off-list ref] wrote:
On Tue, Jan 30, 2024 at 7:43 PM Xuan Zhuo [off-list ref] wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help