Re: [PATCH 15/15] vfio: Add struct device to vfio_device

From: Jason Gunthorpe
Date: Tue Aug 30 2022 - 19:53:26 EST


On Tue, Aug 30, 2022 at 04:18:38PM -0600, Alex Williamson wrote:
> On Sun, 28 Aug 2022 01:10:37 +0800
> Kevin Tian <kevin.tian@xxxxxxxxx> wrote:
>
> > From: Yi Liu <yi.l.liu@xxxxxxxxx>
> >
> > and replace kref. With it a 'vfio-dev/vfioX' node is created under the
> > sysfs path of the parent, indicating the device is bound to a vfio
> > driver, e.g.:
> >
> > /sys/devices/pci0000\:6f/0000\:6f\:01.0/vfio-dev/vfio0
> >
> > It is also a preparatory step toward adding cdev for supporting future
> > device-oriented uAPI.
>
> Shall we start Documentation/ABI/testing/vfio-dev now? Thanks.

I always thought that was something to use when adding new custom
sysfs attributes?

Here we are just creating a standard struct device with its standard
sysfs?

Jason