| /linux/drivers/vfio/ |
| 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
|
| A D | group.c | 18 static struct vfio { struct 24 } vfio; argument 636 mutex_lock(&vfio.group_lock); in vfio_noiommu_group_alloc() 692 mutex_lock(&vfio.group_lock); in vfio_group_find_or_alloc() 928 ida_init(&vfio.group_ida); in vfio_group_init() 938 if (IS_ERR(vfio.class)) { in vfio_group_init() 939 ret = PTR_ERR(vfio.class); in vfio_group_init() 951 class_destroy(vfio.class); in vfio_group_init() 952 vfio.class = NULL; in vfio_group_init() 963 class_destroy(vfio.class); in vfio_group_cleanup() [all …]
|
| A D | container.c | 27 static struct vfio { struct 30 } vfio; argument 104 mutex_lock(&vfio.iommu_drivers_lock); in vfio_register_iommu_driver() 109 mutex_unlock(&vfio.iommu_drivers_lock); 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() 136 mutex_unlock(&vfio.iommu_drivers_lock); in vfio_unregister_iommu_driver() 205 mutex_lock(&vfio.iommu_drivers_lock); in vfio_container_ioctl_check_extension() 281 mutex_lock(&vfio.iommu_drivers_lock); in vfio_ioctl_set_iommu() 321 mutex_unlock(&vfio.iommu_drivers_lock); in vfio_ioctl_set_iommu() [all …]
|
| 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 …]
|
| A D | vfio_main.c | 50 static struct vfio { struct 55 } vfio; variable 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() 262 simple_release_fs(&vfio.vfs_mount, &vfio.fs_count); in vfio_fs_inode_new() 305 simple_release_fs(&vfio.vfs_mount, &vfio.fs_count); in vfio_init_device() 1704 ida_init(&vfio.device_ida); in vfio_init() 1716 if (IS_ERR(vfio.device_class)) { in vfio_init() 1731 vfio.device_class = NULL; in vfio_init() 1742 ida_destroy(&vfio.device_ida); in vfio_cleanup() [all …]
|
| /linux/drivers/vfio/platform/ |
| 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/ |
| 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.
|
| 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/drivers/vfio/pci/ |
| A 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
|
| A 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/Documentation/arch/s390/ |
| A D | vfio-ccw.rst | 2 vfio-ccw: the basic infrastructure 23 vfio framework. And we add read/write callbacks for special vfio I/O 43 Motivation of vfio-ccw 59 everybody else, namely vfio. We implement this vfio support for channel 86 Back to vfio-ccw, in short: 190 vfio-ccw I/O region 246 vfio-ccw cmd region 285 vfio-ccw schib region 301 vfio-ccw crw region 324 vfio-ccw follows what vfio-pci did on the s390 platform and uses [all …]
|
| A D | index.rst | 15 vfio-ap 16 vfio-ap-locking 17 vfio-ccw
|
| /linux/Documentation/networking/device_drivers/ethernet/amd/ |
| 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/ |
| 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.
|
| A D | vfio.rst | 81 is created by simply opening the /dev/vfio/vfio character device. 130 # modprobe vfio-pci 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 177 container = open("/dev/vfio/vfio", O_RDWR); 186 group = open("/dev/vfio/26", O_RDWR); 257 also be accessed if the VFIO container interface, ie. /dev/vfio/vfio is 306 $ ls /sys/bus/pci/devices/0000:6a:01.0/vfio-dev/ 312 $ ls -l /dev/vfio/devices/vfio0 [all …]
|
| /linux/drivers/vfio/platform/reset/ |
| 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/iommu/iommufd/ |
| A 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/drivers/vfio/pci/virtio/ |
| A D | Makefile | 2 obj-$(CONFIG_VIRTIO_VFIO_PCI) += virtio-vfio-pci.o 3 virtio-vfio-pci-y := main.o
|
| /linux/drivers/vfio/cdx/ |
| A D | Makefile | 6 obj-$(CONFIG_VFIO_CDX) += vfio-cdx.o 8 vfio-cdx-objs := main.o intr.o
|
| /linux/drivers/vfio/fsl-mc/ |
| 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/ |
| 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/ |
| 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/ |
| 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/ |
| A D | Makefile | 4 obj-$(CONFIG_PDS_VFIO_PCI) += pds-vfio-pci.o 6 pds-vfio-pci-y := \
|
| /linux/Documentation/translations/zh_CN/driver-api/ |
| A D | index.rst | 116 * vfio-mediated-device 117 * vfio 118 * vfio-pci-device-specific-driver-acceptance
|