On Mon, 4 Aug 2025 12:44:31 -0700 Alex Mastro <amastro@xxxxxx> wrote: > Print the PCI device syspath to a vfio device's fdinfo. This enables tools > to query which device is associated with a given vfio device fd. > > This results in output like below: > > $ cat /proc/"$SOME_PID"/fdinfo/"$VFIO_FD" | grep vfio > vfio-device-syspath: /sys/devices/pci0000:e0/0000:e0:01.1/0000:e1:00.0/0000:e2:05.0/0000:e8:00.0 > > Signed-off-by: Alex Mastro <amastro@xxxxxx> > --- > Changes in v4: > - Remove changes to vfio.h > - Link to v3: https://lore.kernel.org/r/20250801-show-fdinfo-v3-1-165dfcab89b9@xxxxxx Applied to vfio next branch for v6.18. Thanks, Alex