On Tue, Sep 06, 2022 at 12:38:44PM +0200, Christian König wrote: > The problem is once more that this is MMIO space, in other words register > BARs which needs to be exported/imported. Everything used for P2P is bar space. > Adding struct pages for it generally sounds like the wrong approach here. > You can't even access this with the CPU or would trigger potentially > unwanted hardware actions. How would an access from the CPU vs anther device make any difference? > Would you mind if I start to tackle this problem? Yes, I've been waiting forever for someone to tacke how the scatterlist is abused in dma-buf..