allow_unsafe_interrupts是vfio_iommu_type1模块的一个配置参数。在默认情况下,VFIO框架会确保中断处理的安全性,即中断只会被授权的设备或程序处理。然而,在某些情况下,用户可能希望放宽这一限制,允许处理可能被视为“不安全”的中断。allow_unsafe_interrupts=1就是用来启用这一特性的。 3. 说明为何可能需要设置allow...
在K8S中,vfio_iommu_type1_attach_group 是一种非常重要的特性,它允许用户将 VFIO 设备(例如GPU设备)直接分配给容器,以获得更好的性能和隔离性。 首先,让我们来了解一下 vfio_iommu_type1_attach_group 的工作原理和实现流程。下面是一个简单的步骤表格: | 步骤 | 操作 | |---|---| | 1 | 配置 K8S ...
static int __init vfio_iommu_type1_init(void) { return vfio_register_iommu_driver(&vfio_iommu_driver_ops_type1); } 2 vfio_iommu_driver_ops_type1 static const struct vfio_iommu_driver_ops vfio_iommu_driver_ops_type1 = { .name = "vfio-iommu-type1", .owner = THIS_MODULE, .open =...
vfio: Remove VFIO_TYPE1_NESTING_IOMMU Browse files This control causes the ARM SMMU drivers to choose a stage 2 implementation for the IO pagetable (vs the stage 1 usual default), however this choice has no significant visible impact to the VFIO user. Further qemu never implemented this ...
6 changes: 6 additions & 0 deletions 6 drivers/vfio/Kconfig Original file line numberDiff line numberDiff line change @@ -1,6 +1,12 @@ config VFIO_IOMMU_TYPE1 tristate depends on VFIO default n menuconfig VFIO tristate "VFIO Non-Privileged userspace driver framework" depends on IOMMU_...
VFIO_TYPE1_IOMMU is obsolete, move to use VFIO_TYPE1v2_IOMMU instead. No functional effect is expected. Signed-off-by: Yishai Hadas <yishaih@nvidia.com>Loading branch information Yishai Hadas committed Mar 10, 2022 1 parent 49f5693 commit e88258d Showing...