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