aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vfio
AgeCommit message (Expand)AuthorFilesLines
2023-05-23vfio/type1: check pfn valid before converting to struct pageYan Zhao1-0/+5
2023-05-02Merge tag 'vfio-v6.4-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds1-0/+7
2023-04-28Merge tag 'powerpc-6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/po...Linus Torvalds1-83/+13
2023-04-28Merge tag 'x86_mm_for_6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/t...Linus Torvalds1-1/+1
2023-04-27Merge tag 'driver-core-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds2-2/+2
2023-04-14vfio/pci: Add DVSEC PCI Extended Config Capability to user visible list.K V P, Satyanarayana1-0/+7
2023-04-04Merge branch 'iommufd/for-rc' into for-nextJason Gunthorpe1-10/+4
2023-04-03Merge 6.3-rc5 into driver-core-nextGreg Kroah-Hartman1-10/+4
2023-03-31vfio: Check the presence for iommufd callbacks in __vfio_register_dev()Yi Liu2-5/+3
2023-03-31vfio/mdev: Uses the vfio emulated iommufd ops set in the mdev sample driversYi Liu1-8/+6
2023-03-31vfio-iommufd: Make vfio_iommufd_emulated_bind() return iommufd_access IDYi Liu1-1/+1
2023-03-31vfio-iommufd: No need to record iommufd_ctx in vfio_deviceYi Liu1-7/+1
2023-03-31iommufd: Create access in vfio_iommufd_emulated_bind()Nicolin Chen1-7/+17
2023-03-17driver core: class: remove module * from class_create()Greg Kroah-Hartman2-2/+2
2023-03-16mm: Introduce untagged_addr_remote()Kirill A. Shutemov1-1/+1
2023-03-15powerpc/iommu: Add iommu_ops to report capabilities and allow blocking domainsAlexey Kardashevskiy1-8/+0
2023-03-14powerpc/iommu: Add "borrowing" iommu_table_group_opsAlexey Kardashevskiy1-78/+16
2023-03-13vfio/mlx5: Fix the report of dirty_bytes upon pre-copyYishai Hadas1-10/+4
2023-02-25Merge tag 'vfio-v6.3-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds21-271/+562
2023-02-24Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds7-25/+41
2023-02-24Merge tag 'iommu-updates-v6.3' of git://git.kernel.org/pub/scm/linux/kernel/g...Linus Torvalds1-4/+5
2023-02-23Merge tag 'mm-stable-2023-02-20-13-37' of git://git.kernel.org/pub/scm/linux/...Linus Torvalds1-1/+1
2023-02-22vfio: Fix NULL pointer dereference caused by uninitialized group->iommufdYan Zhao1-1/+1
2023-02-21Merge tag 'v6.2' into iommufd.git for-nextJason Gunthorpe1-11/+20
2023-02-18Merge branches 'apple/dart', 'arm/exynos', 'arm/renesas', 'arm/smmu', 'x86/vt...Joerg Roedel1-4/+5
2023-02-09mm: replace vma->vm_flags direct modifications with modifier callsSuren Baghdasaryan1-1/+1
2023-02-09vfio/mlx5: Fix range size calculation upon tracker creationYishai Hadas1-2/+2
2023-02-09vfio: no need to pass kvm pointer during device openMatthew Rosato3-7/+5
2023-02-09vfio: fix deadlock between group lock and kvm lockMatthew Rosato3-14/+108
2023-02-09vfio: revert "iommu driver notify callback"Steve Sistare2-12/+0
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-02-03Merge branch 'vfio-no-iommu' into iommufd.git for-nextJason Gunthorpe6-12/+38
2023-02-03vfio: Support VFIO_NOIOMMU with iommufdJason Gunthorpe6-12/+38
2023-02-01vfio: platform: ignore missing reset if disabled at module initTomasz Duszynski1-2/+5
2023-01-30vfio/mlx5: Improve the target side flow to reduce downtimeYishai Hadas2-12/+105
2023-01-30vfio/mlx5: Improve the source side flow upon pre_copyYishai Hadas3-34/+151
2023-01-30vfio/mlx5: Check whether VF is migratableShay Drory2-0/+28
2023-01-30vfio/mdev: Use sysfs_emit() to instead of sprintf()Bo Liu1-1/+1
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-23vfio/platform: Use GFP_KERNEL_ACCOUNT for userspace persistent allocationsYishai Hadas2-5/+5
2023-01-23vfio/fsl-mc: Use GFP_KERNEL_ACCOUNT for userspace persistent allocationsYishai Hadas2-3/+3
2023-01-23vfio/hisi: Use GFP_KERNEL_ACCOUNT for userspace persistent allocationsYishai Hadas1-2/+2
2023-01-23vfio: Use GFP_KERNEL_ACCOUNT for userspace persistent allocationsJason Gunthorpe7-14/+17
2023-01-23vfio/mlx5: Allow loading of larger images than 512 MBYishai Hadas2-14/+16
2023-01-23vfio/mlx5: Fix UBSAN noteYishai Hadas1-3/+3
2023-01-23vfio-mdev: turn VFIO_MDEV into a selectable symbolChristoph Hellwig1-7/+1
2023-01-23vfio: platform: No need to check res againAngus Chen1-3/+0
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-12-16Merge tag 'driver-core-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+1
2022-12-15Merge tag 'vfio-v6.2-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds18-429/+1435
2022-12-14Merge tag 'for-linus-iommufd' of git://git.kernel.org/pub/scm/linux/kernel/gi...Linus Torvalds13-912/+1434
2022-12-12vfio/mlx5: error pointer dereference in error handlingDan Carpenter1-1/+1
2022-12-12vfio/mlx5: fix error code in mlx5vf_precopy_ioctl()Dan Carpenter1-1/+4
2022-12-12Merge tag 'irq-core-2022-12-10' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds1-1/+0
2022-12-06hisi_acc_vfio_pci: Enable PRE_COPY flagShameer Kolothum1-1/+1
2022-12-06hisi_acc_vfio_pci: Move the dev compatibility tests for early checkShameer Kolothum2-12/+8
2022-12-06hisi_acc_vfio_pci: Introduce support for PRE_COPY state transitionsShameer Kolothum1-3/+71
2022-12-06hisi_acc_vfio_pci: Add support for precopy IOCTLShameer Kolothum2-0/+53
2022-12-06vfio/mlx5: Enable MIGRATION_PRE_COPY flagShay Drory1-0/+5
2022-12-06vfio/mlx5: Fallback to STOP_COPY upon specific PRE_COPY errorShay Drory3-3/+32
2022-12-06vfio/mlx5: Introduce multiple loadsYishai Hadas3-45/+257
2022-12-06vfio/mlx5: Consider temporary end of stream as part of PRE_COPYYishai Hadas3-2/+14
2022-12-06vfio/mlx5: Introduce vfio precopy ioctl implementationYishai Hadas2-0/+127
2022-12-06vfio/mlx5: Introduce SW headers for migration statesYishai Hadas3-4/+67
2022-12-06vfio/mlx5: Introduce device transitions of PRE_COPYYishai Hadas3-18/+184
2022-12-06vfio/mlx5: Refactor to use queue based data chunksYishai Hadas3-38/+136
2022-12-06vfio/mlx5: Refactor migration file stateYishai Hadas3-8/+12
2022-12-06vfio/mlx5: Refactor MKEY usageYishai Hadas3-113/+178
2022-12-06vfio/mlx5: Refactor PD usageYishai Hadas3-31/+71
2022-12-06vfio/mlx5: Enforce a single SAVE command at a timeYishai Hadas3-0/+14
2022-12-06vfio: Extend the device migration protocol with PRE_COPYJason Gunthorpe1-2/+72
2022-12-05vfio: Fold vfio_virqfd.ko into vfio.koJason Gunthorpe5-18/+25
2022-12-05vfio: Remove CONFIG_VFIO_SPAPR_EEHJason Gunthorpe2-8/+3
2022-12-05vfio: Move vfio_spapr_iommu_eeh_ioctl into vfio_iommu_spapr_tce.cJason Gunthorpe3-91/+53
2022-12-05vfio/spapr: Move VFIO_CHECK_EXTENSION into tce_iommu_ioctl()Jason Gunthorpe2-12/+4
2022-12-05vfio/pci: Move all the SPAPR PCI specific logic to vfio_pci_core.koJason Gunthorpe2-15/+9
2022-12-05vfio: Move vfio group specific code into group.cYi Liu4-870/+907
2022-12-05vfio: Refactor dma APIs for emulated devicesYi Liu3-34/+43
2022-12-05vfio: Wrap vfio group module init/clean code into helpersYi Liu1-20/+36
2022-12-05vfio: Refactor vfio_device open and closeYi Liu1-46/+87
2022-12-05vfio: Make vfio_device_open() truly device specificYi Liu1-17/+29
2022-12-05vfio: Swap order of vfio_device_container_register() and open_device()Yi Liu1-8/+9
2022-12-05vfio: Set device->group in helper functionYi Liu1-15/+26
2022-12-05vfio: Create wrappers for group register/unregisterYi Liu1-7/+16
2022-12-05vfio: Move the sanity check of the group to vfio_create_group()Jason Gunthorpe1-37/+25
2022-12-05vfio: Simplify vfio_create_group()Jason Gunthorpe1-23/+10
2022-12-02vfio/iova_bitmap: refactor iova_bitmap_set() to better handle page boundariesJoao Martins1-17/+13
2022-12-02Merge tag 'v6.1-rc7' into iommufd.git for-nextJason Gunthorpe2-5/+18
2022-12-02vfio: Make vfio_container optionally compiledJason Gunthorpe3-13/+91
2022-12-02vfio: Move container related MODULE_ALIAS statements into container.cJason Gunthorpe2-2/+3
2022-12-02vfio-iommufd: Support iommufd for emulated VFIO devicesJason Gunthorpe4-94/+206
2022-12-02vfio-iommufd: Support iommufd for physical VFIO devicesJason Gunthorpe10-2/+150
2022-12-02vfio-iommufd: Allow iommufd to be used in place of a container fdJason Gunthorpe4-16/+82
2022-12-02vfio: Use IOMMU_CAP_ENFORCE_CACHE_COHERENCY for vfio_file_enforced_coherent()Jason Gunthorpe3-17/+19
2022-12-02vfio: Rename vfio_device_assign/unassign_container()Jason Gunthorpe3-13/+11
2022-12-02vfio: Move vfio_device_assign_container() into vfio_device_first_open()Jason Gunthorpe2-15/+13
2022-12-02vfio: Move vfio_device driver open/close code to a functionJason Gunthorpe1-42/+53
2022-11-24driver core: make struct class.devnode() take a const *Greg Kroah-Hartman1-1/+1
2022-11-23vfio/fsl-mc: Remove linux/msi.h includeThomas Gleixner1-1/+0
2022-11-14vfio/mlx5: Fix a typo in mlx5vf_cmd_load_vhca_state()Yishai Hadas1-2/+2
2022-11-14vfio: Add an option to get migration data sizeYishai Hadas4-1/+61
2022-11-10vfio/pci: Check the device set open count on resetAnthony DeRossi1-5/+5
2022-11-10vfio: Export the device set open countAnthony DeRossi1-0/+13
2022-11-10vfio: Fix container device registration life cycleAnthony DeRossi1-5/+8
2022-11-10vfio: Remove vfio_free_deviceEric Farman5-22/+4
2022-11-10vfio/ccw: replace vfio_init_device with _alloc_Eric Farman1-5/+5
2022-11-09vfio/iova_bitmap: Fix PAGE_SIZE unaligned bitmapsJoao Martins1-2/+6
2022-11-09vfio/iova_bitmap: Explicitly include linux/slab.hJoao Martins1-0/+1
2022-11-09vfio: platform: Do not pass return buffer to ACPI _RST methodRafael Mendonca1-2/+1
2022-11-09vfio/mlx5: Switch to use module_pci_driver() macroShang XiaoJing1-12/+1
2022-10-12Merge tag 'vfio-v6.1-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds28-1757/+4088
2022-10-07vfio: More vfio_file_is_group() use casesAlex Williamson1-3/+3
2022-10-07vfio: Make the group FD disassociate from the iommu_groupJason Gunthorpe2-24/+44
2022-10-07vfio: Hold a reference to the iommu_group in kvm for SPAPRJason Gunthorpe1-2/+4
2022-10-07vfio: Add vfio_file_is_group()Jason Gunthorpe2-2/+16
2022-10-04vfio: Change vfio_group->group_rwsem to a mutexJason Gunthorpe3-29/+30
2022-10-04vfio: Remove the vfio_group->users and users_compJason Gunthorpe2-28/+20
2022-10-04vfio/mdev: add mdev available instance checking to the coreJason Gunthorpe2-4/+23
2022-10-04vfio/mdev: consolidate all the description sysfs into the core codeChristoph Hellwig2-9/+33
2022-10-04vfio/mdev: consolidate all the available_instance sysfs into the core codeChristoph Hellwig1-0/+11
2022-10-04vfio/mdev: consolidate all the name sysfs into the core codeChristoph Hellwig1-0/+10
2022-10-04vfio/mdev: consolidate all the device_api sysfs into the core codeJason Gunthorpe2-11/+28
2022-10-04vfio/mdev: remove mtype_get_parent_devChristoph Hellwig1-10/+0
2022-10-04vfio/mdev: remove mdev_parent_devChristoph Hellwig1-6/+0
2022-10-04vfio/mdev: unexport mdev_bus_typeChristoph Hellwig2-1/+1
2022-10-04vfio/mdev: remove mdev_from_devChristoph Hellwig1-4/+2
2022-10-04vfio/mdev: simplify mdev_type handlingChristoph Hellwig4-105/+30
2022-10-04vfio/mdev: embedd struct mdev_parent in the parent data structureChristoph Hellwig3-123/+24
2022-10-04vfio/mdev: make mdev.h standalone includableChristoph Hellwig3-5/+0
2022-09-27hisi_acc_vfio_pci: Update some log and comment formatsLongfang Liu2-12/+12
2022-09-27hisi_acc_vfio_pci: Remove useless macro definitionsLongfang Liu1-1/+0
2022-09-27hisi_acc_vfio_pci: Remove useless function parameterLongfang Liu1-3/+5
2022-09-27hisi_acc_vfio_pci: Fix device data address combination problemLongfang Liu1-4/+4
2022-09-27hisi_acc_vfio_pci: Fixes error return code issueLongfang Liu1-1/+1
2022-09-27vfio: Follow a strict lifetime for struct iommu_groupJason Gunthorpe2-23/+53
2022-09-26Merge branches 'apple/dart', 'arm/mediatek', 'arm/omap', 'arm/smmu', 'virtio'...Joerg Roedel1-1/+12
2022-09-22vfio: Move container code into drivers/vfio/container.cJason Gunthorpe4-691/+728
2022-09-22vfio: Split the register_device ops call into functionsJason Gunthorpe1-16/+23
2022-09-22vfio: Rename vfio_ioctl_check_extension()Jason Gunthorpe1-5/+6
2022-09-22vfio: Split out container code from the init/cleanup functionsJason Gunthorpe1-18/+36
2022-09-22vfio: Remove #ifdefs around CONFIG_VFIO_NOIOMMUJason Gunthorpe1-24/+19
2022-09-22vfio: Split the container logic into vfio_container_attach_group()Jason Gunthorpe1-30/+48
2022-09-22vfio: Rename __vfio_group_unset_container()Jason Gunthorpe1-6/+5
2022-09-22vfio: Add header guards and includes to drivers/vfio/vfio.hJason Gunthorpe1-0/+10
2022-09-21vfio: Add struct device to vfio_deviceYi Liu1-11/+53
2022-09-21vfio: Rename vfio_device_put() and vfio_device_try_get()Kevin Tian1-8/+9
2022-09-21vfio/ccw: Use the new device life cycle helpersKevin Tian1-18/+5
2022-09-21vfio/amba: Use the new device life cycle helpersKevin Tian3-80/+55
2022-09-21vfio/platform: Use the new device life cycle helpersKevin Tian3-23/+111
2022-09-21vfio/fsl-mc: Use the new device life cycle helpersYi Liu1-36/+49
2022-09-21vfio/hisi_acc: Use the new device life cycle helpersYi Liu2-73/+37
2022-09-21vfio/mlx5: Use the new device life cycle helpersYi Liu1-14/+36
2022-09-21vfio/pci: Use the new device life cycle helpersYi Liu2-10/+45
2022-09-21vfio: Add helpers for unifying vfio_device life cycleKevin Tian1-0/+92
2022-09-09Merge tag 'vfio-v6.0-rc5' of https://github.com/awilliam/linux-vfioLinus Torvalds1-0/+12
2022-09-08vfio/mlx5: Set the driver DMA logging callbacksYishai Hadas3-3/+14
2022-09-08vfio/mlx5: Manage error scenarios on trackerYishai Hadas2-2/+61
2022-09-08vfio/mlx5: Report dirty pages from trackerYishai Hadas2-0/+195
2022-09-08vfio/mlx5: Create and destroy page tracker objectYishai Hadas2-0/+148
2022-09-08vfio/mlx5: Init QP based resources for dirty trackingYishai Hadas2-12/+636
2022-09-08vfio: Introduce the DMA logging feature supportYishai Hadas3-0/+181
2022-09-08vfio: Add an IOVA bitmap supportJoao Martins2-2/+426
2022-09-08Merge remote-tracking branch 'mlx5/mlx5-vfio' into v6.1/vfio/nextAlex Williamson1-2/+6
2022-09-08vfio/fsl-mc: Fix a typo in a messageChristophe JAILLET1-2/+2
2022-09-07iommu/dma: Move public interfaces to linux/iommu.hRobin Murphy1-1/+0
2022-09-01hisi_acc_vfio_pci: Correct the function prefix for hssi_acc_drvdata()Shameer Kolothum1-10/+10
2022-09-01vfio: Remove vfio_group dev_counterJason Gunthorpe1-6/+3
2022-09-01vfio/pci: Implement VFIO_DEVICE_FEATURE_LOW_POWER_ENTRY_WITH_WAKEUPAbhishek Sahu1-3/+60
2022-09-01vfio/pci: Implement VFIO_DEVICE_FEATURE_LOW_POWER_ENTRY/EXITAbhishek Sahu1-8/+145
2022-09-01vfio/pci: Mask INTx during runtime suspendAbhishek Sahu3-6/+40
2022-09-01vfio: Increment the runtime PM usage count during IOCTL callAbhishek Sahu1-3/+49
2022-09-01vfio: Split VFIO_GROUP_GET_STATUS into a functionJason Gunthorpe1-31/+30
2022-09-01vfio: Follow the naming pattern for vfio_group_ioctl_unset_container()Jason Gunthorpe1-11/+16
2022-09-01vfio: Fold VFIO_GROUP_SET_CONTAINER into vfio_group_set_container()Jason Gunthorpe1-27/+24
2022-09-01vfio: Fold VFIO_GROUP_GET_DEVICE_FD into vfio_group_get_device_fd()Jason Gunthorpe1-13/+11
2022-09-01vfio-pci: Replace 'void __user *' with proper types in the ioctl functionsJason Gunthorpe1-30/+28
2022-09-01vfio-pci: Re-indent what was vfio_pci_core_ioctl()Jason Gunthorpe1-362/+349
2022-09-01vfio-pci: Break up vfio_pci_core_ioctl() into one function per ioctlJason Gunthorpe1-29/+68
2022-09-01vfio-pci: Fix vfio_pci_ioeventfd() to return intJason Gunthorpe2-4/+4
2022-09-01vfio/pci: Simplify the is_intx/msi/msix/etc definesJason Gunthorpe3-8/+18
2022-09-01vfio/pci: Rename vfio_pci_register_dev_region()Jason Gunthorpe2-8/+8
2022-09-01vfio/pci: Split linux/vfio_pci_core.hJason Gunthorpe8-7/+144
2022-08-31vfio/type1: Unpin zero pagesAlex Williamson1-0/+12
2022-08-29KVM: s390: pci: Hook to access KVM lowlevel from VFIOPierre Morel1-2/+6
2022-08-08vfio: Move vfio.c to vfio_main.cJason Gunthorpe2-0/+2
2022-08-06Merge tag 'vfio-v6.0-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds12-253/+241
2022-08-04Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds4-6/+52
2022-08-03Merge tag 'drm-next-2022-08-03' of git://anongit.freedesktop.org/drm/drmLinus Torvalds1-0/+5
2022-08-03Merge tag 'pull-work.lseek' of git://git.kernel.org/pub/scm/linux/kernel/git/...Linus Torvalds1-1/+1
2022-08-01vfio/pci: fix the wrong wordBo Liu1-1/+1
2022-08-01Merge remote-tracking branch 'kvm/next' into kvm-next-5.20Paolo Bonzini4-6/+52
2022-07-25vfio: Replace phys_pfn with pages for vfio_pin_pages()Nicolin Chen3-13/+16
2022-07-25vfio: Rename user_iova of vfio_dma_rw()Nicolin Chen1-3/+3