summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorYi Liu <yi.l.liu@intel.com>2023-07-18 06:55:33 -0700
committerAlex Williamson <alex.williamson@redhat.com>2023-07-25 10:18:54 -0600
commit270bf4c019b94828229036a4ebc3361a30a7e9f3 (patch)
tree47acf0b44846215c5e4b39162c3dbac470a7bd0d /block
parent82d93f580f0be56eb36964bc39e85dd3ca0530bc (diff)
downloadlinux-stable-270bf4c019b94828229036a4ebc3361a30a7e9f3.tar.gz
linux-stable-270bf4c019b94828229036a4ebc3361a30a7e9f3.tar.bz2
linux-stable-270bf4c019b94828229036a4ebc3361a30a7e9f3.zip
vfio: Add cdev_device_open_cnt to vfio_group
This is 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. Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Terrence Xu <terrence.xu@intel.com> Tested-by: Nicolin Chen <nicolinc@nvidia.com> Tested-by: Matthew Rosato <mjrosato@linux.ibm.com> Tested-by: Yanting Jiang <yanting.jiang@intel.com> Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com> Tested-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Link: https://lore.kernel.org/r/20230718135551.6592-9-yi.l.liu@intel.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions