On Mon, 10 Apr 2023 23:20:59 -0700, Christoph Hellwig <hch@xxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxxxxxxxxx > https://lists.linuxfoundation.org/mailman/listinfo/virtualization _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization