OSDN Git Service

vfio/ap_ops: Convert to use vfio_register_group_dev()
authorJason Gunthorpe <jgg@nvidia.com>
Mon, 23 Aug 2021 14:42:04 +0000 (11:42 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 25 Aug 2021 18:43:46 +0000 (12:43 -0600)
commiteb0feefd4c025b2697464d141f7ff178095f34df
treeeb9655cd2e7b6e8d578f94e0113e2db6f5a787c6
parent86956e70761b3292156d668e87126844334dd71b
vfio/ap_ops: Convert to use vfio_register_group_dev()

This is straightforward conversion, the ap_matrix_mdev is actually serving
as the vfio_device and we can replace all the mdev_get_drvdata()'s with a
simple container_of() or a dev_get_drvdata() for sysfs paths.

Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Cornelia Huck <cohuck@redhat.com>
Cc: kvm@vger.kernel.org
Cc: Christoph Hellwig <hch@lst.de>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/0-v4-0203a4ab0596+f7-vfio_ap_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/s390/crypto/vfio_ap_ops.c
drivers/s390/crypto/vfio_ap_private.h