On Fri, 12 Mar 2021 20:56:01 -0400 Jason Gunthorpe <jgg@xxxxxxxxxx> wrote: > pci already allocates a struct vfio_pci_device with exactly the same > lifetime as vfio_device, switch to the new API and embed vfio_device in > vfio_pci_device. > > Reviewed-by: Christoph Hellwig <hch@xxxxxx> > Reviewed-by: Liu Yi L <yi.l.liu@xxxxxxxxx> > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > --- > drivers/vfio/pci/vfio_pci.c | 10 +++++----- > drivers/vfio/pci/vfio_pci_private.h | 1 + > 2 files changed, 6 insertions(+), 5 deletions(-) Reviewed-by: Cornelia Huck <cohuck@xxxxxxxxxx>