[Intel-gfx] [PATCH 16/18] vfio/gvt: Use mdev_get_type_group_id()

Christoph Hellwig hch at lst.de
Tue Mar 23 19:28:40 UTC 2021


On Tue, Mar 23, 2021 at 02:55:33PM -0300, Jason Gunthorpe wrote:
> intel_gvt_init_vgpu_type_groups() makes gvt->types 1:1 with the
> supported_type_groups array, so the type_group_id is also the index into
> gvt->types. Use it directly and remove the string matching.
> 
> Signed-off-by: Jason Gunthorpe <jgg at nvidia.com>
> ---
>  drivers/gpu/drm/i915/gvt/gvt.c   | 24 +++++++-----------------
>  drivers/gpu/drm/i915/gvt/gvt.h   |  4 ++--
>  drivers/gpu/drm/i915/gvt/kvmgt.c |  5 ++---
>  3 files changed, 11 insertions(+), 22 deletions(-)

Looks good,

Reviewed-by: Christoph Hellwig <hch at lst.de>


More information about the Intel-gfx mailing list