RE: [PATCH v5 6/9] vfio/pci: Provide a user-facing name for BAR mappings

From: Tian, Kevin

Date: Fri Jul 17 2026 - 04:09:13 EST


> From: Matt Evans <matt@xxxxxxxxxx>
> Sent: Thursday, July 16, 2026 1:47 AM
>
> Since converting BAR mmap()s to using DMABUFs, we lose the original
> device path in /proc/<pid>/maps, lsof, etc. Generate a debug-oriented
> synthetic 'filename' based on the cdev, plus BDF, plus resource index.
>
> This applies only to BAR mappings via the VFIO device fd, as
> explicitly-exported DMABUFs are named by userspace via the
> DMA_BUF_SET_NAME ioctl.
>
> Signed-off-by: Matt Evans <matt@xxxxxxxxxx>
> Reviewed-by: Pranjal Shrivastava <praan@xxxxxxxxxx>

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