diff options
author | Yan Zhao <yan.y.zhao@intel.com> | 2020-03-24 18:27:57 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2020-03-24 18:27:57 +0300 |
commit | 40280cf7e8ca7d31bb0a9d626f36f458fec32815 (patch) | |
tree | cc55f06e79d3e7d99ae50e9f5a27b58b36153599 /tools/perf/scripts/python/stackcollapse.py | |
parent | 8d46c0cca5f4dc0538173d62cd36b1119b5105bc (diff) | |
download | linux-40280cf7e8ca7d31bb0a9d626f36f458fec32815.tar.xz |
vfio: avoid inefficient operations on VFIO group in vfio_pin/unpin_pages
vfio_group_pin_pages() and vfio_group_unpin_pages() are introduced to
avoid inefficient search/check/ref/deref opertions associated with VFIO
group as those in each calling into vfio_pin_pages() and
vfio_unpin_pages().
VFIO group is taken as arg directly. The callers combine
search/check/ref/deref operations associated with VFIO group by calling
vfio_group_get_external_user()/vfio_group_get_external_user_from_dev()
beforehand, and vfio_group_put_external_user() afterwards.
Suggested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions