[PATCH 12/13] vfio/mdev: consolidate all the description sysfs into the core code
Jason Gunthorpe
jgg at nvidia.com
Thu Jun 23 21:37:52 UTC 2022
On Tue, Jun 14, 2022 at 06:54:27AM +0200, Christoph Hellwig wrote:
> Every driver just emits a string, simply add a method to the mdev_driver
> to return it and provide a standard sysfs show function.
>
> Remove the now unused types_attrs field in struct mdev_driver and the
> support code for it.
>
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> Reviewed-by: Kirti Wankhede <kwankhede at nvidia.com>
> ---
> .../driver-api/vfio-mediated-device.rst | 4 +-
> drivers/gpu/drm/i915/gvt/kvmgt.c | 18 +++------
> drivers/vfio/mdev/mdev_driver.c | 2 +-
> drivers/vfio/mdev/mdev_sysfs.c | 40 +++++++++++++++----
> include/linux/mdev.h | 19 +--------
> samples/vfio-mdev/mbochs.c | 11 +----
> samples/vfio-mdev/mdpy.c | 11 +----
> 7 files changed, 46 insertions(+), 59 deletions(-)
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Jason
More information about the intel-gvt-dev
mailing list