Skip to content
Commit 5cd189e4 authored by Anthony DeRossi's avatar Anthony DeRossi Committed by Alex Williamson
Browse files

vfio: Export the device set open count



The open count of a device set is the sum of the open counts of all
devices in the set. Drivers can use this value to determine whether
shared resources are in use without tracking them manually or accessing
the private open_count in vfio_device.

Signed-off-by: default avatarAnthony DeRossi <ajderossi@gmail.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
Reviewed-by: default avatarYi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20221110014027.28780-3-ajderossi@gmail.com


Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
parent 7fdba001
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment