linux/common-config: only enable VFIO opts for 6.6 and later

For older kernels (<=6.1) I get

    error: unused option: VFIO_DEVICE_CDEV

while building `linux-config`.
This commit is contained in:
Maximilian Bosch
2025-10-22 15:47:52 +02:00
parent a943d89fb0
commit bc693cf4b9
@@ -1003,8 +1003,8 @@ let
# Enable CDEV and NOIOMMU support for VFIO, which is useful for
# passthrough.
VFIO_DEVICE_CDEV = yes;
VFIO_NOIOMMU = yes;
VFIO_DEVICE_CDEV = whenAtLeast "6.6" yes;
VFIO_NOIOMMU = whenAtLeast "6.6" yes;
};
media = {