aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vfio/vfio_iommu_type1.c
AgeCommit message (Expand)AuthorFilesLines
14 daysmm: pass VMA instead of MM to follow_pte()David Hildenbrand1-2/+2
2024-03-04Revert "vfio/type1: Unpin zero pages"Alex Williamson1-12/+0
2023-12-04vfio/type1: account iommu allocationsPasha Tatashin1-3/+5
2023-08-17vfio: align capability structuresStefan Hajnoczi1-9/+2
2023-08-16vfio/type1: fix cap_migration information leakStefan Hajnoczi1-1/+1
2023-06-19mm: ptep_get() conversionRyan Roberts1-2/+5
2023-06-09mm/gup: remove unused vmas parameter from pin_user_pages_remote()Lorenzo Stoakes1-1/+1
2023-05-23vfio/type1: check pfn valid before converting to struct pageYan Zhao1-0/+5
2023-03-16mm: Introduce untagged_addr_remote()Kirill A. Shutemov1-1/+1
2023-02-25Merge tag 'vfio-v6.3-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds1-137/+111
2023-02-21Merge tag 'v6.2' into iommufd.git for-nextJason Gunthorpe1-11/+20
2023-02-09vfio/type1: revert "implement notify callback"Steve Sistare1-15/+0
2023-02-09vfio/type1: revert "block on invalid vaddr"Steve Sistare1-89/+5
2023-02-09vfio/type1: restore locked_vmSteve Sistare1-0/+35
2023-02-09vfio/type1: track locked_vm per dmaSteve Sistare1-6/+17
2023-02-09vfio/type1: prevent underflow of locked_vm via exec()Steve Sistare1-27/+14
2023-02-09vfio/type1: exclude mdevs from VFIO_UPDATE_VADDRSteve Sistare1-2/+42
2023-01-30Merge branch 'iommu-memory-accounting' of ssh://gitolite.kernel.org/pub/scm/l...Jason Gunthorpe1-4/+5
2023-01-25iommu: Add a gfp parameter to iommu_map()Jason Gunthorpe1-4/+5
2023-01-11vfio/type1: Convert to iommu_group_has_isolated_msi()Jason Gunthorpe1-13/+3
2023-01-10vfio/type1: Respect IOMMU reserved regions in vfio_test_domain_fgsp()Niklas Schnelle1-11/+20
2022-09-26Merge branches 'apple/dart', 'arm/mediatek', 'arm/omap', 'arm/smmu', 'virtio'...Joerg Roedel1-1/+12
2022-09-07iommu/dma: Move public interfaces to linux/iommu.hRobin Murphy1-1/+0
2022-08-31vfio/type1: Unpin zero pagesAlex Williamson1-0/+12
2022-07-25vfio: Replace phys_pfn with pages for vfio_pin_pages()Nicolin Chen1-8/+11
2022-07-25vfio: Pass in starting IOVA to vfio_pin/unpin_pages APINicolin Chen1-8/+7
2022-07-23vfio: Make vfio_unpin_pages() return voidNicolin Chen1-9/+6
2022-07-20vfio: Replace the iommu notifier with a device listJason Gunthorpe1-37/+66
2022-06-30Merge branches 'v5.20/vfio/migration-enhancements-v3', 'v5.20/vfio/simplify-b...Alex Williamson1-26/+23
2022-06-30vfio: remove useless judgementLi Zhe1-6/+0
2022-06-27vfio/type1: Simplify bus_type determinationRobin Murphy1-20/+23
2022-04-28vfio: Move the Intel no-snoop control off of IOMMU_CACHEJason Gunthorpe1-11/+19
2021-12-21vfio/iommu_type1: replace kfree with kvfreeJiacheng Shi1-1/+1
2021-09-30vfio/iommu_type1: remove IS_IOMMU_CAP_DOMAIN_IN_CONTAINERChristoph Hellwig1-8/+5
2021-09-30vfio/iommu_type1: remove the "external" domainChristoph Hellwig1-66/+54
2021-09-30vfio/iommu_type1: initialize pgsize_bitmap in ->openChristoph Hellwig1-1/+1
2021-09-30vfio: clean up the check for mediated device in vfio_iommu_type1Christoph Hellwig1-17/+2
2021-09-30vfio: remove the unused mdev iommu hookChristoph Hellwig1-107/+26
2021-09-30vfio: move the vfio_iommu_driver_ops interface out of <linux/vfio.h>Christoph Hellwig1-0/+1
2021-08-24vfio/type1: Fix vfio_find_dma_valid returnAnthony Yznaga1-4/+4
2021-07-03Merge tag 'vfio-v5.14-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds1-16/+18
2021-06-29vfio: use vma_lookup() instead of find_vma_intersection()Liam Howlett1-1/+1
2021-06-21vfio/iommu_type1: rename vfio_group struck to vfio_iommu_groupMax Gurtovoy1-16/+18
2021-05-24vfio/iommu_type1: Use struct_size() for kzalloc()Gustavo A. R. Silva1-1/+1
2021-05-01Merge tag 'iommu-updates-v5.13' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-18/+13
2021-04-16Merge branches 'iommu/fixes', 'arm/mediatek', 'arm/smmu', 'arm/exynos', 'unis...Joerg Roedel1-18/+13
2021-04-14vfio/iommu_type1: Remove unused pinned_page_dirty_scope in vfio_iommuKeqian Zhu1-1/+0
2021-04-07vfio/mdev: Add missing typesafety around mdev_deviceJason Gunthorpe1-19/+6
2021-04-07iommu: remove DOMAIN_ATTR_NESTINGChristoph Hellwig1-4/+1
2021-04-07iommu: remove DOMAIN_ATTR_GEOMETRYChristoph Hellwig1-14/+12
2021-04-06vfio/type1: Remove the almost unused check in vfio_iommu_type1_unpin_pagesShenming Lu1-4/+4
2021-04-06vfio/type1: fix a couple of spelling mistakesZhen Lei1-3/+3
2021-03-25vfio/type1: Empty batch for pfnmap pagesDaniel Jordan1-0/+6
2021-03-16vfio/type1: fix vaddr_get_pfns() return in vfio_pin_page_external()Daniel Jordan1-1/+7
2021-03-16vfio/type1: fix unmap all on ILP32Steve Sistare1-7/+5
2021-02-22vfio/type1: Batch page pinningDaniel Jordan1-46/+89
2021-02-22vfio/type1: Prepare for batched pinning with struct vfio_batchDaniel Jordan1-13/+58
2021-02-22vfio/type1: Change success value of vaddr_get_pfn()Daniel Jordan1-7/+14
2021-02-22vfio/type1: Use follow_pte()Alex Williamson1-2/+13
2021-02-18vfio/iommu_type1: Fix duplicate included kthread.hTian Tao1-1/+0
2021-02-02Merge branch 'v5.12/vfio/next-vaddr' into v5.12/vfio/nextAlex Williamson1-32/+217
2021-02-01vfio/iommu_type1: Mantain a counter for non_pinned_groupsKeqian Zhu1-35/+5
2021-02-01vfio/iommu_type1: Fix some sanity checks in detach groupKeqian Zhu1-23/+8
2021-02-01vfio/iommu_type1: Populate full dirty when detach non-pinned groupKeqian Zhu1-1/+16
2021-02-01vfio/type1: block on invalid vaddrSteve Sistare1-5/+90
2021-02-01vfio/type1: implement notify callbackSteve Sistare1-0/+15
2021-02-01vfio/type1: implement interfaces to update vaddrSteve Sistare1-6/+53
2021-02-01vfio/type1: massage unmap iterationSteve Sistare1-1/+34
2021-02-01vfio/type1: implement unmap allSteve Sistare1-4/+16
2021-02-01vfio/type1: unmap cleanupSteve Sistare1-23/+15
2020-12-10vfio/type1: Add vfio_group_iommu_domain()Lu Baolu1-0/+24
2020-11-02vfio/type1: Use the new helper to find vfio_groupZenghui Yu1-12/+5
2020-10-22Merge tag 'vfio-v5.10-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds1-2/+21
2020-10-20vfio iommu type1: Fix memory leak in vfio_iommu_type1_pin_pagesXiaoyang Xu1-1/+2
2020-09-22Merge branches 'v5.10/vfio/bardirty', 'v5.10/vfio/dma_avail', 'v5.10/vfio/mis...Alex Williamson1-1/+19
2020-09-22vfio/type1: fix dirty bitmap calculation in vfio_dma_rwYan Zhao1-1/+2
2020-09-21vfio iommu: Add dma available capabilityMatthew Rosato1-0/+17
2020-09-04iommu: Rename iommu_tlb_* functions to iommu_iotlb_*Tom Murphy1-1/+1
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva1-1/+1
2020-08-17vfio/type1: Add proper error unwind for vfio_iommu_replay()Alex Williamson1-5/+66
2020-08-12Merge tag 'vfio-v5.9-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds1-182/+216
2020-08-12mm/gup: remove task_struct pointer for all gup codePeter Xu1-2/+2
2020-07-27vfio/type1: Refactor vfio_iommu_type1_ioctl()Liu Yi L1-181/+213
2020-07-27vfio/type1: Add conditional rescheduling after iommu map failedXiang Zheng1-1/+3
2020-06-10kernel: better document the use_mm/unuse_mm API contractChristoph Hellwig1-2/+2
2020-06-10kernel: move use_mm/unuse_mm to kthread.cChristoph Hellwig1-1/+1
2020-06-09mmap locking API: use coccinelle to convert mmap_sem rwsem call sitesMichel Lespinasse1-4/+4
2020-06-02vfio iommu: typecast correctionsKirti Wankhede1-2/+2
2020-06-02vfio iommu: Use shift operation for 64-bit integer divisionKirti Wankhede1-1/+2
2020-05-28vfio: Selective dirty page tracking if IOMMU backed device pins pagesKirti Wankhede1-7/+96
2020-05-28vfio iommu: Add migration capability to report supported featuresKirti Wankhede1-1/+22
2020-05-28vfio iommu: Update UNMAP_DMA ioctl to get dirty bitmap before unmapKirti Wankhede1-11/+50
2020-05-28vfio iommu: Implementation of ioctl for dirty pages trackingKirti Wankhede1-6/+308
2020-05-28vfio iommu: Cache pgsize_bitmap in struct vfio_iommuKirti Wankhede1-39/+49
2020-05-28vfio iommu: Remove atomicity of ref_count of pinned pagesKirti Wankhede1-4/+5
2020-05-18vfio/type1: Support faulting PFNMAP vmasAlex Williamson1-3/+33
2020-04-23vfio/type1: Fix VA->PA translation for PFNMAP VMAs in vaddr_get_pfn()Sean Christopherson1-2/+2
2020-04-20vfio: avoid possible overflow in vfio_iommu_type1_pin_pagesYan Zhao1-1/+1
2020-04-20vfio: checking of validity of user vaddr in vfio_dma_rwYan Zhao1-2/+2
2020-04-01vfio: Ignore -ENODEV when getting MSI cookieAndre Przywara1-1/+1
2020-03-24vfio: introduce vfio_dma_rw to read/write a range of IOVAsYan Zhao1-0/+76
2020-01-31mm, tree-wide: rename put_user_page*() to unpin_user_page*()John Hubbard1-1/+1
2020-01-31vfio, mm: pin_user_pages (FOLL_PIN) and put_user_page() conversionJohn Hubbard1-4/+3
2020-01-31vfio: fix FOLL_LONGTERM use, simplify get_user_pages_remote() callJohn Hubbard1-25/+5
2019-12-07Merge tag 'vfio-v5.5-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds1-22/+4
2019-10-18vfio/type1: remove hugepage checks in is_invalid_reserved_pfn()Ben Luo1-22/+4
2019-10-15vfio/type1: Initialize resv_msi_baseJoerg Roedel1-1/+1
2019-09-25vfio/type1: untag user pointers in vaddr_get_pfnAndrey Konovalov1-0/+2
2019-09-20Merge tag 'vfio-v5.4-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds1-12/+506
2019-08-19vfio/type1: remove duplicate retrieval of reserved regionsShameer Kolothum1-9/+6
2019-08-19vfio/type1: Add IOVA range capability supportShameer Kolothum1-0/+101
2019-08-19vfio/type1: check dma map request is within a valid iova rangeShameer Kolothum1-0/+26
2019-08-19vfio/type1: Update iova list on detachShameer Kolothum1-0/+94
2019-08-19vfio/type1: Check reserved region conflict and update iova listShameer Kolothum1-0/+98
2019-08-19vfio/type1: Introduce iova list and add iommu aperture validity checkShameer Kolothum1-3/+181
2019-07-24iommu: Introduce struct iommu_iotlb_gather for batching TLB flushesWill Deacon1-9/+17
2019-07-24iommu: Remove empty iommu_tlb_range_add() callback from iommu_opsWill Deacon1-1/+0
2019-07-16mm: add account_locked_vm utility functionDaniel Jordan1-15/+2
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Thomas Gleixner1-4/+1
2019-05-14mm/gup: replace get_user_pages_longterm() with FOLL_LONGTERMIra Weiny1-1/+2
2019-04-12vfio/type1: Handle different mdev isolation typeLu Baolu1-13/+42
2019-04-12vfio/type1: Add domain at(de)taching group helpersLu Baolu1-7/+77
2019-04-03vfio/type1: Limit DMA mappings per containerAlex Williamson1-0/+14
2019-01-08vfio/type1: Fix unmap overflow off-by-oneAlex Williamson1-1/+1
2018-11-15vfio/type1: Remove map_try_harder() code pathJoerg Roedel1-31/+2
2018-08-06vfio: Mark expected switch fall-throughsGustavo A. R. Silva1-0/+1
2018-06-30vfio: Use get_user_pages_longterm correctlyJason Gunthorpe1-9/+7
2018-06-08vfio/type1: Fix task tracking for QEMU vCPU hotplugAlex Williamson1-26/+47
2018-06-02Revert "vfio/type1: Improve memory pinning process for raw PFN mapping"Alex Williamson1-15/+10
2018-03-22vfio/type1: Improve memory pinning process for raw PFN mappingJason Cai (Xiang Feng)1-10/+15
2018-03-21vfio/type1: Adopt fast IOTLB flush interface when unmap IOVAsSuravee Suthikulpanit1-11/+115
2018-03-02vfio: disable filesystem-dax page pinningDan Williams1-3/+15
2017-10-20vfio/type1: silence integer overflow warningDan Carpenter1-0/+3
2017-08-10vfio/type1: Give hardware MSI regions precedenceRobin Murphy1-2/+10
2017-08-10vfio/type1: Cope with hardware MSI reserved regionsRobin Murphy1-2/+2
2017-04-18vfio/type1: Reduce repetitive calls in vfio_pin_pages_remote()Alex Williamson1-6/+11
2017-04-18vfio/type1: Prune vfio_pin_page_external()Alex Williamson1-27/+8
2017-04-13vfio/type1: Remove locked page accounting workqueueAlex Williamson1-59/+51
2017-03-22iommu: Disambiguate MSI region typesRobin Murphy1-4/+3
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-1/+1
2017-03-02sched/headers: Prepare for new header dependencies before moving code to <lin...Ingo Molnar1-0/+1
2017-02-10vfio/type1: Fix error return code in vfio_iommu_type1_attach_group()Wei Yongjun1-2/+5
2017-01-30Merge branch 'iommu/guest-msi' of git://git.kernel.org/pub/scm/linux/kernel/g...Joerg Roedel1-2/+35
2017-01-23vfio/type1: Check MSI remapping at irq domain levelEric Auger1-3/+6
2017-01-23vfio/type1: Allow transparent MSI IOVA allocationEric Auger1-0/+30
2017-01-13vfio/type1: Remove pid_namespace.h includeAlex Williamson1-1/+0
2017-01-12vfio iommu type1: fix the testing of capability for remote taskJike Song1-2/+1
2016-12-30vfio/type1: Restore mapping performance with mdev supportAlex Williamson1-47/+51
2016-12-14mm: add locked parameter to get_user_pages_remote()Lorenzo Stoakes1-1/+1
2016-12-06vfio iommu type1: Fix size argument to vfio_find_dma() in pin_pages/unpin_pagesKirti Wankhede1-3/+3
2016-12-06vfio iommu type1: Fix size argument to vfio_find_dma() during DMA UNMAP.Kirti Wankhede1-1/+1
2016-12-05vfio iommu type1: WARN_ON if notifier block is not unregisteredKirti Wankhede1-0/+2
2016-12-01vfio: vfio_register_notifier: classify iommu notifierJike Song1-0/+8
2016-11-17vfio iommu: Add blocking notifier to notify DMA_UNMAPKirti Wankhede1-13/+61
2016-11-17vfio iommu type1: Add support for mediated devicesKirti Wankhede1-84/+537
2016-11-17vfio iommu type1: Add task structure to vfio_dmaKirti Wankhede1-51/+86
2016-11-17vfio iommu type1: Add find_iommu_group() functionKirti Wankhede1-24/+33
2016-11-17vfio iommu type1: Update argument of vaddr_get_pfn()Kirti Wankhede1-8/+24
2016-11-17vfio iommu type1: Update arguments of vfio_lock_acctKirti Wankhede1-14/+16
2016-11-17vfio iommu: Added pin and unpin callback functions to vfio_iommu_driver_opsKirti Wankhede1-10/+10
2016-05-30vfio/type1: Fix build warningAlex Williamson1-1/+1
2016-05-09iommu: Allow selecting page sizes per domainRobin Murphy1-1/+1
2016-02-28vfio: fix ioctl error handlingMichael S. Tsirkin1-2/+4
2016-01-04vfio/iommu_type1: make use of info.flagsPierre Morel1-1/+1
2015-11-03vfio/type1: handle case where IOMMU does not support PAGE_SIZE sizeEric Auger1-1/+14
2015-02-06vfio/type1: Add conditional reschedulingAlex Williamson1-1/+7
2015-02-06vfio/type1: Chunk contiguous reserved/invalid page mappingsAlex Williamson1-7/+11
2015-02-06vfio/type1: DMA unmap chunkingAlex Williamson1-3/+51
2014-10-15Merge tag 'iommu-updates-v3.18' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-2/+2
2014-09-29vfio/iommu_type1: add new VFIO_TYPE1_NESTING_IOMMU IOMMU typeWill Deacon1-5/+25
2014-09-25vfio: Convert to use new iommu_capable() API functionJoerg Roedel1-2/+2
2014-05-30vfio/iommu_type1: Avoid overflowAlex Williamson1-27/+18
2014-04-03Merge tag 'vfio-v3.15-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds1-301/+355
2014-03-04mm: close PageTail raceDavid Rientjes1-2/+2
2014-02-26vfio/type1: Add extension to test DMA cache coherence of IOMMUAlex Williamson1-0/+21
2014-02-26vfio/iommu_type1: Multi-IOMMU domain supportAlex Williamson1-302/+335
2013-10-11VFIO: vfio_iommu_type1: fix bug caused by break in nested loopAntonios Motakis1-19/+21
2013-07-01vfio/type1: Fix leak on error pathAlex Williamson1-5/+8
2013-06-25vfio/type1: Fix missed frees and zero sized removesAlex Williamson1-35/+42
2013-06-21vfio: Provide module option to disable vfio_iommu_type1 hugepage supportAlex Williamson1-0/+11
2013-06-21vfio: hugepage support for vfio_iommu_type1Alex Williamson1-185/+338
2013-06-21vfio: Convert type1 iommu to use rbtreeAlex Williamson1-94/+96
2012-07-31vfio: Type1 IOMMU implementationAlex Williamson1-0/+753