diff options
| author | Alex Mastro <amastro@fb.com> | 2025-08-04 12:44:31 -0700 |
|---|---|---|
| committer | Alex Williamson <alex.williamson@redhat.com> | 2025-08-25 09:54:00 -0600 |
| commit | 1e736f1489563470b58ede3fae5274a624280cf1 (patch) | |
| tree | 0b96f9e629508ab99db8827408bcbc81a60de0fa /rust/helpers/processor.c | |
| parent | 1b237f190eb3d36f52dffe07a40b5eb210280e00 (diff) | |
vfio/pci: print vfio-device syspath to fdinfo
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@fb.com>
Reviewed-by: Amit Machhiwal <amachhiw@linux.ibm.com>
Tested-by: Amit Machhiwal <amachhiw@linux.ibm.com>
Link: https://lore.kernel.org/r/20250804-show-fdinfo-v4-1-96b14c5691b3@fb.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'rust/helpers/processor.c')
0 files changed, 0 insertions, 0 deletions
