From 44cb0800c8694c6a74a1a73fb0d9b716bac012f8 Mon Sep 17 00:00:00 2001 From: Thore Sommer Date: Fri, 17 Oct 2025 16:45:09 +0200 Subject: [PATCH] linux/common-config: enable CDEV and NOIOMMU for VFIO --- pkgs/os-specific/linux/kernel/common-config.nix | 5 +++++ 1 file changed, 5 insertions(+) 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 = {