[PATCH 10/13] vfio/mdev: consolidate all the name sysfs into the core code

Jason Gunthorpe jgg at nvidia.com
Thu Jun 23 21:32:36 UTC 2022


On Tue, Jun 14, 2022 at 06:54:25AM +0200, Christoph Hellwig wrote:
> Every driver just emits a static string, simply add a field to the
> mdev_type for the driver to fill out or fall back to the sysfs name and
> provide a standard sysfs show function.
> 
> Signed-off-by: Christoph Hellwig <hch at lst.de>
> Reviewed-by: Kirti Wankhede <kwankhede at nvidia.com>
> Reviewed-by: Kevin Tian <kevin.tian at intel.com>
> ---
>  .../driver-api/vfio-mediated-device.rst       |  2 +-
>  drivers/gpu/drm/i915/gvt/kvmgt.c              |  8 -------
>  drivers/s390/cio/vfio_ccw_ops.c               |  9 +-------
>  drivers/s390/crypto/vfio_ap_ops.c             |  9 --------
>  drivers/vfio/mdev/mdev_sysfs.c                | 11 ++++++++++
>  include/linux/mdev.h                          |  1 +
>  samples/vfio-mdev/mbochs.c                    | 20 ++++--------------
>  samples/vfio-mdev/mdpy.c                      | 21 +++++--------------
>  samples/vfio-mdev/mtty.c                      | 18 ++++------------
>  9 files changed, 27 insertions(+), 72 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>

Jason


More information about the intel-gvt-dev mailing list