diff options
author | Jan Malakhovski <oxij@oxij.org> | 2014-06-13 00:30:34 +0000 |
---|---|---|
committer | Jan Malakhovski <oxij@oxij.org> | 2015-01-07 11:08:58 +0000 |
commit | 774486a14954d81634b516eec002d1f9e2a7c203 (patch) | |
tree | 9d1dca93f37faae4fe9eec49ad6a4269f01bba1e | |
parent | e7d4d39c6ee5e44a257fa655ee6270b644f83c86 (diff) | |
download | nixpkgs-774486a14954d81634b516eec002d1f9e2a7c203.tar nixpkgs-774486a14954d81634b516eec002d1f9e2a7c203.tar.gz nixpkgs-774486a14954d81634b516eec002d1f9e2a7c203.tar.bz2 nixpkgs-774486a14954d81634b516eec002d1f9e2a7c203.tar.lz nixpkgs-774486a14954d81634b516eec002d1f9e2a7c203.tar.xz nixpkgs-774486a14954d81634b516eec002d1f9e2a7c203.tar.zst nixpkgs-774486a14954d81634b516eec002d1f9e2a7c203.zip |
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.
-rw-r--r-- | pkgs/os-specific/linux/kernel/common-config.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index ef061459191..e76ce5bfa9b 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -326,6 +326,11 @@ with stdenv.lib; ''} VIRT_DRIVERS y + # Device virtualisation. + ${optionalString (versionAtLeast version "3.9") '' + VFIO_PCI_VGA? y + ''} + # Media support. ${optionalString (versionAtLeast version "3.6") '' MEDIA_DIGITAL_TV_SUPPORT y |