Christoph Hellwig
2023-Apr-11 06:20 UTC
[PATCH vhost v6 08/11] virtio_ring: introduce virtqueue_dma_dev()
On Tue, Apr 11, 2023 at 02:11:17PM +0800, Xuan Zhuo wrote:> NO, all dma maping is done inside xdp socket. That is done > when setup.That is just completely broken, virtio or not. Highlevel code like sockets must never do dma mappings themselves.
Xuan Zhuo
2023-Apr-11 06:28 UTC
[PATCH vhost v6 08/11] virtio_ring: introduce virtqueue_dma_dev()
On Mon, 10 Apr 2023 23:20:59 -0700, Christoph Hellwig <hch at infradead.org> wrote:> On Tue, Apr 11, 2023 at 02:11:17PM +0800, Xuan Zhuo wrote: > > NO, all dma maping is done inside xdp socket. That is done > > when setup. > > That is just completely broken, virtio or not. Highlevel code like > sockets must never do dma mappings themselves.AF_XDP provides some API for net driver. This API will do dma map or dma sync. cc AF_XDP maintainers. If we cannot set Virtio Deivce to a direct DMA device, then we can only make some modifications in AF_XDP. Thanks.> _______________________________________________ > Virtualization mailing list > Virtualization at lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/virtualization