Re: [PATCH 12/13] vfio/mdev: consolidate all the description sysfs into the core code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
> Reviewed-by: Kirti Wankhede <kwankhede@xxxxxxxxxx>
> ---
>  .../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@xxxxxxxxxx>

Jason



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Kernel Development]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Info]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Linux Media]     [Device Mapper]

  Powered by Linux