diff options
| author | Nicolin Chen <[email protected]> | 2023-07-28 06:33:23 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2023-07-28 16:31:24 +0000 |
| commit | 89e07fd4680985351559cdc916098ad72e034bfc (patch) | |
| tree | 460418b12ae712c8aa30248543e8088229d48346 /tools/perf/scripts/python | |
| parent | iommufd/selftest: Add a selftest for IOMMU_HWPT_ALLOC (diff) | |
| download | kernel-89e07fd4680985351559cdc916098ad72e034bfc.tar.gz kernel-89e07fd4680985351559cdc916098ad72e034bfc.zip | |
vfio: Do not allow !ops->dma_unmap in vfio_pin/unpin_pages()
A driver that doesn't implement ops->dma_unmap shouldn't be allowed to do
vfio_pin/unpin_pages(), though it can use vfio_dma_rw() to access an iova
range. Deny !ops->dma_unmap cases in vfio_pin/unpin_pages().
Link: https://lore.kernel.org/r/85d622729d8f2334b35d42f1c568df1ededb9171.1690523699.git.nicolinc@nvidia.com
Suggested-by: Kevin Tian <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Yi Liu <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Alex Williamson <[email protected]>
Signed-off-by: Nicolin Chen <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
