On Mon, 10 Apr 2023 23:45:33 -0700, Christoph Hellwig <hch@xxxxxxxxxxxxx> wrote: > 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. Can Virtio Device set its own dma_ops? It is a device on the virtual bus. It sets its own DMA_OPS. I think it is reasonable. Thanks. _______________________________________________ Virtualization mailing list Virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/virtualization