vfio/ccw: Pass vfio_ccw_private not mdev_device to various functions
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 26 Oct 2021 17:57:32 +0000 (14:57 -0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 28 Oct 2021 17:06:31 +0000 (11:06 -0600)
commit39b6ee011f341526308577847f1002be5d1e0a6e
tree794a23c17b93d4ed74a2d6513d981c0bd7536d4f
parent0972c7dddf716a781dbe9abf4d042264b679ab53
vfio/ccw: Pass vfio_ccw_private not mdev_device to various functions

mdev_device should only be used in functions assigned to ops callbacks,
interior functions should use the struct vfio_ccw_private instead of
repeatedly trying to get it from the mdev.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/3-v4-cea4f5bd2c00+b52-ccw_mdev_jgg@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/s390/cio/vfio_ccw_ops.c