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