git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit774486a14954d81634b516eec002d1f9e2a7c203 authorJan Malakhovski <oxij@oxij.org> dateFri 13 Jun 2014, 00:30 (12 years ago) parente7d4d39
1 file changed+5
pkgs/os-specific/linux/kernel/common-config.nix+5
pkgs/os-specific/linux/kernel/common-config.nix+5
@@ -326,6 +326,11 @@ with stdenv.lib;
326326 ''}
327327 VIRT_DRIVERS y
328328
329+ # Device virtualisation.
330+ ${optionalString (versionAtLeast version "3.9") ''
331+ VFIO_PCI_VGA? y
332+ ''}
333+
329334 # Media support.
330335 ${optionalString (versionAtLeast version "3.6") ''
331336 MEDIA_DIGITAL_TV_SUPPORT y