Re: [PATCH v2 3/3] vfio/pci: Allow MMIO regions to be exported through dma-buf

2024-06-24 Thread Leon Romanovsky
On Sun, Jun 23, 2024 at 11:53:11PM -0700, Vivek Kasireddy wrote: > From Jason Gunthorpe: > "dma-buf has become a way to safely acquire a handle to non-struct page > memory that can still have lifetime controlled by the exporter. Notably > RDMA can now import dma-buf FDs and build them into MRs whic

Re: [PATCH v2 3/3] vfio/pci: Allow MMIO regions to be exported through dma-buf

2024-06-24 Thread Daniel Vetter
On Sun, Jun 23, 2024 at 11:53:11PM -0700, Vivek Kasireddy wrote: > From Jason Gunthorpe: > "dma-buf has become a way to safely acquire a handle to non-struct page > memory that can still have lifetime controlled by the exporter. Notably > RDMA can now import dma-buf FDs and build them into MRs whic

[PATCH v2 3/3] vfio/pci: Allow MMIO regions to be exported through dma-buf

2024-06-24 Thread Vivek Kasireddy
>From Jason Gunthorpe: "dma-buf has become a way to safely acquire a handle to non-struct page memory that can still have lifetime controlled by the exporter. Notably RDMA can now import dma-buf FDs and build them into MRs which allows for PCI P2P operations. Extend this to allow vfio-pci to export