/linux-6.12.1/drivers/vfio/ |
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
|
D | group.c | 18 static struct vfio { struct 24 } vfio; argument 520 lockdep_assert_held(&vfio.group_lock); in vfio_group_find_from_iommu() 526 list_for_each_entry(group, &vfio.group_list, vfio_next) { in vfio_group_find_from_iommu() 541 ida_free(&vfio.group_ida, MINOR(group->dev.devt)); in vfio_group_release() 555 minor = ida_alloc_max(&vfio.group_ida, MINORMASK, GFP_KERNEL); in vfio_group_alloc() 562 group->dev.devt = MKDEV(MAJOR(vfio.group_devt), minor); in vfio_group_alloc() 563 group->dev.class = vfio.class; in vfio_group_alloc() 589 lockdep_assert_held(&vfio.group_lock); in vfio_create_group() 609 list_add(&group->vfio_next, &vfio.group_list); in vfio_create_group() [all …]
|
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 …]
|
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 …]
|
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-6.12.1/drivers/vfio/platform/ |
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-6.12.1/Documentation/ABI/testing/ |
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.
|
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-6.12.1/drivers/vfio/pci/ |
D | Makefile | 3 vfio-pci-core-y := vfio_pci_core.o vfio_pci_intrs.o vfio_pci_rdwr.o vfio_pci_config.o 4 vfio-pci-core-$(CONFIG_VFIO_PCI_ZDEV_KVM) += vfio_pci_zdev.o 5 obj-$(CONFIG_VFIO_PCI_CORE) += vfio-pci-core.o 7 vfio-pci-y := vfio_pci.o 8 vfio-pci-$(CONFIG_VFIO_PCI_IGD) += vfio_pci_igd.o 9 obj-$(CONFIG_VFIO_PCI) += vfio-pci.o
|
D | Kconfig | 48 To enable Intel IGD assignment through vfio-pci, say Y. 60 To enable s390x KVM vfio-pci extensions, say Y. 62 source "drivers/vfio/pci/mlx5/Kconfig" 64 source "drivers/vfio/pci/hisilicon/Kconfig" 66 source "drivers/vfio/pci/pds/Kconfig" 68 source "drivers/vfio/pci/virtio/Kconfig" 70 source "drivers/vfio/pci/nvgrace-gpu/Kconfig" 72 source "drivers/vfio/pci/qat/Kconfig"
|
/linux-6.12.1/Documentation/arch/s390/ |
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 …]
|
D | index.rst | 15 vfio-ap 16 vfio-ap-locking 17 vfio-ccw
|
/linux-6.12.1/Documentation/networking/device_drivers/ethernet/amd/ |
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-6.12.1/Documentation/driver-api/ |
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.
|
D | vfio.rst | 81 is created by simply opening the /dev/vfio/vfio character device. 90 VFIO group will appear for the group as /dev/vfio/$GROUP, where 100 the VFIO group character device (/dev/vfio/$GROUP) and using the 127 pci bus, therefore the user will make use of vfio-pci to manage the 130 # modprobe vfio-pci 132 Binding this device to the vfio-pci driver creates the VFIO group 138 # echo 1102 0002 > /sys/bus/pci/drivers/vfio-pci/new_id 156 bind this device to the vfio-pci driver (vfio-pci does not currently 160 unprivileged operation is desired (note that /dev/vfio/vfio provides 164 # chown user:user /dev/vfio/26 [all …]
|
/linux-6.12.1/drivers/vfio/platform/reset/ |
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-6.12.1/drivers/iommu/iommufd/ |
D | Kconfig | 16 bool "IOMMUFD provides the VFIO container /dev/vfio/vfio" 20 IOMMUFD will provide /dev/vfio/vfio instead of VFIO. This relies on
|
/linux-6.12.1/drivers/vfio/pci/virtio/ |
D | Makefile | 2 obj-$(CONFIG_VIRTIO_VFIO_PCI) += virtio-vfio-pci.o 3 virtio-vfio-pci-y := main.o
|
/linux-6.12.1/drivers/vfio/cdx/ |
D | Makefile | 6 obj-$(CONFIG_VFIO_CDX) += vfio-cdx.o 8 vfio-cdx-objs := main.o intr.o
|
/linux-6.12.1/drivers/vfio/pci/mlx5/ |
D | Makefile | 2 obj-$(CONFIG_MLX5_VFIO_PCI) += mlx5-vfio-pci.o 3 mlx5-vfio-pci-y := main.o cmd.o
|
/linux-6.12.1/drivers/vfio/pci/hisilicon/ |
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-6.12.1/drivers/vfio/pci/nvgrace-gpu/ |
D | Makefile | 2 obj-$(CONFIG_NVGRACE_GPU_VFIO_PCI) += nvgrace-gpu-vfio-pci.o 3 nvgrace-gpu-vfio-pci-y := main.o
|
/linux-6.12.1/drivers/vfio/fsl-mc/ |
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-6.12.1/drivers/vfio/pci/pds/ |
D | Makefile | 4 obj-$(CONFIG_PDS_VFIO_PCI) += pds-vfio-pci.o 6 pds-vfio-pci-y := \
|
/linux-6.12.1/Documentation/translations/zh_CN/driver-api/ |
D | index.rst | 116 * vfio-mediated-device 117 * vfio 118 * vfio-pci-device-specific-driver-acceptance
|