RE: [PATCH v8 09/11] vfio/pci: Enable peer-to-peer DMA transactions by default

Tian, Kevin
2025-11-18T07:58:55Z

> From: Leon Romanovsky <leon@kernel.org>
> Sent: Tuesday, November 11, 2025 5:58 PM
>
> From: Leon Romanovsky <leonro@nvidia.com>

not required with only your own s-o-b

> @@ -2090,6 +2092,9 @@ int vfio_pci_core_init_dev(struct vfio_device
> *core_vdev)
> INIT_LIST_HEAD(&vdev->dummy_resources_list);
> INIT_LIST_HEAD(&vdev->ioeventfds_list);
> INIT_LIST_HEAD(&vdev->sriov_pfs_item);
> + ret = pcim_p2pdma_init(vdev->pdev);
> + if (ret && ret != -EOPNOTSUPP)
> + return ret;

Reading the commit msg seems -EOPNOTSUPP is only returned for fake
PCI devices, otherwise it implies regression. better add a comment for it?

otherwise,

Reviewed-by: Kevin Tian <kevin.tian@intel.com>