On Wed, Jul 23, 2025 at 01:03:47AM -0300, Jason Gunthorpe wrote: > On Mon, Jul 21, 2025 at 09:49:04AM +0300, Leon Romanovsky wrote: > > > In fact, hmm_range_fault doesn't have information about the destination > > > device that will perform the DMA mapping. > > > > So probably you need to teach HMM to perform page_faults on specific device. > > That isn't how the HMM side is supposed to work, this API is just > giving the one and only P2P page that is backing the device private.
I know, but somehow you need to say: "please give me p2p pages for specific device and not random device in the system as it is now". This is what is missing from my PoV. Thanks