From eb97dc0013005250b3bc89fb1c5017523b30e062 Mon Sep 17 00:00:00 2001 From: Thomas Strobel Date: Tue, 10 Feb 2015 16:53:03 +0100 Subject: [PATCH] Add kernel config for dom0 of Xen --- .../linux/kernel/common-config.nix | 20 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 3 +++ 2 files changed, 23 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 2afbed13cae6..3e92e9c3fa6a 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -319,6 +319,26 @@ with stdenv.lib; ''} XEN? y XEN_DOM0? y + ${optionalString ((versionAtLeast version "3.18") && (features.xen_dom0 or false)) '' + PCI_XEN? y + HVC_XEN? y + HVC_XEN_FRONTEND? y + XEN_SYS_HYPERVISOR? y + SWIOTLB_XEN? y + XEN_BACKEND? y + XEN_BALLOON? y + XEN_BALLOON_MEMORY_HOTPLUG? y + XEN_EFI? y + XEN_HAVE_PVMMU? y + XEN_MCE_LOG? y + XEN_PVH? y + XEN_PVHVM? y + XEN_SAVE_RESTORE? y + XEN_SCRUB_PAGES? y + XEN_SELFBALLOONING? y + XEN_STUB? y + XEN_TMEM? y + ''} KSM y ${optionalString (!stdenv.is64bit) '' HIGHMEM64G? y # We need 64 GB (PAE) support for Xen guest support. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 19e3eb8b6b9e..e48a6fa57f91 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8889,6 +8889,9 @@ let linuxPackages_self); in recurseIntoAttrs linuxPackages_self; + # Build a kernel for Xen dom0 + linuxPackages_latest_xen_dom0 = recurseIntoAttrs (linuxPackagesFor (pkgs.linux_latest.override { features.xen_dom0=true; }) linuxPackages_latest); + # grsecurity flavors # Stable kernels linuxPackages_grsec_stable_desktop = grPackage grFlavors.linux_grsec_stable_desktop;