kconfig: include common Kconfig files from top-level Kconfig
[linux-2.6-block.git] / arch / s390 / Kconfig
1 # SPDX-License-Identifier: GPL-2.0
2 config MMU
3         def_bool y
4
5 config ZONE_DMA
6         def_bool y
7
8 config CPU_BIG_ENDIAN
9         def_bool y
10
11 config LOCKDEP_SUPPORT
12         def_bool y
13
14 config STACKTRACE_SUPPORT
15         def_bool y
16
17 config RWSEM_GENERIC_SPINLOCK
18         bool
19
20 config RWSEM_XCHGADD_ALGORITHM
21         def_bool y
22
23 config ARCH_HAS_ILOG2_U32
24         def_bool n
25
26 config ARCH_HAS_ILOG2_U64
27         def_bool n
28
29 config GENERIC_HWEIGHT
30         def_bool y
31
32 config GENERIC_BUG
33         def_bool y if BUG
34
35 config GENERIC_BUG_RELATIVE_POINTERS
36         def_bool y
37
38 config GENERIC_LOCKBREAK
39         def_bool y if SMP && PREEMPT
40
41 config PGSTE
42         def_bool y if KVM
43
44 config ARCH_SUPPORTS_DEBUG_PAGEALLOC
45         def_bool y
46
47 config AUDIT_ARCH
48         def_bool y
49
50 config NO_IOPORT_MAP
51         def_bool y
52
53 config PCI_QUIRKS
54         def_bool n
55
56 config ARCH_SUPPORTS_UPROBES
57         def_bool y
58
59 config S390
60         def_bool y
61         select ARCH_BINFMT_ELF_STATE
62         select ARCH_HAS_DEVMEM_IS_ALLOWED
63         select ARCH_HAS_ELF_RANDOMIZE
64         select ARCH_HAS_FORTIFY_SOURCE
65         select ARCH_HAS_GCOV_PROFILE_ALL
66         select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
67         select ARCH_HAS_KCOV
68         select ARCH_HAS_PTE_SPECIAL
69         select ARCH_HAS_SET_MEMORY
70         select ARCH_HAS_SG_CHAIN
71         select ARCH_HAS_STRICT_KERNEL_RWX
72         select ARCH_HAS_STRICT_MODULE_RWX
73         select ARCH_HAS_UBSAN_SANITIZE_ALL
74         select ARCH_HAVE_NMI_SAFE_CMPXCHG
75         select ARCH_INLINE_READ_LOCK
76         select ARCH_INLINE_READ_LOCK_BH
77         select ARCH_INLINE_READ_LOCK_IRQ
78         select ARCH_INLINE_READ_LOCK_IRQSAVE
79         select ARCH_INLINE_READ_TRYLOCK
80         select ARCH_INLINE_READ_UNLOCK
81         select ARCH_INLINE_READ_UNLOCK_BH
82         select ARCH_INLINE_READ_UNLOCK_IRQ
83         select ARCH_INLINE_READ_UNLOCK_IRQRESTORE
84         select ARCH_INLINE_SPIN_LOCK
85         select ARCH_INLINE_SPIN_LOCK_BH
86         select ARCH_INLINE_SPIN_LOCK_IRQ
87         select ARCH_INLINE_SPIN_LOCK_IRQSAVE
88         select ARCH_INLINE_SPIN_TRYLOCK
89         select ARCH_INLINE_SPIN_TRYLOCK_BH
90         select ARCH_INLINE_SPIN_UNLOCK
91         select ARCH_INLINE_SPIN_UNLOCK_BH
92         select ARCH_INLINE_SPIN_UNLOCK_IRQ
93         select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
94         select ARCH_INLINE_WRITE_LOCK
95         select ARCH_INLINE_WRITE_LOCK_BH
96         select ARCH_INLINE_WRITE_LOCK_IRQ
97         select ARCH_INLINE_WRITE_LOCK_IRQSAVE
98         select ARCH_INLINE_WRITE_TRYLOCK
99         select ARCH_INLINE_WRITE_UNLOCK
100         select ARCH_INLINE_WRITE_UNLOCK_BH
101         select ARCH_INLINE_WRITE_UNLOCK_IRQ
102         select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
103         select ARCH_SAVE_PAGE_KEYS if HIBERNATION
104         select ARCH_SUPPORTS_ATOMIC_RMW
105         select ARCH_SUPPORTS_NUMA_BALANCING
106         select ARCH_USE_BUILTIN_BSWAP
107         select ARCH_USE_CMPXCHG_LOCKREF
108         select ARCH_WANTS_DYNAMIC_TASK_STRUCT
109         select ARCH_WANTS_UBSAN_NO_NULL
110         select ARCH_WANT_IPC_PARSE_VERSION
111         select BUILDTIME_EXTABLE_SORT
112         select CLONE_BACKWARDS2
113         select DYNAMIC_FTRACE if FUNCTION_TRACER
114         select GENERIC_CLOCKEVENTS
115         select GENERIC_CPU_AUTOPROBE
116         select GENERIC_CPU_DEVICES if !SMP
117         select GENERIC_CPU_VULNERABILITIES
118         select GENERIC_FIND_FIRST_BIT
119         select GENERIC_SMP_IDLE_THREAD
120         select GENERIC_TIME_VSYSCALL
121         select HAVE_ALIGNED_STRUCT_PAGE if SLUB
122         select HAVE_ARCH_AUDITSYSCALL
123         select HAVE_ARCH_JUMP_LABEL
124         select CPU_NO_EFFICIENT_FFS if !HAVE_MARCH_Z9_109_FEATURES
125         select HAVE_ARCH_SECCOMP_FILTER
126         select HAVE_ARCH_SOFT_DIRTY
127         select HAVE_ARCH_TRACEHOOK
128         select HAVE_ARCH_TRANSPARENT_HUGEPAGE
129         select HAVE_EBPF_JIT if PACK_STACK && HAVE_MARCH_Z196_FEATURES
130         select HAVE_CMPXCHG_DOUBLE
131         select HAVE_CMPXCHG_LOCAL
132         select HAVE_COPY_THREAD_TLS
133         select HAVE_DEBUG_KMEMLEAK
134         select HAVE_DMA_CONTIGUOUS
135         select DMA_DIRECT_OPS
136         select HAVE_DYNAMIC_FTRACE
137         select HAVE_DYNAMIC_FTRACE_WITH_REGS
138         select HAVE_EFFICIENT_UNALIGNED_ACCESS
139         select HAVE_FTRACE_MCOUNT_RECORD
140         select HAVE_FUNCTION_GRAPH_TRACER
141         select HAVE_FUNCTION_TRACER
142         select HAVE_FUTEX_CMPXCHG if FUTEX
143         select HAVE_GCC_PLUGINS
144         select HAVE_KERNEL_BZIP2
145         select HAVE_KERNEL_GZIP
146         select HAVE_KERNEL_LZ4
147         select HAVE_KERNEL_LZMA
148         select HAVE_KERNEL_LZO
149         select HAVE_KERNEL_XZ
150         select HAVE_KPROBES
151         select HAVE_KRETPROBES
152         select HAVE_KVM
153         select HAVE_LIVEPATCH
154         select HAVE_PERF_REGS
155         select HAVE_PERF_USER_STACK_DUMP
156         select HAVE_MEMBLOCK
157         select HAVE_MEMBLOCK_NODE_MAP
158         select HAVE_MEMBLOCK_PHYS_MAP
159         select HAVE_MOD_ARCH_SPECIFIC
160         select HAVE_OPROFILE
161         select HAVE_PERF_EVENTS
162         select HAVE_REGS_AND_STACK_ACCESS_API
163         select HAVE_RSEQ
164         select HAVE_SYSCALL_TRACEPOINTS
165         select HAVE_VIRT_CPU_ACCOUNTING
166         select MODULES_USE_ELF_RELA
167         select NO_BOOTMEM
168         select OLD_SIGACTION
169         select OLD_SIGSUSPEND3
170         select SPARSE_IRQ
171         select SYSCTL_EXCEPTION_TRACE
172         select THREAD_INFO_IN_TASK
173         select TTY
174         select VIRT_CPU_ACCOUNTING
175         select ARCH_HAS_SCALED_CPUTIME
176         select VIRT_TO_BUS
177         select HAVE_NMI
178
179
180 config SCHED_OMIT_FRAME_POINTER
181         def_bool y
182
183 config PGTABLE_LEVELS
184         int
185         default 5
186
187 source "kernel/livepatch/Kconfig"
188
189 menu "Processor type and features"
190
191 config HAVE_MARCH_Z900_FEATURES
192         def_bool n
193
194 config HAVE_MARCH_Z990_FEATURES
195         def_bool n
196         select HAVE_MARCH_Z900_FEATURES
197
198 config HAVE_MARCH_Z9_109_FEATURES
199         def_bool n
200         select HAVE_MARCH_Z990_FEATURES
201
202 config HAVE_MARCH_Z10_FEATURES
203         def_bool n
204         select HAVE_MARCH_Z9_109_FEATURES
205
206 config HAVE_MARCH_Z196_FEATURES
207         def_bool n
208         select HAVE_MARCH_Z10_FEATURES
209
210 config HAVE_MARCH_ZEC12_FEATURES
211         def_bool n
212         select HAVE_MARCH_Z196_FEATURES
213
214 config HAVE_MARCH_Z13_FEATURES
215         def_bool n
216         select HAVE_MARCH_ZEC12_FEATURES
217
218 config HAVE_MARCH_Z14_FEATURES
219         def_bool n
220         select HAVE_MARCH_Z13_FEATURES
221
222 choice
223         prompt "Processor type"
224         default MARCH_Z196
225
226 config MARCH_Z900
227         bool "IBM zSeries model z800 and z900"
228         select HAVE_MARCH_Z900_FEATURES
229         help
230           Select this to enable optimizations for model z800/z900 (2064 and
231           2066 series). This will enable some optimizations that are not
232           available on older ESA/390 (31 Bit) only CPUs.
233
234 config MARCH_Z990
235         bool "IBM zSeries model z890 and z990"
236         select HAVE_MARCH_Z990_FEATURES
237         help
238           Select this to enable optimizations for model z890/z990 (2084 and
239           2086 series). The kernel will be slightly faster but will not work
240           on older machines.
241
242 config MARCH_Z9_109
243         bool "IBM System z9"
244         select HAVE_MARCH_Z9_109_FEATURES
245         help
246           Select this to enable optimizations for IBM System z9 (2094 and
247           2096 series). The kernel will be slightly faster but will not work
248           on older machines.
249
250 config MARCH_Z10
251         bool "IBM System z10"
252         select HAVE_MARCH_Z10_FEATURES
253         help
254           Select this to enable optimizations for IBM System z10 (2097 and
255           2098 series). The kernel will be slightly faster but will not work
256           on older machines.
257
258 config MARCH_Z196
259         bool "IBM zEnterprise 114 and 196"
260         select HAVE_MARCH_Z196_FEATURES
261         help
262           Select this to enable optimizations for IBM zEnterprise 114 and 196
263           (2818 and 2817 series). The kernel will be slightly faster but will
264           not work on older machines.
265
266 config MARCH_ZEC12
267         bool "IBM zBC12 and zEC12"
268         select HAVE_MARCH_ZEC12_FEATURES
269         help
270           Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and
271           2827 series). The kernel will be slightly faster but will not work on
272           older machines.
273
274 config MARCH_Z13
275         bool "IBM z13s and z13"
276         select HAVE_MARCH_Z13_FEATURES
277         help
278           Select this to enable optimizations for IBM z13s and z13 (2965 and
279           2964 series). The kernel will be slightly faster but will not work on
280           older machines.
281
282 config MARCH_Z14
283         bool "IBM z14 ZR1 and z14"
284         select HAVE_MARCH_Z14_FEATURES
285         help
286           Select this to enable optimizations for IBM z14 ZR1 and z14 (3907
287           and 3906 series). The kernel will be slightly faster but will not
288           work on older machines.
289
290 endchoice
291
292 config MARCH_Z900_TUNE
293         def_bool TUNE_Z900 || MARCH_Z900 && TUNE_DEFAULT
294
295 config MARCH_Z990_TUNE
296         def_bool TUNE_Z990 || MARCH_Z990 && TUNE_DEFAULT
297
298 config MARCH_Z9_109_TUNE
299         def_bool TUNE_Z9_109 || MARCH_Z9_109 && TUNE_DEFAULT
300
301 config MARCH_Z10_TUNE
302         def_bool TUNE_Z10 || MARCH_Z10 && TUNE_DEFAULT
303
304 config MARCH_Z196_TUNE
305         def_bool TUNE_Z196 || MARCH_Z196 && TUNE_DEFAULT
306
307 config MARCH_ZEC12_TUNE
308         def_bool TUNE_ZEC12 || MARCH_ZEC12 && TUNE_DEFAULT
309
310 config MARCH_Z13_TUNE
311         def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT
312
313 config MARCH_Z14_TUNE
314         def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT
315
316 choice
317         prompt "Tune code generation"
318         default TUNE_DEFAULT
319         help
320           Cause the compiler to tune (-mtune) the generated code for a machine.
321           This will make the code run faster on the selected machine but
322           somewhat slower on other machines.
323           This option only changes how the compiler emits instructions, not the
324           selection of instructions itself, so the resulting kernel will run on
325           all other machines.
326
327 config TUNE_DEFAULT
328         bool "Default"
329         help
330           Tune the generated code for the target processor for which the kernel
331           will be compiled.
332
333 config TUNE_Z900
334         bool "IBM zSeries model z800 and z900"
335
336 config TUNE_Z990
337         bool "IBM zSeries model z890 and z990"
338
339 config TUNE_Z9_109
340         bool "IBM System z9"
341
342 config TUNE_Z10
343         bool "IBM System z10"
344
345 config TUNE_Z196
346         bool "IBM zEnterprise 114 and 196"
347
348 config TUNE_ZEC12
349         bool "IBM zBC12 and zEC12"
350
351 config TUNE_Z13
352         bool "IBM z13"
353
354 config TUNE_Z14
355         bool "IBM z14"
356
357 endchoice
358
359 config 64BIT
360         def_bool y
361
362 config COMPAT
363         def_bool y
364         prompt "Kernel support for 31 bit emulation"
365         select COMPAT_BINFMT_ELF if BINFMT_ELF
366         select ARCH_WANT_OLD_COMPAT_IPC
367         select COMPAT_OLD_SIGACTION
368         depends on MULTIUSER
369         help
370           Select this option if you want to enable your system kernel to
371           handle system-calls from ELF binaries for 31 bit ESA.  This option
372           (and some other stuff like libraries and such) is needed for
373           executing 31 bit applications.  It is safe to say "Y".
374
375 config SYSVIPC_COMPAT
376         def_bool y if COMPAT && SYSVIPC
377
378 config SMP
379         def_bool y
380         prompt "Symmetric multi-processing support"
381         ---help---
382           This enables support for systems with more than one CPU. If you have
383           a system with only one CPU, like most personal computers, say N. If
384           you have a system with more than one CPU, say Y.
385
386           If you say N here, the kernel will run on uni- and multiprocessor
387           machines, but will use only one CPU of a multiprocessor machine. If
388           you say Y here, the kernel will run on many, but not all,
389           uniprocessor machines. On a uniprocessor machine, the kernel
390           will run faster if you say N here.
391
392           See also the SMP-HOWTO available at
393           <http://www.tldp.org/docs.html#howto>.
394
395           Even if you don't know what to do here, say Y.
396
397 config NR_CPUS
398         int "Maximum number of CPUs (2-512)"
399         range 2 512
400         depends on SMP
401         default "64"
402         help
403           This allows you to specify the maximum number of CPUs which this
404           kernel will support. The maximum supported value is 512 and the
405           minimum value which makes sense is 2.
406
407           This is purely to save memory - each supported CPU adds
408           approximately sixteen kilobytes to the kernel image.
409
410 config HOTPLUG_CPU
411         def_bool y
412         prompt "Support for hot-pluggable CPUs"
413         depends on SMP
414         help
415           Say Y here to be able to turn CPUs off and on. CPUs
416           can be controlled through /sys/devices/system/cpu/cpu#.
417           Say N if you want to disable CPU hotplug.
418
419 # Some NUMA nodes have memory ranges that span
420 # other nodes.  Even though a pfn is valid and
421 # between a node's start and end pfns, it may not
422 # reside on that node.  See memmap_init_zone()
423 # for details. <- They meant memory holes!
424 config NODES_SPAN_OTHER_NODES
425         def_bool NUMA
426
427 config NUMA
428         bool "NUMA support"
429         depends on SMP && SCHED_TOPOLOGY
430         default n
431         help
432           Enable NUMA support
433
434           This option adds NUMA support to the kernel.
435
436           An operation mode can be selected by appending
437           numa=<method> to the kernel command line.
438
439           The default behaviour is identical to appending numa=plain to
440           the command line. This will create just one node with all
441           available memory and all CPUs in it.
442
443 config NODES_SHIFT
444         int "Maximum NUMA nodes (as a power of 2)"
445         range 1 10
446         depends on NUMA
447         default "4"
448         help
449           Specify the maximum number of NUMA nodes available on the target
450           system. Increases memory reserved to accommodate various tables.
451
452 menu "Select NUMA modes"
453         depends on NUMA
454
455 config NUMA_EMU
456         bool "NUMA emulation"
457         default y
458         help
459           Numa emulation mode will split the available system memory into
460           equal chunks which then are distributed over the configured number
461           of nodes in a round-robin manner.
462
463           The number of fake nodes is limited by the number of available memory
464           chunks (i.e. memory size / fake size) and the number of supported
465           nodes in the kernel.
466
467           The CPUs are assigned to the nodes in a way that partially respects
468           the original machine topology (if supported by the machine).
469           Fair distribution of the CPUs is not guaranteed.
470
471 config EMU_SIZE
472         hex "NUMA emulation memory chunk size"
473         default 0x10000000
474         range 0x400000 0x100000000
475         depends on NUMA_EMU
476         help
477           Select the default size by which the memory is chopped and then
478           assigned to emulated NUMA nodes.
479
480           This can be overridden by specifying
481
482           emu_size=<n>
483
484           on the kernel command line where also suffixes K, M, G, and T are
485           supported.
486
487 endmenu
488
489 config SCHED_SMT
490         def_bool n
491
492 config SCHED_MC
493         def_bool n
494
495 config SCHED_BOOK
496         def_bool n
497
498 config SCHED_DRAWER
499         def_bool n
500
501 config SCHED_TOPOLOGY
502         def_bool y
503         prompt "Topology scheduler support"
504         depends on SMP
505         select SCHED_SMT
506         select SCHED_MC
507         select SCHED_BOOK
508         select SCHED_DRAWER
509         help
510           Topology scheduler support improves the CPU scheduler's decision
511           making when dealing with machines that have multi-threading,
512           multiple cores or multiple books.
513
514 source kernel/Kconfig.preempt
515
516 source kernel/Kconfig.hz
517
518 config KEXEC
519         def_bool y
520         select KEXEC_CORE
521
522 config KEXEC_FILE
523         bool "kexec file based system call"
524         select KEXEC_CORE
525         select BUILD_BIN2C
526         depends on CRYPTO
527         depends on CRYPTO_SHA256
528         depends on CRYPTO_SHA256_S390
529         help
530           Enable the kexec file based system call. In contrast to the normal
531           kexec system call this system call takes file descriptors for the
532           kernel and initramfs as arguments.
533
534 config ARCH_HAS_KEXEC_PURGATORY
535         def_bool y
536         depends on KEXEC_FILE
537
538 config ARCH_RANDOM
539         def_bool y
540         prompt "s390 architectural random number generation API"
541         help
542           Enable the s390 architectural random number generation API
543           to provide random data for all consumers within the Linux
544           kernel.
545
546           When enabled the arch_random_* functions declared in linux/random.h
547           are implemented. The implementation is based on the s390 CPACF
548           instruction subfunction TRNG which provides a real true random
549           number generator.
550
551           If unsure, say Y.
552
553 config KERNEL_NOBP
554         def_bool n
555         prompt "Enable modified branch prediction for the kernel by default"
556         help
557           If this option is selected the kernel will switch to a modified
558           branch prediction mode if the firmware interface is available.
559           The modified branch prediction mode improves the behaviour in
560           regard to speculative execution.
561
562           With the option enabled the kernel parameter "nobp=0" or "nospec"
563           can be used to run the kernel in the normal branch prediction mode.
564
565           With the option disabled the modified branch prediction mode is
566           enabled with the "nobp=1" kernel parameter.
567
568           If unsure, say N.
569
570 config EXPOLINE
571         def_bool n
572         prompt "Avoid speculative indirect branches in the kernel"
573         help
574           Compile the kernel with the expoline compiler options to guard
575           against kernel-to-user data leaks by avoiding speculative indirect
576           branches.
577           Requires a compiler with -mindirect-branch=thunk support for full
578           protection. The kernel may run slower.
579
580           If unsure, say N.
581
582 choice
583         prompt "Expoline default"
584         depends on EXPOLINE
585         default EXPOLINE_FULL
586
587 config EXPOLINE_OFF
588         bool "spectre_v2=off"
589
590 config EXPOLINE_AUTO
591         bool "spectre_v2=auto"
592
593 config EXPOLINE_FULL
594         bool "spectre_v2=on"
595
596 endchoice
597
598 endmenu
599
600 menu "Memory setup"
601
602 config ARCH_SPARSEMEM_ENABLE
603         def_bool y
604         select SPARSEMEM_VMEMMAP_ENABLE
605         select SPARSEMEM_VMEMMAP
606
607 config ARCH_SPARSEMEM_DEFAULT
608         def_bool y
609
610 config ARCH_SELECT_MEMORY_MODEL
611         def_bool y
612
613 config ARCH_ENABLE_MEMORY_HOTPLUG
614         def_bool y if SPARSEMEM
615
616 config ARCH_ENABLE_MEMORY_HOTREMOVE
617         def_bool y
618
619 config ARCH_ENABLE_SPLIT_PMD_PTLOCK
620         def_bool y
621
622 config FORCE_MAX_ZONEORDER
623         int
624         default "9"
625
626 config MAX_PHYSMEM_BITS
627         int "Maximum size of supported physical memory in bits (42-53)"
628         range 42 53
629         default "46"
630         help
631           This option specifies the maximum supported size of physical memory
632           in bits. Supported is any size between 2^42 (4TB) and 2^53 (8PB).
633           Increasing the number of bits also increases the kernel image size.
634           By default 46 bits (64TB) are supported.
635
636 config PACK_STACK
637         def_bool y
638         prompt "Pack kernel stack"
639         help
640           This option enables the compiler option -mkernel-backchain if it
641           is available. If the option is available the compiler supports
642           the new stack layout which dramatically reduces the minimum stack
643           frame size. With an old compiler a non-leaf function needs a
644           minimum of 96 bytes on 31 bit and 160 bytes on 64 bit. With
645           -mkernel-backchain the minimum size drops to 16 byte on 31 bit
646           and 24 byte on 64 bit.
647
648           Say Y if you are unsure.
649
650 config CHECK_STACK
651         def_bool y
652         prompt "Detect kernel stack overflow"
653         help
654           This option enables the compiler option -mstack-guard and
655           -mstack-size if they are available. If the compiler supports them
656           it will emit additional code to each function prolog to trigger
657           an illegal operation if the kernel stack is about to overflow.
658
659           Say N if you are unsure.
660
661 config STACK_GUARD
662         int "Size of the guard area (128-1024)"
663         range 128 1024
664         depends on CHECK_STACK
665         default "256"
666         help
667           This allows you to specify the size of the guard area at the lower
668           end of the kernel stack. If the kernel stack points into the guard
669           area on function entry an illegal operation is triggered. The size
670           needs to be a power of 2. Please keep in mind that the size of an
671           interrupt frame is 184 bytes for 31 bit and 328 bytes on 64 bit.
672           The minimum size for the stack guard should be 256 for 31 bit and
673           512 for 64 bit.
674
675 config WARN_DYNAMIC_STACK
676         def_bool n
677         prompt "Emit compiler warnings for function with dynamic stack usage"
678         help
679           This option enables the compiler option -mwarn-dynamicstack. If the
680           compiler supports this options generates warnings for functions
681           that dynamically allocate stack space using alloca.
682
683           Say N if you are unsure.
684
685 endmenu
686
687 menu "I/O subsystem"
688
689 config QDIO
690         def_tristate y
691         prompt "QDIO support"
692         ---help---
693           This driver provides the Queued Direct I/O base support for
694           IBM System z.
695
696           To compile this driver as a module, choose M here: the
697           module will be called qdio.
698
699           If unsure, say Y.
700
701 menuconfig PCI
702         bool "PCI support"
703         select PCI_MSI
704         select IOMMU_HELPER
705         select IOMMU_SUPPORT
706         select NEED_DMA_MAP_STATE
707         select NEED_SG_DMA_LENGTH
708
709         help
710           Enable PCI support.
711
712 if PCI
713
714 config PCI_NR_FUNCTIONS
715         int "Maximum number of PCI functions (1-4096)"
716         range 1 4096
717         default "128"
718         help
719           This allows you to specify the maximum number of PCI functions which
720           this kernel will support.
721
722 source "drivers/pci/Kconfig"
723
724 endif   # PCI
725
726 config PCI_DOMAINS
727         def_bool PCI
728
729 config HAS_IOMEM
730         def_bool PCI
731
732 config CHSC_SCH
733         def_tristate m
734         prompt "Support for CHSC subchannels"
735         help
736           This driver allows usage of CHSC subchannels. A CHSC subchannel
737           is usually present on LPAR only.
738           The driver creates a device /dev/chsc, which may be used to
739           obtain I/O configuration information about the machine and
740           to issue asynchronous chsc commands (DANGEROUS).
741           You will usually only want to use this interface on a special
742           LPAR designated for system management.
743
744           To compile this driver as a module, choose M here: the
745           module will be called chsc_sch.
746
747           If unsure, say N.
748
749 config SCM_BUS
750         def_bool y
751         prompt "SCM bus driver"
752         help
753           Bus driver for Storage Class Memory.
754
755 config EADM_SCH
756         def_tristate m
757         prompt "Support for EADM subchannels"
758         depends on SCM_BUS
759         help
760           This driver allows usage of EADM subchannels. EADM subchannels act
761           as a communication vehicle for SCM increments.
762
763           To compile this driver as a module, choose M here: the
764           module will be called eadm_sch.
765
766 config VFIO_CCW
767         def_tristate n
768         prompt "Support for VFIO-CCW subchannels"
769         depends on S390_CCW_IOMMU && VFIO_MDEV
770         help
771           This driver allows usage of I/O subchannels via VFIO-CCW.
772
773           To compile this driver as a module, choose M here: the
774           module will be called vfio_ccw.
775
776 endmenu
777
778 menu "Dump support"
779
780 config CRASH_DUMP
781         bool "kernel crash dumps"
782         depends on SMP
783         select KEXEC
784         help
785           Generate crash dump after being started by kexec.
786           Crash dump kernels are loaded in the main kernel with kexec-tools
787           into a specially reserved region and then later executed after
788           a crash by kdump/kexec.
789           Refer to <file:Documentation/s390/zfcpdump.txt> for more details on this.
790           This option also enables s390 zfcpdump.
791           See also <file:Documentation/s390/zfcpdump.txt>
792
793 endmenu
794
795 config SECCOMP
796         def_bool y
797         prompt "Enable seccomp to safely compute untrusted bytecode"
798         depends on PROC_FS
799         help
800           This kernel feature is useful for number crunching applications
801           that may need to compute untrusted bytecode during their
802           execution. By using pipes or other transports made available to
803           the process as file descriptors supporting the read/write
804           syscalls, it's possible to isolate those applications in
805           their own address space using seccomp. Once seccomp is
806           enabled via /proc/<pid>/seccomp, it cannot be disabled
807           and the task is only allowed to execute a few safe syscalls
808           defined by each seccomp mode.
809
810           If unsure, say Y.
811
812 menu "Power Management"
813
814 config ARCH_HIBERNATION_POSSIBLE
815         def_bool y
816
817 source "kernel/power/Kconfig"
818
819 endmenu
820
821 config PCMCIA
822         def_bool n
823
824 config CCW
825         def_bool y
826
827 config HAVE_PNETID
828         tristate
829         default (SMC || CCWGROUP)
830
831 source "arch/s390/Kconfig.debug"
832
833 menu "Virtualization"
834
835 config PFAULT
836         def_bool y
837         prompt "Pseudo page fault support"
838         help
839           Select this option, if you want to use PFAULT pseudo page fault
840           handling under VM. If running native or in LPAR, this option
841           has no effect. If your VM does not support PFAULT, PAGEEX
842           pseudo page fault handling will be used.
843           Note that VM 4.2 supports PFAULT but has a bug in its
844           implementation that causes some problems.
845           Everybody who wants to run Linux under VM != VM4.2 should select
846           this option.
847
848 config CMM
849         def_tristate n
850         prompt "Cooperative memory management"
851         help
852           Select this option, if you want to enable the kernel interface
853           to reduce the memory size of the system. This is accomplished
854           by allocating pages of memory and put them "on hold". This only
855           makes sense for a system running under VM where the unused pages
856           will be reused by VM for other guest systems. The interface
857           allows an external monitor to balance memory of many systems.
858           Everybody who wants to run Linux under VM should select this
859           option.
860
861 config CMM_IUCV
862         def_bool y
863         prompt "IUCV special message interface to cooperative memory management"
864         depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV)
865         help
866           Select this option to enable the special message interface to
867           the cooperative memory management.
868
869 config APPLDATA_BASE
870         def_bool n
871         prompt "Linux - VM Monitor Stream, base infrastructure"
872         depends on PROC_FS
873         help
874           This provides a kernel interface for creating and updating z/VM APPLDATA
875           monitor records. The monitor records are updated at certain time
876           intervals, once the timer is started.
877           Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer,
878           i.e. enables or disables monitoring on the Linux side.
879           A custom interval value (in seconds) can be written to
880           /proc/appldata/interval.
881
882           Defaults are 60 seconds interval and timer off.
883           The /proc entries can also be read from, showing the current settings.
884
885 config APPLDATA_MEM
886         def_tristate m
887         prompt "Monitor memory management statistics"
888         depends on APPLDATA_BASE && VM_EVENT_COUNTERS
889         help
890           This provides memory management related data to the Linux - VM Monitor
891           Stream, like paging/swapping rate, memory utilisation, etc.
892           Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM
893           APPLDATA monitor record, i.e. enables or disables monitoring this record
894           on the z/VM side.
895
896           Default is disabled.
897           The /proc entry can also be read from, showing the current settings.
898
899           This can also be compiled as a module, which will be called
900           appldata_mem.o.
901
902 config APPLDATA_OS
903         def_tristate m
904         prompt "Monitor OS statistics"
905         depends on APPLDATA_BASE
906         help
907           This provides OS related data to the Linux - VM Monitor Stream, like
908           CPU utilisation, etc.
909           Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM
910           APPLDATA monitor record, i.e. enables or disables monitoring this record
911           on the z/VM side.
912
913           Default is disabled.
914           This can also be compiled as a module, which will be called
915           appldata_os.o.
916
917 config APPLDATA_NET_SUM
918         def_tristate m
919         prompt "Monitor overall network statistics"
920         depends on APPLDATA_BASE && NET
921         help
922           This provides network related data to the Linux - VM Monitor Stream,
923           currently there is only a total sum of network I/O statistics, no
924           per-interface data.
925           Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM
926           APPLDATA monitor record, i.e. enables or disables monitoring this record
927           on the z/VM side.
928
929           Default is disabled.
930           This can also be compiled as a module, which will be called
931           appldata_net_sum.o.
932
933 config S390_HYPFS_FS
934         def_bool y
935         prompt "s390 hypervisor file system support"
936         select SYS_HYPERVISOR
937         help
938           This is a virtual file system intended to provide accounting
939           information in an s390 hypervisor environment.
940
941 source "arch/s390/kvm/Kconfig"
942
943 config S390_GUEST
944         def_bool y
945         prompt "s390 support for virtio devices"
946         select TTY
947         select VIRTUALIZATION
948         select VIRTIO
949         select VIRTIO_CONSOLE
950         help
951           Enabling this option adds support for virtio based paravirtual device
952           drivers on s390.
953
954           Select this option if you want to run the kernel as a guest under
955           the KVM hypervisor.
956
957 endmenu