summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorAlex Williamson <alex.williamson@redhat.com>2017-06-28 13:50:05 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-07-27 15:08:03 -0700
commit8f9dec0c2dbb99aa36fa2d242828d853abde8eb0 (patch)
treed6e23c8e9309cf50c4c8b40ecc77c4f742657ce8 /mm
parente91a55790ddfbda7f9f72963e561d9c738f14a52 (diff)
vfio: New external user group/file match
commit 5d6dee80a1e94cc284d03e06d930e60e8d3ecf7d upstream. At the point where the kvm-vfio pseudo device wants to release its vfio group reference, we can't always acquire a new reference to make that happen. The group can be in a state where we wouldn't allow a new reference to be added. This new helper function allows a caller to match a file to a group to facilitate this. Given a file and group, report if they match. Thus the caller needs to already have a group reference to match to the file. This allows the deletion of a group without acquiring a new reference. Signed-off-by: Alex Williamson <alex.williamson@redhat.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions