Yi Liu 3c28a76124 vfio: Add struct device to vfio_device
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.

Add Documentation/ABI/testing/sysfs-devices-vfio-dev.

Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20220921104401.38898-16-kevin.tian@intel.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2022-09-21 14:15:11 -06:00
..
2022-07-03 18:08:49 -07:00
2021-09-21 18:31:16 +02:00
2018-02-23 08:17:28 -07:00
2017-10-30 11:46:04 +01:00
2021-11-06 14:36:12 -07:00
2019-07-15 20:44:49 -07:00
2018-03-17 14:20:54 +01:00
2019-06-15 08:12:45 +02:00
2019-06-15 08:12:45 +02:00
2020-02-22 09:25:42 +08:00
2021-12-23 20:23:42 +01:00
2021-05-05 11:27:24 -07:00