/linux/drivers/vfio/ |
H A D | Makefile | 2 obj-$(CONFIG_VFIO) += vfio.o 4 vfio-y += vfio_main.o 5 vfio-$(CONFIG_VFIO_DEVICE_CDEV) += device_cdev.o 6 vfio-$(CONFIG_VFIO_GROUP) += group.o 7 vfio-$(CONFIG_IOMMUFD) += iommufd.o 8 vfio-$(CONFIG_VFIO_CONTAINER) += container.o 9 vfio-$(CONFIG_VFIO_VIRQFD) += virqfd.o 10 vfio-$(CONFIG_VFIO_DEBUGFS) += debugfs.o
|
H A D | group.c | 18 static struct vfio { struct 24 } vfio; argument 518 lockdep_assert_held(&vfio.group_lock); in vfio_group_find_from_iommu() 524 list_for_each_entry(group, &vfio.group_list, vfio_next) { in vfio_group_find_from_iommu() 539 ida_free(&vfio.group_ida, MINOR(group->dev.devt)); in vfio_group_release() 553 minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL); in vfio_group_alloc() 560 group->dev.devt = MKDEV(MAJOR(vfio.group_devt), minor); in vfio_group_alloc() 561 group->dev.class = vfio.class; in vfio_group_alloc() 587 lockdep_assert_held(&vfio.group_lock); in vfio_create_group() 607 list_add(&group->vfio_next, &vfio.group_list); in vfio_create_group() [all …]
|
H A D | container.c | 27 static struct vfio { struct 30 } vfio; argument 104 mutex_lock(&vfio.iommu_drivers_lock); in vfio_register_iommu_driver() 107 list_for_each_entry(tmp, &vfio.iommu_drivers_list, vfio_next) { in vfio_register_iommu_driver() 109 mutex_unlock(&vfio.iommu_drivers_lock); in vfio_register_iommu_driver() 115 list_add(&driver->vfio_next, &vfio.iommu_drivers_list); in vfio_register_iommu_driver() 117 mutex_unlock(&vfio.iommu_drivers_lock); in vfio_register_iommu_driver() 127 mutex_lock(&vfio.iommu_drivers_lock); in vfio_unregister_iommu_driver() 128 list_for_each_entry(driver, &vfio.iommu_drivers_list, vfio_next) { in vfio_unregister_iommu_driver() 131 mutex_unlock(&vfio.iommu_drivers_lock); in vfio_unregister_iommu_driver() [all …]
|
H A D | Kconfig | 12 See Documentation/driver-api/vfio.rst for more details. 18 bool "Support for the VFIO cdev /dev/vfio/devices/vfioX" 24 /dev/vfio/devices/vfioX, and then bind the device fd with an iommufd 31 bool "Support for the VFIO group /dev/vfio/$group_id" 41 bool "Support for the VFIO container /dev/vfio/vfio" 89 cause the VFIO code create a top-level debug/vfio directory 93 source "drivers/vfio/pci/Kconfig" 94 source "drivers/vfio/platform/Kconfig" 95 source "drivers/vfio/mdev/Kconfig" 96 source "drivers/vfio/fsl-mc/Kconfig" [all …]
|
H A D | vfio_main.c | 50 static struct vfio { struct 55 } vfio; argument 190 ida_free(&vfio.device_ida, device->index); in vfio_device_release() 196 simple_release_fs(&vfio.vfs_mount, &vfio.fs_count); in vfio_device_release() 256 ret = simple_pin_fs(&vfio_fs_type, &vfio.vfs_mount, &vfio.fs_count); in vfio_fs_inode_new() 260 inode = alloc_anon_inode(vfio.vfs_mount->mnt_sb); in vfio_fs_inode_new() 262 simple_release_fs(&vfio.vfs_mount, &vfio.fs_count); in vfio_fs_inode_new() 275 ret = ida_alloc_max(&vfio.device_ida, MINORMASK, GFP_KERNEL); in vfio_init_device() 299 device->device.class = vfio.device_class; in vfio_init_device() 305 simple_release_fs(&vfio.vfs_mount, &vfio.fs_count); in vfio_init_device() [all …]
|
/linux/drivers/vfio/platform/ |
H A D | Makefile | 2 vfio-platform-base-y := vfio_platform_common.o vfio_platform_irq.o 3 obj-$(CONFIG_VFIO_PLATFORM_BASE) += vfio-platform-base.o 6 vfio-platform-y := vfio_platform.o 7 obj-$(CONFIG_VFIO_PLATFORM) += vfio-platform.o 9 vfio-amba-y := vfio_amba.o 10 obj-$(CONFIG_VFIO_AMBA) += vfio-amba.o
|
/linux/Documentation/ABI/testing/ |
H A D | debugfs-vfio | 1 What: /sys/kernel/debug/vfio 6 of vfio devices, it's a common directory for all vfio devices. 10 What: /sys/kernel/debug/vfio/<device>/migration 15 of vfio devices that support live migration. 16 The debugfs of each vfio device that supports live migration 19 What: /sys/kernel/debug/vfio/<device>/migration/state 23 Description: Read the live migration status of the vfio device.
|
H A D | sysfs-devices-vfio-dev | 1 What: /sys/.../<device>/vfio-dev/vfioX/ 6 vfio driver. The layout under this directory matches what 8 index marking this device in vfio.
|
/linux/Documentation/arch/s390/ |
H A D | vfio-ccw.rst | 2 vfio-ccw: the basic infrastructure 8 Here we describe the vfio support for I/O subchannel devices for 9 Linux/s390. Motivation for vfio-ccw is to passthrough subchannels to a 10 virtual machine, while vfio is the means. 20 Thus when we introduce vfio support for these devices, we realize it 21 with a mediated device (mdev) implementation. The vfio mdev will be 23 vfio framework. And we add read/write callbacks for special vfio I/O 40 For vfio mediated device framework: 41 - Documentation/driver-api/vfio-mediated-device.rst 43 Motivation of vfio-ccw [all …]
|
H A D | index.rst | 15 vfio-ap 16 vfio-ap-locking 17 vfio-ccw
|
/linux/Documentation/networking/device_drivers/ethernet/amd/ |
H A D | pds_vfio_pci.rst | 14 The ``pds-vfio-pci`` module is a PCI driver that supports Live Migration 20 The pds-vfio-pci device is enabled via multiple configuration steps and 26 example assumes the pds_core and pds-vfio-pci modules are already 38 # Prevent non-vfio VF driver from probing the VF device 44 # Allow the VF to be bound to the pds-vfio-pci driver 45 echo "pds-vfio-pci" > /sys/class/pci_bus/$PF_BUS/device/$VF_BDF/driver_override 47 # Bind the VF to the pds-vfio-pci driver 48 echo "$VF_BDF" > /sys/bus/pci/drivers/pds-vfio-pci/bind 50 After performing the steps above, a file in /dev/vfio/<iommu_group>
|
/linux/Documentation/driver-api/ |
H A D | vfio-pci-device-specific-driver-acceptance.rst | 3 Acceptance criteria for vfio-pci device specific driver variants 8 The vfio-pci driver exists as a device agnostic driver using the 11 vfio-pci driver does include some device specific support, further 13 sustainable. The vfio-pci driver has therefore split out 14 vfio-pci-core as a library that may be reused to implement features 21 accessible via the vfio-pci base driver. Authors of such drivers 32 available to the user via vfio-pci, what safeguards exist to validate 35 to the overall vfio maintainer.
|
H A D | index.rst | 47 vfio-mediated-device 48 vfio 49 vfio-pci-device-specific-driver-acceptance
|
/linux/drivers/vfio/platform/reset/ |
H A D | Makefile | 2 vfio-platform-calxedaxgmac-y := vfio_platform_calxedaxgmac.o 3 vfio-platform-amdxgbe-y := vfio_platform_amdxgbe.o 5 obj-$(CONFIG_VFIO_PLATFORM_CALXEDAXGMAC_RESET) += vfio-platform-calxedaxgmac.o 6 obj-$(CONFIG_VFIO_PLATFORM_AMDXGBE_RESET) += vfio-platform-amdxgbe.o
|
/linux/drivers/vfio/fsl-mc/ |
H A D | Makefile | 3 vfio-fsl-mc-y := vfio_fsl_mc.o vfio_fsl_mc_intr.o 4 obj-$(CONFIG_VFIO_FSL_MC) += vfio-fsl-mc.o
|
/linux/drivers/vfio/pci/nvgrace-gpu/ |
H A D | Makefile | 2 obj-$(CONFIG_NVGRACE_GPU_VFIO_PCI) += nvgrace-gpu-vfio-pci.o 3 nvgrace-gpu-vfio-pci-y := main.o
|
/linux/drivers/vfio/pci/hisilicon/ |
H A D | Makefile | 2 obj-$(CONFIG_HISI_ACC_VFIO_PCI) += hisi-acc-vfio-pci.o 3 hisi-acc-vfio-pci-y := hisi_acc_vfio_pci.o
|
/linux/drivers/vfio/pci/mlx5/ |
H A D | Makefile | 2 obj-$(CONFIG_MLX5_VFIO_PCI) += mlx5-vfio-pci.o 3 mlx5-vfio-pci-y := main.o cmd.o
|
/linux/drivers/vfio/pci/pds/ |
H A D | Makefile | 4 obj-$(CONFIG_PDS_VFIO_PCI) += pds-vfio-pci.o 6 pds-vfio-pci-y := \
|
H A D | Kconfig | 18 will be called pds-vfio-pci.
|
/linux/Documentation/translations/zh_CN/driver-api/ |
H A D | index.rst | 116 * vfio-mediated-device 117 * vfio 118 * vfio-pci-device-specific-driver-acceptance
|
/linux/samples/vfio-mdev/ |
H A D | README.rst | 1 Using the mtty vfio-mdev sample code 4 mtty is a sample vfio-mdev driver that demonstrates how to use the mediated 50 -device vfio-pci,\
|
/linux/Documentation/virt/kvm/devices/ |
H A D | index.rst | 16 vfio
|
/linux/virt/kvm/ |
H A D | Makefile.kvm | 9 kvm-$(CONFIG_KVM_VFIO) += $(KVM)/vfio.o
|
/linux/samples/ |
H A D | Makefile | 33 obj-y += vfio-mdev/
|