[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250827125458.6bc70a1d.alex.williamson@redhat.com>
Date: Wed, 27 Aug 2025 12:54:58 -0600
From: Alex Williamson <alex.williamson@...hat.com>
To: Alex Mastro <amastro@...com>
Cc: Jonathan Corbet <corbet@....net>, Jason Gunthorpe <jgg@...pe.ca>, Keith
Busch <kbusch@...nel.org>, <linux-kernel@...r.kernel.org>,
<linux-fsdevel@...r.kernel.org>, <linux-doc@...r.kernel.org>,
<kvm@...r.kernel.org>
Subject: Re: [PATCH v4] vfio/pci: print vfio-device syspath to fdinfo
On Mon, 4 Aug 2025 12:44:31 -0700
Alex Mastro <amastro@...com> 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@...com>
> ---
> Changes in v4:
> - Remove changes to vfio.h
> - Link to v3: https://lore.kernel.org/r/20250801-show-fdinfo-v3-1-165dfcab89b9@fb.com
Applied to vfio next branch for v6.18. Thanks,
Alex
Powered by blists - more mailing lists