diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 9fe615ccf5e4..15914d94400d 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -988,6 +988,11 @@ let # Enable device detection on virtio-mmio hypervisors VIRTIO_MMIO_CMDLINE_DEVICES = yes; + + # Enable CDEV and NOIOMMU support for VFIO, which is useful for + # passthrough. + VFIO_DEVICE_CDEV = yes; + VFIO_NOIOMMU = yes; }; media = {