Skip to content

Commit 42395a1

Browse files
committedJul 13, 2017
kernel-config: Disable Xen on non-x86
There's an upstream build failure on ARM (not directly related to Xen but rather some other config options it enables). The xen package is x86_64-only anyways.
1 parent f90d7b2 commit 42395a1

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed
 

‎pkgs/os-specific/linux/kernel/common-config.nix

+23-21
Original file line numberDiff line numberDiff line change
@@ -521,27 +521,29 @@ with stdenv.lib;
521521
${optionalString (versionAtLeast version "3.13") ''
522522
KVM_VFIO y
523523
''}
524-
XEN? y
525-
XEN_DOM0? y
526-
${optionalString ((versionAtLeast version "3.18") && (features.xen_dom0 or false)) ''
527-
PCI_XEN? y
528-
HVC_XEN? y
529-
HVC_XEN_FRONTEND? y
530-
XEN_SYS_HYPERVISOR? y
531-
SWIOTLB_XEN? y
532-
XEN_BACKEND? y
533-
XEN_BALLOON? y
534-
XEN_BALLOON_MEMORY_HOTPLUG? y
535-
XEN_EFI? y
536-
XEN_HAVE_PVMMU? y
537-
XEN_MCE_LOG? y
538-
XEN_PVH? y
539-
XEN_PVHVM? y
540-
XEN_SAVE_RESTORE? y
541-
XEN_SCRUB_PAGES? y
542-
XEN_SELFBALLOONING? y
543-
XEN_STUB? y
544-
XEN_TMEM? y
524+
${optionalString (stdenv.isx86_64 || stdenv.isi686) ''
525+
XEN? y
526+
XEN_DOM0? y
527+
${optionalString ((versionAtLeast version "3.18") && (features.xen_dom0 or false)) ''
528+
PCI_XEN? y
529+
HVC_XEN? y
530+
HVC_XEN_FRONTEND? y
531+
XEN_SYS_HYPERVISOR? y
532+
SWIOTLB_XEN? y
533+
XEN_BACKEND? y
534+
XEN_BALLOON? y
535+
XEN_BALLOON_MEMORY_HOTPLUG? y
536+
XEN_EFI? y
537+
XEN_HAVE_PVMMU? y
538+
XEN_MCE_LOG? y
539+
XEN_PVH? y
540+
XEN_PVHVM? y
541+
XEN_SAVE_RESTORE? y
542+
XEN_SCRUB_PAGES? y
543+
XEN_SELFBALLOONING? y
544+
XEN_STUB? y
545+
XEN_TMEM? y
546+
''}
545547
''}
546548
KSM y
547549
${optionalString (!stdenv.is64bit) ''

0 commit comments

Comments
 (0)
Please sign in to comment.