]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: Add struct device to vfio_device
authorYi Liu <yi.l.liu@intel.com>
Wed, 21 Sep 2022 10:44:01 +0000 (18:44 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 21 Sep 2022 20:15:11 +0000 (14:15 -0600)
commitee7b98cb6c8325f183ff746e44357a6d45ca71eb
tree54a46e4647055d4612a3f0edeba28a39da6c8663
parent3499ebf2c4fe4d85f310badb1dda4feb2abc5f76
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>
Documentation/ABI/testing/sysfs-devices-vfio-dev [new file with mode: 0644]
MAINTAINERS
drivers/vfio/vfio_main.c
include/linux/vfio.h