Re: [PATCH v6 00/11] vfio/pci: Allow MMIO regions to be exported through dma-buf

Leon Romanovsky
2025-11-04T07:00:30Z

On Sun, Nov 02, 2025 at 10:00:48AM +0200, Leon Romanovsky wrote:

<...>

> ---
> Jason Gunthorpe (2):
> PCI/P2PDMA: Document DMABUF model
> vfio/nvgrace: Support get_dmabuf_phys
>
> Leon Romanovsky (7):
> PCI/P2PDMA: Separate the mmap() support from the core logic
> PCI/P2PDMA: Simplify bus address mapping API
> PCI/P2PDMA: Refactor to separate core P2P functionality from memory allocation
> PCI/P2PDMA: Provide an access to pci_p2pdma_map_type() function
> dma-buf: provide phys_vec to scatter-gather mapping routine
> vfio/pci: Enable peer-to-peer DMA transactions by default
> vfio/pci: Add dma-buf export support for MMIO regions
>
> Vivek Kasireddy (2):
> vfio: Export vfio device get and put registration helpers
> vfio/pci: Share the core device pointer while invoking feature functions

Hi,

Can we get Acked-by for p2pdma and DMABUF parts?

Thanks

>
> Documentation/driver-api/pci/p2pdma.rst | 95 +++++++---
> block/blk-mq-dma.c | 2 +-
> drivers/dma-buf/dma-buf.c | 235 ++++++++++++++++++++++++
> drivers/iommu/dma-iommu.c | 4 +-
> drivers/pci/p2pdma.c | 182 +++++++++++++-----
> drivers/vfio/pci/Kconfig | 3 +
> drivers/vfio/pci/Makefile | 1 +
> drivers/vfio/pci/nvgrace-gpu/main.c | 56 ++++++
> drivers/vfio/pci/vfio_pci.c | 5 +
> drivers/vfio/pci/vfio_pci_config.c | 22 ++-
> drivers/vfio/pci/vfio_pci_core.c | 56 ++++--
> drivers/vfio/pci/vfio_pci_dmabuf.c | 315 ++++++++++++++++++++++++++++++++
> drivers/vfio/pci/vfio_pci_priv.h | 23 +++
> drivers/vfio/vfio_main.c | 2 +
> include/linux/dma-buf.h | 18 ++
> include/linux/pci-p2pdma.h | 120 +++++++-----
> include/linux/vfio.h | 2 +
> include/linux/vfio_pci_core.h | 42 +++++
> include/uapi/linux/vfio.h | 27 +++
> kernel/dma/direct.c | 4 +-
> mm/hmm.c | 2 +-
> 21 files changed, 1077 insertions(+), 139 deletions(-)
> ---
> base-commit: 3a8660878839faadb4f1a6dd72c3179c1df56787
> change-id: 20251016-dmabuf-vfio-6cef732adf5a
>
> Best regards,
> --
> Leon Romanovsky <leonro@nvidia.com>
>
>