diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2021-04-06 21:40:39 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2021-04-12 18:36:00 +0200 |
commit | 383987fd15ba8f37bdc20994dadeb13df76342d6 (patch) | |
tree | 12377bd6d87875cd70941388554983e27fd1c212 /drivers/s390 | |
parent | vfio/gvt: Make DRM_I915_GVT depend on VFIO_MDEV (diff) | |
download | linux-383987fd15ba8f37bdc20994dadeb13df76342d6.tar.xz linux-383987fd15ba8f37bdc20994dadeb13df76342d6.zip |
vfio/gvt: Use mdev_get_type_group_id()
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.
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Message-Id: <16-v2-d36939638fc6+d54-vfio2_jgg@nvidia.com>
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions