]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/mdev: Remove kobj from mdev_parent_ops->create()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 6 Apr 2021 19:40:40 +0000 (16:40 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 12 Apr 2021 16:36:00 +0000 (10:36 -0600)
commit7e15f2b16a656a10086c4f8d1cc1fed3a9847376
treeb9fbaa129e752cd51b85aef7b6dfdd672f6781ca
parent023df646a24ffd3a100f44d7f24094753fb5d23a
vfio/mdev: Remove kobj from mdev_parent_ops->create()

The kobj here is a type-erased version of mdev_type, which is already
stored in the struct mdev_device being passed in. It was only ever used to
compute the type_group_id, which is now extracted directly from the mdev.

Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Message-Id: <17-v2-d36939638fc6+d54-vfio2_jgg@nvidia.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/s390/cio/vfio_ccw_ops.c
drivers/s390/crypto/vfio_ap_ops.c
drivers/vfio/mdev/mdev_core.c
include/linux/mdev.h
samples/vfio-mdev/mbochs.c
samples/vfio-mdev/mdpy.c
samples/vfio-mdev/mtty.c