Re: [PATCH v2 06/14] vfio/fsl-mc: Use vfio_init/register/unregister_group_dev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 12 Mar 2021 20:55:58 -0400
Jason Gunthorpe <jgg@xxxxxxxxxx> wrote:

> fsl-mc already allocates a struct vfio_fsl_mc_device with exactly the same
> lifetime as vfio_device, switch to the new API and embed vfio_device in
> vfio_fsl_mc_device. While here remove the devm usage for the vdev, this
> code is clean and doesn't need devm.
> 
> Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx>
> ---
>  drivers/vfio/fsl-mc/vfio_fsl_mc.c         | 18 ++++++++++--------
>  drivers/vfio/fsl-mc/vfio_fsl_mc_private.h |  1 +
>  2 files changed, 11 insertions(+), 8 deletions(-)

Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux