diff options
| author | Nicolin Chen <[email protected]> | 2023-07-28 06:33:24 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2023-07-28 16:31:24 +0000 |
| commit | 5d5c85ff6246c1b70b3b75a0b9d9fe749d0a5652 (patch) | |
| tree | 2c3ace1920746b2091ef9b27380a0845030ca57f /tools/perf/scripts/python/libxed.py | |
| parent | vfio: Do not allow !ops->dma_unmap in vfio_pin/unpin_pages() (diff) | |
| download | kernel-5d5c85ff6246c1b70b3b75a0b9d9fe749d0a5652.tar.gz kernel-5d5c85ff6246c1b70b3b75a0b9d9fe749d0a5652.zip | |
iommufd: Allow passing in iopt_access_list_id to iopt_remove_access()
This is a preparatory change for ioas replacement support for accesses.
The replacement routine does an iopt_add_access() for a new IOAS first and
then iopt_remove_access() for the old IOAS upon the success of the first
call. However, the first call overrides the iopt_access_list_id in the
access struct, resulting in iopt_remove_access() being unable to work on
the old IOAS.
Add an iopt_access_list_id as a parameter to iopt_remove_access, so the
replacement routine can save the id before it gets overwritten. Pass the
id in iopt_remove_access() for a proper cleanup.
The existing callers should just pass in access->iopt_access_list_id.
Link: https://lore.kernel.org/r/7bb939b9e0102da0c099572bb3de78ab7622221e.1690523699.git.nicolinc@nvidia.com
Suggested-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Signed-off-by: Nicolin Chen <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions
