On Mon, Feb 27, 2023 at 03:11:29AM -0800, Yi Liu wrote: > for counting the devices that are opened via the cdev path. This count > is increased and decreased by the cdev path. The group path checks it > to achieve exclusion with the cdev path. With this, only one path (group > path or cdev path) will claim DMA ownership. This avoids scenarios in > which devices within the same group may be opened via different paths. > > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> > Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx> > --- > drivers/vfio/group.c | 33 +++++++++++++++++++++++++++++++++ > drivers/vfio/vfio.h | 3 +++ > 2 files changed, 36 insertions(+) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason