> From: Liu, Yi L <yi.l.liu@xxxxxxxxx> > Sent: Thursday, November 24, 2022 8:27 PM > > From: Jason Gunthorpe <jgg@xxxxxxxxxx> > > This avoids opening group specific code in __vfio_register_dev() for the > sanity check if an (existing) group is not corrupted by having two copies > of the same struct device in it. It also simplifies the error unwind for > this sanity check since the failure can be detected in the group allocation. > > This also prepares for moving the group specific code into separate group.c. > > Grabbed from: > https://lore.kernel.org/kvm/20220922152338.2a2238fe.alex.williamson@red > hat.com/ > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > Signed-off-by: Alex Williamson <alex.williamson@xxxxxxxxxx> > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>