aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/iommufd
AgeCommit message (Expand)AuthorFilesLines
2024-04-14iommufd: Add missing IOMMUFD_DRIVER kconfig for the selftestJason Gunthorpe1-0/+1
2024-02-26iommufd/selftest: Don't check map/unmap pairing with HUGE_PAGESJason Gunthorpe1-11/+18
2024-02-26iommufd: Fix protection fault in iommufd_test_syz_conv_iovaNicolin Chen1-6/+21
2024-02-26iommufd/selftest: Fix mock_dev_num bugNicolin Chen1-4/+9
2024-02-26iommufd: Fix iopt_access_list_id overwrite bugNicolin Chen1-3/+6
2024-02-21iommufd: Reject non-zero data_type if no data_len is providedJason Gunthorpe1-1/+2
2024-02-06iommufd/iova_bitmap: Consider page offset for the pages to be pinnedJoao Martins1-6/+7
2024-02-06iommufd/selftest: Hugepage mock domain supportJoao Martins2-2/+14
2024-02-06iommufd/selftest: Refactor mock_domain_read_and_clear_dirty()Joao Martins1-19/+45
2024-02-06iommufd/iova_bitmap: Handle recording beyond the mapped pagesJoao Martins1-0/+43
2024-02-06iommufd/iova_bitmap: Switch iova_bitmap::bitmap to an u8 arrayJoao Martins1-4/+4
2024-02-06iommufd/iova_bitmap: Bounds check mapped::pages accessJoao Martins1-0/+4
2024-01-18Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds5-13/+168
2024-01-11iommufd/selftest: Check the bus type during probeJason Gunthorpe1-13/+15
2024-01-11iommufd/selftest: Add IOMMU_TEST_OP_MD_CHECK_IOTLB test opNicolin Chen2-0/+31
2024-01-11iommufd/selftest: Add mock_domain_cache_invalidate_user supportNicolin Chen2-0/+68
2024-01-11iommufd: Add IOMMU_HWPT_INVALIDATEYi Liu3-0/+54
2024-01-03Merge branches 'apple/dart', 'arm/rockchip', 'arm/smmu', 'virtio', 'x86/vt-d'...Joerg Roedel1-0/+2
2023-11-29iommufd: Do not UAF during iommufd_put_object()Jason Gunthorpe2-78/+135
2023-11-29iommufd: Add iommufd_ctx to iommufd_put_object()Jason Gunthorpe6-35/+36
2023-11-27iommu: Validate that devices match domainsRobin Murphy1-0/+2
2023-11-09Merge tag 'iommu-updates-v6.7' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-24/+7
2023-10-30iommufd: Organize the mock domain alloc functions closer to Joerg's treeJason Gunthorpe1-19/+16
2023-10-30iommufd/selftest: Fix page-size check in iommufd_test_dirty()Joao Martins1-2/+4
2023-10-30iommufd: Add iopt_area_alloc()Jason Gunthorpe2-3/+17
2023-10-30iommufd: Fix missing update of domains_itree after splitting iopt_areaKoichiro Den1-0/+10
2023-10-26iommufd: Convert to alloc_domain_paging()Jason Gunthorpe1-8/+3
2023-10-26iommufd/selftest: Add nested domain allocation for mock domainNicolin Chen2-30/+140
2023-10-26iommufd: Add a nested HW pagetable objectNicolin Chen4-14/+130
2023-10-26iommu: Pass in parent domain with user_data to domain_alloc_user opYi Liu2-2/+8
2023-10-26iommufd: Share iommufd_hwpt_alloc with IOMMUFD_OBJ_HWPT_NESTEDNicolin Chen1-17/+29
2023-10-26iommufd: Derive iommufd_hwpt_paging from iommufd_hw_pagetableNicolin Chen5-108/+148
2023-10-26iommufd/device: Wrap IOMMUFD_OBJ_HWPT_PAGING-only configurationsJason Gunthorpe2-30/+86
2023-10-26iommufd: Rename IOMMUFD_OBJ_HW_PAGETABLE to IOMMUFD_OBJ_HWPT_PAGINGJason Gunthorpe5-10/+10
2023-10-24iommufd: Only enforce cache coherency in iommufd_hw_pagetable_allocNicolin Chen3-20/+10
2023-10-24iommufd/selftest: Test IOMMU_HWPT_GET_DIRTY_BITMAP_NO_CLEAR flagJoao Martins1-6/+9
2023-10-24iommufd/selftest: Test out_capabilities in IOMMU_GET_HW_INFOJoao Martins1-1/+12
2023-10-24iommufd/selftest: Test IOMMU_HWPT_GET_DIRTY_BITMAPJoao Martins2-5/+111
2023-10-24iommufd/selftest: Test IOMMU_HWPT_SET_DIRTY_TRACKINGJoao Martins1-0/+16
2023-10-24iommufd/selftest: Test IOMMU_HWPT_ALLOC_DIRTY_TRACKINGJoao Martins1-1/+36
2023-10-24iommufd/selftest: Expand mock_domain with dev_flagsJoao Martins2-2/+21
2023-10-24iommufd: Add a flag to skip clearing of IOPTE dirtyJoao Martins2-3/+9
2023-10-24iommufd: Add capabilities to IOMMU_GET_HW_INFOJoao Martins1-0/+4
2023-10-24iommufd: Add IOMMU_HWPT_GET_DIRTY_BITMAPJoao Martins4-0/+149
2023-10-24iommufd: Add IOMMU_HWPT_SET_DIRTY_TRACKINGJoao Martins4-0/+93
2023-10-24iommufd: Add a flag to enforce dirty tracking on attachJoao Martins1-1/+3
2023-10-24iommufd/iova_bitmap: Move symbols to IOMMUFD namespaceJoao Martins1-4/+4
2023-10-24vfio: Move iova_bitmap into iommufdJoao Martins2-0/+427
2023-10-10iommufd/selftest: Add domain_alloc_user() support in iommu mockYi Liu1-0/+19
2023-10-10iommufd: Support allocating nested parent domainYi Liu1-1/+4
2023-10-10iommufd: Flow user flags for domain allocation to domain_alloc_user()Yi Liu3-5/+9
2023-10-10iommufd: Use the domain_alloc_user() op for domain allocationYi Liu1-4/+15
2023-09-25iommu: Add IOMMU_DOMAIN_PLATFORMJason Gunthorpe1-9/+5
2023-09-25iommu: Add iommu_ops->identity_domainJason Gunthorpe1-5/+0
2023-08-30Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds7-314/+916
2023-08-30Merge tag 'vfio-v6.6-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds5-8/+142
2023-08-18iommufd/selftest: Don't leak the platform device memory when unloading the mo...Yang Yingliang1-2/+2
2023-08-18iommufd/selftest: Add coverage for IOMMU_GET_HW_INFO ioctlNicolin Chen2-0/+25
2023-08-18iommufd: Add IOMMU_GET_HW_INFOYi Liu3-0/+77
2023-08-17vfio: align capability structuresStefan Hajnoczi1-0/+2
2023-08-15iommufd: Remove iommufd_ref_to_users()Jason Gunthorpe1-23/+0
2023-08-15Merge tag 'v6.5-rc6' into iommufd for-nextJason Gunthorpe4-31/+76
2023-08-14iommufd/selftest: Make the mock iommu driver into a real driverJason Gunthorpe3-59/+92
2023-07-28iommufd/selftest: Add IOMMU_TEST_OP_ACCESS_REPLACE_IOAS coverageNicolin Chen2-0/+23
2023-07-28iommufd: Add iommufd_access_replace() APINicolin Chen1-0/+15
2023-07-28iommufd: Use iommufd_access_change_ioas in iommufd_access_destroy_objectNicolin Chen1-6/+4
2023-07-28iommufd: Add iommufd_access_change_ioas(_id) helpersNicolin Chen1-38/+71
2023-07-28iommufd: Allow passing in iopt_access_list_id to iopt_remove_access()Nicolin Chen3-6/+9
2023-07-27iommufd: Set end correctly when doing batch carryJason Gunthorpe1-1/+1
2023-07-27iommufd: IOMMUFD_DESTROY should not increase the refcountJason Gunthorpe3-30/+75
2023-07-26iommufd/selftest: Add a selftest for IOMMU_HWPT_ALLOCJason Gunthorpe1-0/+3
2023-07-26iommufd/selftest: Return the real idev id from selftest mock_domainJason Gunthorpe2-0/+3
2023-07-26iommufd: Add IOMMU_HWPT_ALLOCJason Gunthorpe3-0/+58
2023-07-26iommufd/selftest: Test iommufd_device_replace()Nicolin Chen2-0/+43
2023-07-26iommufd: Make destroy_rwsem use a lock class per object typeJason Gunthorpe2-1/+11
2023-07-26iommufd: Add iommufd_device_replace()Jason Gunthorpe2-0/+102
2023-07-26iommufd: Reorganize iommufd_device_attach into iommufd_device_change_ptJason Gunthorpe1-39/+102
2023-07-26iommufd: Fix locking around hwpt allocationJason Gunthorpe1-1/+1
2023-07-26iommufd: Allow a hwpt to be aborted after allocationJason Gunthorpe3-1/+26
2023-07-26iommufd: Add enforced_cache_coherency to iommufd_hw_pagetable_alloc()Jason Gunthorpe3-15/+32
2023-07-26iommufd: Move putting a hwpt to a helper functionJason Gunthorpe2-5/+11
2023-07-26iommufd: Make sw_msi_start a group globalJason Gunthorpe2-7/+8
2023-07-26iommufd: Use the iommufd_group to avoid duplicate MSI setupJason Gunthorpe1-4/+4
2023-07-26iommufd: Keep track of each device's reserved regions instead of groupsJason Gunthorpe3-23/+16
2023-07-26iommufd: Replace the hwpt->devices list with iommufd_groupJason Gunthorpe3-81/+54
2023-07-26iommufd: Add iommufd_groupJason Gunthorpe3-18/+137
2023-07-26iommufd: Move isolated msi enforcement to iommufd_device_bind()Jason Gunthorpe1-18/+20
2023-07-25vfio: Compile vfio_group infrastructure optionallyYi Liu1-2/+2
2023-07-25iommufd: Add iommufd_ctx_from_fd()Yi Liu1-0/+24
2023-07-25iommufd/device: Add iommufd_access_detach() APINicolin Chen2-5/+71
2023-07-25iommufd: Add helper to retrieve iommufd_ctx and devidYi Liu1-0/+12
2023-07-25iommufd: Add iommufd_ctx_has_group()Yi Liu1-0/+30
2023-07-25iommufd: Reserve all negative IDs in the iommufd xarrayYi Liu1-1/+1
2023-06-29Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds2-4/+12
2023-06-26iommufd: Call iopt_area_contig_done() under the lockJason Gunthorpe1-1/+1
2023-06-26iommufd: Do not access the area pointer after unlockingJason Gunthorpe1-3/+11
2023-06-09mm/gup: remove unused vmas parameter from pin_user_pages_remote()Lorenzo Stoakes1-2/+2
2023-04-04Merge branch 'iommufd/for-rc' into for-nextJason Gunthorpe1-2/+14
2023-04-04iommufd/selftest: Set varaiable mock_iommu_device storage-class-specifier to ...Tom Rix1-1/+1
2023-04-04iommufd: Do not corrupt the pfn list when doing batch carryJason Gunthorpe1-1/+1
2023-04-04iommufd: Fix unpinning of pages when an access is presentJason Gunthorpe1-1/+9
2023-04-04iommufd: Check for uptr overflowJason Gunthorpe1-0/+4
2023-03-31Merge branch 'vfio_mdev_ops' into iommufd.git for-nextJason Gunthorpe5-37/+51
2023-03-31vfio-iommufd: Make vfio_iommufd_emulated_bind() return iommufd_access IDYi Liu2-2/+5
2023-03-31iommufd: Create access in vfio_iommufd_emulated_bind()Nicolin Chen2-23/+34
2023-03-29iommu/iommufd: Pass iommufd_ctx pointer in iommufd_get_ioas()Yi Liu4-13/+13
2023-03-10iommufd/selftest: Catch overflow of uptr and lengthJason Gunthorpe1-2/+7
2023-03-06iommufd/selftest: Make selftest create a more complete mock deviceJason Gunthorpe3-66/+181
2023-03-06iommufd/selftest: Rename the sefltest 'device_id' to 'stdev_id'Jason Gunthorpe2-2/+2
2023-03-06iommufd: Make iommufd_hw_pagetable_alloc() do iopt_table_add_domain()Jason Gunthorpe3-53/+85
2023-03-06iommufd: Move iommufd_device to iommufd_private.hJason Gunthorpe2-17/+18
2023-03-06iommufd: Move ioas related HWPT destruction into iommufd_hw_pagetable_destroy()Jason Gunthorpe2-23/+21
2023-03-06iommufd: Consistently manage hwpt_itemJason Gunthorpe1-1/+8
2023-03-06iommufd: Add iommufd_lock_obj() around the auto-domains hwptsJason Gunthorpe1-0/+3
2023-03-06iommufd: Assert devices_lock for iommufd_hw_pagetable_has_group()Jason Gunthorpe1-0/+2
2023-02-15iommufd: Do not add the same hwpt to the ioas->hwpt_list twiceJason Gunthorpe1-4/+0
2023-02-14iommufd: Make sure to zero vfio_iommu_type1_info before copying to userJason Gunthorpe1-1/+1
2023-02-03Merge branch 'vfio-no-iommu' into iommufd.git for-nextJason Gunthorpe3-20/+89
2023-02-03vfio: Support VFIO_NOIOMMU with iommufdJason Gunthorpe3-20/+89
2023-01-30Merge branch 'iommu-memory-accounting' of ssh://gitolite.kernel.org/pub/scm/l...Jason Gunthorpe1-2/+4
2023-01-25iommufd: Use GFP_KERNEL_ACCOUNT for iommu_map()Jason Gunthorpe1-2/+2
2023-01-25iommu: Add a gfp parameter to iommu_map()Jason Gunthorpe1-2/+4
2023-01-23iommufd: Add three missing structures in ucmd_bufferYi Liu1-0/+3
2023-01-11iommufd: Convert to msi_device_has_isolated_msi()Jason Gunthorpe1-3/+1
2022-12-14Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds14-0/+6956
2022-12-09iommufd: Change the order of MSI setupJason Gunthorpe2-41/+39
2022-12-09iommufd: Improve a few unclear bits of codeJason Gunthorpe1-2/+5
2022-12-09iommufd: Fix comment typosJason Gunthorpe2-3/+3
2022-12-02iommufd: Allow iommufd to supply /dev/vfio/vfioJason Gunthorpe2-0/+56
2022-11-30iommufd: Add additional invariant assertionsJason Gunthorpe4-2/+70
2022-11-30iommufd: Add some fault injection pointsJason Gunthorpe2-0/+29
2022-11-30iommufd: Add kernel support for testing iommufdJason Gunthorpe9-0/+1058
2022-11-30iommufd: vfio container FD ioctl compatibilityJason Gunthorpe4-6/+491
2022-11-30iommufd: Add kAPI toward external drivers for kernel accessJason Gunthorpe4-2/+335
2022-11-30iommufd: Add kAPI toward external drivers for physical devicesJason Gunthorpe4-0/+428
2022-11-30iommufd: Add a HW pagetable objectJason Gunthorpe5-0/+97
2022-11-30iommufd: IOCTLs for the io_pagetableJason Gunthorpe4-0/+474
2022-11-30iommufd: Data structure to provide IOVA to PFN mappingJason Gunthorpe4-0/+1294
2022-11-30iommufd: Algorithms for PFN storageJason Gunthorpe2-0/+917
2022-11-30iommufd: PFN handling for iopt_pagesJason Gunthorpe5-1/+1254
2022-11-30iommufd: File descriptor, context, kconfig and makefilesJason Gunthorpe4-0/+470