linux kernel: set VFIO_PCI_VGA to `y` for versions > 3.9

This allows to passthrough PCI video adapters to KVM virtual machines.
VFIO_PCI is set to `m` by default, which means this will not affect
non-users.
This commit is contained in:
Jan Malakhovski 2014-06-13 00:30:34 +00:00
parent e7d4d39c6e
commit 774486a149
1 changed files with 5 additions and 0 deletions

View File

@ -326,6 +326,11 @@ with stdenv.lib;
''} ''}
VIRT_DRIVERS y VIRT_DRIVERS y
# Device virtualisation.
${optionalString (versionAtLeast version "3.9") ''
VFIO_PCI_VGA? y
''}
# Media support. # Media support.
${optionalString (versionAtLeast version "3.6") '' ${optionalString (versionAtLeast version "3.6") ''
MEDIA_DIGITAL_TV_SUPPORT y MEDIA_DIGITAL_TV_SUPPORT y