[PATCH 09/13] vfio/mdev: consolidate all the device_api sysfs into the core code
Tian, Kevin
kevin.tian at intel.com
Tue Jun 14 10:10:52 UTC 2022
> From: Christoph Hellwig
> Sent: Tuesday, June 14, 2022 12:54 PM
>
> From: Jason Gunthorpe <jgg at nvidia.com>
>
> Every driver just emits a static string, simply feed it through the ops
> and provide a standard sysfs show function.
>
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
Reviewed-by: Kevin Tian <kevin.tian at intel.com>, with one nit:
> /**
> * struct mdev_driver - Mediated device driver
> + * @device_api: String to return for the device_api sysfs
> * @probe: called when new device created
> * @remove: called when device removed
> * @types_attrs: attributes to the type kobjects.
> * @driver: device driver structure
> **/
Use same indent here.
More information about the intel-gvt-dev
mailing list