Xuan Zhuo
2023-Apr-11 06:33 UTC
[PATCH vhost v6 08/11] virtio_ring: introduce virtqueue_dma_dev()
On Mon, 10 Apr 2023 23:30:29 -0700, Christoph Hellwig <hch at infradead.org> wrote:> > > Can you please explain what you're even trying to do? > > > > I want to force a device use direct dma map. > > You fundamentally can't do that. It can't work.Do you mean my idea is wrong, right? Can you explain it? Why can't we support a device that uses only dirct map? Thanks.> _______________________________________________ > Virtualization mailing list > Virtualization at lists.linux-foundation.org > https://lists.linuxfoundation.org/mailman/listinfo/virtualization
Christoph Hellwig
2023-Apr-11 06:45 UTC
[PATCH vhost v6 08/11] virtio_ring: introduce virtqueue_dma_dev()
On Tue, Apr 11, 2023 at 02:33:29PM +0800, Xuan Zhuo wrote:> Do you mean my idea is wrong, right? > > Can you explain it? Why can't we support a device that uses only dirct map?If a direct map or not is used is a decision done by the platform code, often based on firmware tables. You can't just override that.