aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vfio
AgeCommit message (Expand)AuthorFilesLines
2022-09-09Merge tag 'vfio-v6.0-rc5' of https://github.com/awilliam/linux-vfioLinus Torvalds1-0/+12
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
2022-07-25vfio: Pass in starting IOVA to vfio_pin/unpin_pages APINicolin Chen3-25/+21
2022-07-23vfio: Make vfio_unpin_pages() return voidNicolin Chen3-24/+14
2022-07-22vfio/spapr_tce: Fix the commentAlexey Kardashevskiy1-1/+4
2022-07-20vfio: Replace the iommu notifier with a device listJason Gunthorpe3-76/+80
2022-07-20vfio: Replace the DMA unmapping notifier with a callbackJason Gunthorpe2-85/+47
2022-07-16vfio: do not set FMODE_LSEEK flagJason A. Donenfeld1-1/+1
2022-07-11vfio-pci/zdev: different maxstbl for interpreted devicesMatthew Rosato1-2/+4
2022-07-11vfio-pci/zdev: add function handle to clp base capabilityMatthew Rosato1-2/+3
2022-07-11vfio-pci/zdev: add open/close device hooksMatthew Rosato2-1/+33
2022-07-11vfio/pci: introduce CONFIG_VFIO_PCI_ZDEV_KVMMatthew Rosato2-1/+12
2022-07-07Merge branches 'v5.20/vfio/spapr_tce-unused-arg-v1', 'v5.20/vfio/comment-typo...Alex Williamson1-1/+1
2022-07-07vfio/spapr_tce: Remove the unused parameters containerDeming Wang1-5/+4
2022-07-06vfio/pci: fix the wrong wordBo Liu1-1/+1
2022-07-05vfio: Move IOMMU_CAP_CACHE_COHERENCY test to after we know we have a groupJason Gunthorpe1-7/+10
2022-06-30Merge branches 'v5.20/vfio/migration-enhancements-v3', 'v5.20/vfio/simplify-b...Alex Williamson2-32/+36
2022-06-30vfio: Move "device->open_count--" out of group_rwsem in vfio_device_open()Yi Liu1-1/+1
2022-06-30vfio: remove useless judgementLi Zhe1-6/+0
2022-06-30vfio: Clear the caps->buf to NULL after freeSchspa Shi1-0/+1
2022-06-30vfio: check iommu_group_set_name() return valueLiam Ni1-1/+3
2022-06-30vfio: Split migration ops from main device opsYishai Hadas6-14/+31
2022-06-30vfio/mlx5: Protect mlx5vf_disable_fds() upon close deviceYishai Hadas3-1/+12
2022-06-27vfio: check vfio_register_iommu_driver() return valueBo Liu1-3/+7
2022-06-27vfio: Use device_iommu_capable()Robin Murphy1-1/+1
2022-06-27vfio/type1: Simplify bus_type determinationRobin Murphy1-20/+23
2022-06-27vfio: de-extern-ify function prototypesAlex Williamson2-12/+11
2022-06-27vfio/pci: Remove console driversAlex Williamson1-0/+5
2022-06-01Merge tag 'vfio-v5.19-rc1' of https://github.com/awilliam/linux-vfioLinus Torvalds8-757/+780
2022-05-31Merge tag 'iommu-updates-v5.19' of git://git.kernel.org/pub/scm/linux/kernel/...Linus Torvalds6-241/+45
2022-05-24vfio: remove VFIO_GROUP_NOTIFY_SET_KVMMatthew Rosato1-54/+29
2022-05-23vfio/pci: Add driver_managed_dma to the new vfio_pci driversJason Gunthorpe2-0/+2
2022-05-23vfio: Do not manipulate iommu dma_owner for fake iommu groupsJason Gunthorpe1-5/+10
2022-05-20Merge branches 'apple/dart', 'arm/mediatek', 'arm/msm', 'arm/smmu', 'ppc/pamu...Joerg Roedel6-241/+45
2022-05-18vfio/pci: Move the unused device into low power state with runtime PMAbhishek Sahu1-57/+113
2022-05-18vfio/pci: Virtualize PME related registers bits and initialize to zeroAbhishek Sahu1-1/+32
2022-05-18vfio/pci: Change the PF power state to D0 before enabling VFsAbhishek Sahu1-0/+16
2022-05-18vfio/pci: Invalidate mmaps and block the access in D3hot power stateAbhishek Sahu1-2/+21
2022-05-17vfio: Change struct vfio_group::container_users to a non-atomic intJason Gunthorpe1-15/+13
2022-05-17vfio: Simplify the life cycle of the group FDJason Gunthorpe1-28/+24
2022-05-17vfio: Fully lock struct vfio_group::containerJason Gunthorpe1-26/+40
2022-05-17vfio: Split up vfio_group_get_device_fd()Jason Gunthorpe1-23/+56
2022-05-17vfio: Change struct vfio_group::opened from an atomic to boolJason Gunthorpe1-19/+27
2022-05-17vfio: Add missing locking for struct vfio_group::kvmJason Gunthorpe1-4/+15
2022-05-13vfio/pci: Use the struct file as the handle not the vfio_groupJason Gunthorpe2-73/+39
2022-05-13vfio: Change vfio_group_set_kvm() to vfio_file_set_kvm()Jason Gunthorpe1-8/+21
2022-05-13vfio: Change vfio_external_check_extension() to vfio_file_enforced_coherent()Jason Gunthorpe1-3/+27
2022-05-13vfio: Remove vfio_external_group_match_file()Jason Gunthorpe1-9/+0
2022-05-13vfio: Change vfio_external_user_iommu_id() to vfio_file_iommu_group()Jason Gunthorpe1-7/+14
2022-05-13vfio: Delete container_qJason Gunthorpe1-20/+0
2022-05-13Merge remote-tracking branch 'iommu/vfio-notifier-fix' into v5.19/vfio/nextAlex Williamson5-230/+19
2022-05-11vfio/pci: Remove vfio_device_get_from_dev()Jason Gunthorpe3-67/+10
2022-05-11vfio/pci: Have all VFIO PCI drivers store the vfio_pci_core_device in drvdataJason Gunthorpe4-9/+27
2022-05-11vfio: Remove calls to vfio_group_add_container_user()Jason Gunthorpe1-63/+17
2022-05-11vfio: Remove dead codeJason Gunthorpe1-151/+0
2022-05-11vfio/mdev: Pass in a struct vfio_device * to vfio_dma_rw()Jason Gunthorpe1-13/+11
2022-05-11vfio/mdev: Pass in a struct vfio_device * to vfio_pin/unpin_pages()Jason Gunthorpe1-30/+16
2022-05-11vfio: Make vfio_(un)register_notifier accept a vfio_deviceJason Gunthorpe1-19/+9
2022-05-11vfio: Stop using iommu_present()Robin Murphy1-3/+3
2022-05-11Merge tag 'gvt-next-2022-04-29' into v5.19/vfio/nextAlex Williamson6-231/+28
2022-05-11Merge tag 'mlx5-lm-parallel' of https://git.kernel.org/pub/scm/linux/kernel/g...Alex Williamson3-135/+275
2022-05-11vfio/mlx5: Run the SAVE state command in an async modeYishai Hadas3-9/+131
2022-05-11vfio/mlx5: Refactor to enable VFs migration in parallelYishai Hadas3-99/+59
2022-05-11vfio/mlx5: Manage the VF attach/detach callback from the PFYishai Hadas3-34/+92
2022-05-11Merge tag 'drm-intel-next-2022-05-06' of git://anongit.freedesktop.org/drm/dr...Dave Airlie6-231/+28
2022-04-28vfio: Require that devices support DMA cache coherenceJason Gunthorpe1-0/+7
2022-04-28vfio: Move the Intel no-snoop control off of IOMMU_CACHEJason Gunthorpe1-11/+19
2022-04-28vfio: Remove iommu group notifierLu Baolu1-147/+0
2022-04-28vfio: Delete the unbound_listJason Gunthorpe1-72/+2
2022-04-28vfio: Remove use of vfio_group_viable()Lu Baolu1-12/+6
2022-04-28vfio: Set DMA ownership for VFIO devicesLu Baolu5-1/+13
2022-04-21vfio/mdev: Use the driver core to create the 'remove' fileJason Gunthorpe3-9/+13
2022-04-21vfio/mdev: Remove mdev_parent_opsJason Gunthorpe3-12/+9
2022-04-21vfio/mdev: Remove mdev_parent_ops dev_attr_groupsJason Gunthorpe1-10/+2
2022-04-21vfio/mdev: Remove vfio_mdev.cJason Gunthorpe5-201/+5
2022-04-13vfio/pci: Fix vf_token mechanism when device-specific VF drivers are usedJason Gunthorpe1-50/+74
2022-03-15hisi_acc_vfio_pci: Use its own PCI reset_done error handlerShameer Kolothum2-4/+57
2022-03-15hisi_acc_vfio_pci: Add support for VFIO live migrationLongfang Liu3-18/+1186
2022-03-15hisi_acc_vfio_pci: Restrict access to VF dev BAR2 migration regionShameer Kolothum1-0/+126
2022-03-15hisi_acc_vfio_pci: add new vfio_pci driver for HiSilicon ACC devicesShameer Kolothum5-0/+118
2022-03-09vfio/mlx5: Fix to not use 0 as NULL pointerYishai Hadas1-2/+2
2022-03-03Merge branches 'v5.18/vfio/next/mlx5-migration-v10', 'v5.18/vfio/next/pm-fixe...Alex Williamson2-0/+63
2022-03-03vfio/mlx5: Use its own PCI reset_done error handlerYishai Hadas1-2/+55
2022-03-03vfio/pci: Expose vfio_pci_core_aer_err_detected()Yishai Hadas1-3/+4
2022-03-03vfio/mlx5: Implement vfio_pci driver for mlx5 devicesYishai Hadas6-0/+643
2022-03-03vfio/mlx5: Expose migration commands over mlx5 deviceYishai Hadas2-0/+294
2022-03-03vfio: Extend the device migration protocol with RUNNING_P2PJason Gunthorpe1-18/+69
2022-03-03vfio: Define device migration protocol v2Jason Gunthorpe1-0/+199
2022-03-03vfio: Have the core code decode the VFIO_DEVICE_FEATURE ioctlJason Gunthorpe3-61/+80
2022-02-22vfio/pci: wake-up devices around reset functionsAbhishek Sahu1-0/+48
2022-02-22vfio/pci: fix memory leak during D3hot to D0 transitionAbhishek Sahu1-0/+13
2022-02-22vfio/pci: Stub vfio_pci_vga_rw when !CONFIG_VFIO_PCI_VGAAlex Williamson1-0/+2
2022-01-20Merge tag 'vfio-v5.17-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds2-7/+10
2021-12-21vfio/iommu_type1: replace kfree with kvfreeJiacheng Shi1-1/+1
2021-12-21vfio/pci: Resolve sparse endian warnings in IGD supportAlex Williamson1-6/+9
2021-12-16bus: fsl-mc: fsl-mc-allocator: Rework MSI handlingThomas Gleixner1-2/+2
2021-11-30vfio/pci: Fix OpRegion readZhenyu Wang1-2/+3
2021-11-30vfio: remove all kernel-doc notationRandy Dunlap1-14/+14
2021-10-15vfio: Use cdev_device_add() instead of device_create()Jason Gunthorpe1-101/+92
2021-10-15vfio: Use a refcount_t instead of a kref in the vfio_groupJason Gunthorpe1-12/+9
2021-10-15vfio: Don't leak a group reference if the group already existsJason Gunthorpe1-14/+8
2021-10-15vfio: Do not open code the group list search in vfio_create_group()Jason Gunthorpe1-25/+30
2021-10-15vfio: Delete vfio_get/put_group from vfio_iommu_group_notifier()Jason Gunthorpe1-85/+15
2021-10-12Merge branch 'v5.16/vfio/colin_xu_igd_opregion_2.0_v8' into v5.16/vfio/nextAlex Williamson1-59/+175
2021-10-12vfio/pci: Add OpRegion 2.0+ Extended VBT support.Colin Xu1-59/+175
2021-10-11Merge branch 'v5.16/vfio/diana-fsl-reset-v2' into v5.16/vfio/nextAlex Williamson1-15/+30
2021-09-30Merge branch 'v5.16/vfio/hch-cleanup-vfio-iommu_group-creation-v6' into v5.16...Alex Williamson9-432/+299
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/spapr_tce: reject mediated devicesChristoph Hellwig1-0/+3
2021-09-30vfio: clean up the check for mediated device in vfio_iommu_type1Christoph Hellwig4-46/+34
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 Hellwig4-0/+50
2021-09-30vfio: remove unused method from vfio_iommu_driver_opsChristoph Hellwig1-50/+0
2021-09-30vfio: simplify iommu group allocation for mediated devicesChristoph Hellwig3-68/+71
2021-09-30vfio: remove the iommudata hack for noiommu groupsChristoph Hellwig1-13/+8
2021-09-30vfio: refactor noiommu group creationChristoph Hellwig1-52/+52
2021-09-30vfio: factor out a vfio_group_find_or_alloc helperChristoph Hellwig1-25/+35
2021-09-30vfio: remove the iommudata check in vfio_noiommu_attach_groupChristoph Hellwig1-1/+1
2021-09-30vfio: factor out a vfio_iommu_driver_allowed helperChristoph Hellwig1-14/+19
2021-09-30vfio: Move vfio_iommu_group_get() to vfio_register_group_dev()Jason Gunthorpe4-60/+19
2021-09-28vfio/fsl-mc: Add per device reset supportDiana Craciun1-15/+30
2021-09-23vfio/pci: add missing identifier name in argument of function prototypeColin Ian King1-1/+1
2021-09-02Merge tag 'vfio-v5.15-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds25-2812/+2547
2021-08-26Merge branches 'v5.15/vfio/spdx-license-cleanups', 'v5.15/vfio/dma-valid-wait...Alex Williamson16-2425/+2335
2021-08-26vfio/pci: Introduce vfio_pci_core.koMax Gurtovoy10-281/+64
2021-08-26vfio: Use kconfig if XX/endif blocks instead of repeating 'depends on'Jason Gunthorpe6-26/+26
2021-08-26vfio: Use select for eventfdJason Gunthorpe4-4/+6
2021-08-26PCI / VFIO: Add 'override_only' support for VFIO PCI sub systemMax Gurtovoy1-1/+8
2021-08-26vfio/pci: Move module parameters to vfio_pci.cYishai Hadas3-12/+33
2021-08-26vfio/pci: Move igd initialization to vfio_pci.cMax Gurtovoy3-36/+41
2021-08-26vfio/pci: Split the pci_driver code out of vfio_pci_core.cMax Gurtovoy4-215/+304
2021-08-26vfio/pci: Include vfio header in vfio_pci_core.hMax Gurtovoy2-1/+1
2021-08-26vfio/pci: Rename ops functions to fit core namingsMax Gurtovoy1-16/+16
2021-08-26vfio/pci: Rename vfio_pci_device to vfio_pci_core_deviceMax Gurtovoy7-155/+158
2021-08-26vfio/pci: Rename vfio_pci_private.h to vfio_pci_core.hMax Gurtovoy7-9/+9
2021-08-26vfio/pci: Rename vfio_pci.c to vfio_pci_core.cMax Gurtovoy2-1/+1
2021-08-24vfio/type1: Fix vfio_find_dma_valid returnAnthony Yznaga1-4/+4
2021-08-24vfio-pci/zdev: Remove repeated verbose license textCai Huoqing1-6/+1
2021-08-24vfio: platform: reset: Convert to SPDX identifierCai Huoqing1-9/+1
2021-08-11vfio: Remove struct vfio_device_ops open/releaseJason Gunthorpe2-35/+1
2021-08-11vfio/pci: Reorganize VFIO_DEVICE_PCI_HOT_RESET to use the device setJason Gunthorpe1-124/+89
2021-08-11vfio/pci: Change vfio_pci_try_bus_reset() to use the dev_setJason Gunthorpe1-92/+82
2021-08-11vfio/pci: Move to the device set infrastructureYishai Hadas2-132/+37
2021-08-11vfio/platform: Use open_device() instead of open coding a refcnt schemeJason Gunthorpe2-48/+32
2021-08-11vfio/fsl: Move to the device set infrastructureJason Gunthorpe3-139/+28
2021-08-11vfio: Provide better generic support for open/release vfio_device_opsJason Gunthorpe2-24/+151
2021-08-11vfio: Introduce a vfio_uninit_group_dev() API callMax Gurtovoy5-11/+27
2021-08-11Merge tag 'bus_remove_return_void-5.15' of git://git.kernel.org/pub/scm/linux...Dave Airlie1-3/+1
2021-08-02vfio/mdev: don't warn if ->request is not setChristoph Hellwig1-4/+0
2021-08-02vfio/mdev: turn mdev_init into a subsys_initcallChristoph Hellwig1-1/+1
2021-08-02vfio/pci: Make vfio_pci_regops->rw() return ssize_tYishai Hadas2-6/+6
2021-08-02vfio: Use config not menuconfig for VFIO_NOIOMMUJason Gunthorpe1-1/+1
2021-07-23Merge tag 'drm-misc-next-2021-07-22' of git://anongit.freedesktop.org/drm/drm...Dave Airlie1-6/+5
2021-07-21bus: Make remove callback return voidUwe Kleine-König1-3/+1
2021-07-21vgaarb: don't pass a cookie to vga_client_registerChristoph Hellwig1-5/+4
2021-07-21vgaarb: remove the unused irq_set_state argument to vga_client_registerChristoph Hellwig1-1/+1
2021-07-21vgaarb: provide a vga_client_unregister wrapperChristoph Hellwig1-1/+1
2021-07-03Merge tag 'vfio-v5.14-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds14-114/+107
2021-06-30vfio/pci: Handle concurrent vma faultsAlex Williamson1-8/+21
2021-06-29vfio: use vma_lookup() instead of find_vma_intersection()Liam Howlett1-1/+1
2021-06-24vfio: use the new pci_dev_trylock() helper to simplify try lockLuis Chamberlain1-7/+4
2021-06-21vfio/iommu_type1: rename vfio_group struck to vfio_iommu_groupMax Gurtovoy1-16/+18
2021-06-21Merge branch 'hch-mdev-direct-v4' into v5.14/vfio/nextAlex Williamson6-42/+50
2021-06-21vfio/mdev: Allow the mdev_parent_ops to specify the device driver to bindJason Gunthorpe2-8/+32
2021-06-21vfio/mdev: Remove CONFIG_VFIO_MDEV_DEVICEJason Gunthorpe5-34/+18
2021-06-15vfio/platform: remove unneeded parent_module attributeMax Gurtovoy3-3/+0
2021-06-15vfio: centralize module refcount in subsystem layerMax Gurtovoy5-38/+14
2021-05-24vfio/platform: fix module_put call in error flowMax Gurtovoy1-1/+1
2021-05-24vfio/iommu_type1: Use struct_size() for kzalloc()Gustavo A. R. Silva1-1/+1
2021-05-24vfio/pci: zap_vma_ptes() needs MMURandy Dunlap1-0/+1
2021-05-24vfio/pci: Fix error return code in vfio_ecap_init()Zhen Lei1-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-28Merge tag 'vfio-v5.13-rc1' of git://github.com/awilliam/linux-vfioLinus Torvalds21-1109/+572
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-13vfio/pci: Add missing range check in vfio_pci_mmapChristian A. Ehrhardt1-1/+3
2021-04-12vfio/mdev: Correct the function signatures for the mdev_type_attributesJason Gunthorpe2-7/+18
2021-04-12vfio/mdev: Remove kobj from mdev_parent_ops->create()Jason Gunthorpe1-1/+1
2021-04-07vfio/mdev: Add mdev/mtype_get_type_group_id()Jason Gunthorpe3-7/+30
2021-04-07vfio/mdev: Remove duplicate storage of parent in mdev_deviceJason Gunthorpe2-15/+12
2021-04-07vfio/mdev: Add missing error handling to dev_set_name()Jason Gunthorpe1-1/+3
2021-04-07vfio/mdev: Reorganize mdev_device_create()Jason Gunthorpe1-33/+27
2021-04-07vfio/mdev: Add missing reference counting to mdev_typeJason Gunthorpe1-0/+4
2021-04-07vfio/mdev: Expose mdev_get/put_parent to mdev_private.hJason Gunthorpe2-20/+15
2021-04-07vfio/mdev: Use struct mdev_type in struct mdev_deviceJason Gunthorpe3-19/+15
2021-04-07vfio/mdev: Simplify driver registrationJason Gunthorpe2-10/+13
2021-04-07vfio/mdev: Add missing typesafety around mdev_deviceJason Gunthorpe6-114/+35
2021-04-07vfio/mdev: Do not allow a mdev_type to have a NULL parent pointerJason Gunthorpe1-1/+1