Debian Codegraph @

arch/s390/Kconfig

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