On Mon, 23 Aug 2021 11:42:04 -0300 Jason Gunthorpe <jgg@xxxxxxxxxx> wrote: > 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@xxxxxxxxxx> > Cc: Cornelia Huck <cohuck@xxxxxxxxxx> > Cc: kvm@xxxxxxxxxxxxxxx > Cc: Christoph Hellwig <hch@xxxxxx> > Reviewed-by: Tony Krowiak <akrowiak@xxxxxxxxxxxxx> > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > --- > drivers/s390/crypto/vfio_ap_ops.c | 155 +++++++++++++++----------- > drivers/s390/crypto/vfio_ap_private.h | 2 + > 2 files changed, 91 insertions(+), 66 deletions(-) Jason & Tony, Would one of you please rebase on the other's series? The merge conflict between this and 20210823212047.1476436-1-akrowiak@xxxxxxxxxxxxx is more than I'd like to bury into a merge commit and I can't test beyond a cross compile. Thanks, Alex