Kconfig 26.2 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
Linus Torvalds's avatar
Linus Torvalds committed
2
config MMU
3
	def_bool y
Linus Torvalds's avatar
Linus Torvalds committed
4

5 6 7
config CPU_BIG_ENDIAN
	def_bool y

Ingo Molnar's avatar
Ingo Molnar committed
8
config LOCKDEP_SUPPORT
9
	def_bool y
Ingo Molnar's avatar
Ingo Molnar committed
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 21 22
config ARCH_PROC_KCORE_TEXT
	def_bool y

23
config GENERIC_HWEIGHT
24
	def_bool !HAVE_MARCH_Z196_FEATURES
25

Heiko Carstens's avatar
Heiko Carstens committed
26
config GENERIC_BUG
27
	def_bool y if BUG
Heiko Carstens's avatar
Heiko Carstens committed
28

29 30 31
config GENERIC_BUG_RELATIVE_POINTERS
	def_bool y

32
config GENERIC_LOCKBREAK
33
	def_bool y if PREEMPTION
34

35
config PGSTE
36
	def_bool y if KVM
37

38 39 40
config AUDIT_ARCH
	def_bool y

41
config NO_IOPORT_MAP
42 43 44 45 46
	def_bool y

config PCI_QUIRKS
	def_bool n

47
config ARCH_SUPPORTS_UPROBES
Heiko Carstens's avatar
Heiko Carstens committed
48
	def_bool y
49

50 51 52
config KASAN_SHADOW_OFFSET
	hex
	depends on KASAN
53
	default 0x1C000000000000
54

55
config S390
56
	def_bool y
57 58 59 60
	#
	# Note: keep this list sorted alphabetically
	#
	imply IMA_SECURE_AND_OR_TRUSTED_BOOT
61
	select ALTERNATE_USER_ADDRESS_SPACE
62
	select ARCH_32BIT_USTAT_F_TINODE
63
	select ARCH_BINFMT_ELF_STATE
64
	select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE
65 66
	select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM
	select ARCH_ENABLE_MEMORY_HOTREMOVE
67
	select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2
68
	select ARCH_HAS_CURRENT_STACK_POINTER
69
	select ARCH_HAS_DEBUG_VIRTUAL
70
	select ARCH_HAS_DEBUG_VM_PGTABLE
71
	select ARCH_HAS_DEBUG_WX
72
	select ARCH_HAS_DEVMEM_IS_ALLOWED
73
	select ARCH_HAS_ELF_RANDOMIZE
74
	select ARCH_HAS_FORCE_DMA_UNENCRYPTED
75
	select ARCH_HAS_FORTIFY_SOURCE
76
	select ARCH_HAS_GCOV_PROFILE_ALL
77
	select ARCH_HAS_GIGANTIC_PAGE
Heiko Carstens's avatar
Heiko Carstens committed
78
	select ARCH_HAS_KCOV
79
	select ARCH_HAS_MEMBARRIER_SYNC_CORE
80
	select ARCH_HAS_MEM_ENCRYPT
81
	select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS
82
	select ARCH_HAS_PTE_SPECIAL
83
	select ARCH_HAS_SCALED_CPUTIME
84
	select ARCH_HAS_SET_DIRECT_MAP
85
	select ARCH_HAS_SET_MEMORY
86 87
	select ARCH_HAS_STRICT_KERNEL_RWX
	select ARCH_HAS_STRICT_MODULE_RWX
88
	select ARCH_HAS_SYSCALL_WRAPPER
89
	select ARCH_HAS_UBSAN
Sven Schnelle's avatar
Sven Schnelle committed
90
	select ARCH_HAS_VDSO_DATA
91
	select ARCH_HAVE_NMI_SAFE_CMPXCHG
92 93 94 95
	select ARCH_INLINE_READ_LOCK
	select ARCH_INLINE_READ_LOCK_BH
	select ARCH_INLINE_READ_LOCK_IRQ
	select ARCH_INLINE_READ_LOCK_IRQSAVE
96
	select ARCH_INLINE_READ_TRYLOCK
97 98 99 100
	select ARCH_INLINE_READ_UNLOCK
	select ARCH_INLINE_READ_UNLOCK_BH
	select ARCH_INLINE_READ_UNLOCK_IRQ
	select ARCH_INLINE_READ_UNLOCK_IRQRESTORE
101 102 103 104 105 106 107 108 109 110
	select ARCH_INLINE_SPIN_LOCK
	select ARCH_INLINE_SPIN_LOCK_BH
	select ARCH_INLINE_SPIN_LOCK_IRQ
	select ARCH_INLINE_SPIN_LOCK_IRQSAVE
	select ARCH_INLINE_SPIN_TRYLOCK
	select ARCH_INLINE_SPIN_TRYLOCK_BH
	select ARCH_INLINE_SPIN_UNLOCK
	select ARCH_INLINE_SPIN_UNLOCK_BH
	select ARCH_INLINE_SPIN_UNLOCK_IRQ
	select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
111 112 113 114
	select ARCH_INLINE_WRITE_LOCK
	select ARCH_INLINE_WRITE_LOCK_BH
	select ARCH_INLINE_WRITE_LOCK_IRQ
	select ARCH_INLINE_WRITE_LOCK_IRQSAVE
115
	select ARCH_INLINE_WRITE_TRYLOCK
116 117 118 119
	select ARCH_INLINE_WRITE_UNLOCK
	select ARCH_INLINE_WRITE_UNLOCK_BH
	select ARCH_INLINE_WRITE_UNLOCK_IRQ
	select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
120
	select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE
121
	select ARCH_STACKWALK
122
	select ARCH_SUPPORTS_ATOMIC_RMW
123
	select ARCH_SUPPORTS_DEBUG_PAGEALLOC
124
	select ARCH_SUPPORTS_HUGETLBFS
125
	select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 && CC_IS_CLANG
126
	select ARCH_SUPPORTS_NUMA_BALANCING
127
	select ARCH_SUPPORTS_PER_VMA_LOCK
128
	select ARCH_USE_BUILTIN_BSWAP
129
	select ARCH_USE_CMPXCHG_LOCKREF
130
	select ARCH_USE_SYM_ANNOTATIONS
131
	select ARCH_WANTS_NO_INSTR
132
	select ARCH_WANT_DEFAULT_BPF_JIT
133
	select ARCH_WANT_IPC_PARSE_VERSION
134
	select ARCH_WANT_KERNEL_PMD_MKWRITE
135
	select ARCH_WANT_LD_ORPHAN_WARN
136
	select ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP
137
	select BUILDTIME_TABLE_SORT
138
	select CLONE_BACKWARDS2
139
	select DCACHE_WORD_ACCESS if !KMSAN
140
	select DMA_OPS if PCI
141
	select DYNAMIC_FTRACE if FUNCTION_TRACER
142 143
	select FUNCTION_ALIGNMENT_8B if CC_IS_GCC
	select FUNCTION_ALIGNMENT_16B if !CC_IS_GCC
144
	select GENERIC_ALLOCATOR
145
	select GENERIC_CPU_DEVICES
146
	select GENERIC_CPU_AUTOPROBE
147
	select GENERIC_CPU_VULNERABILITIES
148
	select GENERIC_ENTRY
Sven Schnelle's avatar
Sven Schnelle committed
149
	select GENERIC_GETTIMEOFDAY
150
	select GENERIC_PTDUMP
151
	select GENERIC_SMP_IDLE_THREAD
152
	select GENERIC_TIME_VSYSCALL
153
	select GENERIC_VDSO_TIME_NS
154
	select GENERIC_IOREMAP if PCI
155
	select HAVE_ALIGNED_STRUCT_PAGE
156
	select HAVE_ARCH_AUDITSYSCALL
Heiko Carstens's avatar
Heiko Carstens committed
157
	select HAVE_ARCH_JUMP_LABEL
158
	select HAVE_ARCH_JUMP_LABEL_RELATIVE
159
	select HAVE_ARCH_KASAN
160
	select HAVE_ARCH_KASAN_VMALLOC
Ilya Leoshkevich's avatar
Ilya Leoshkevich committed
161
	select HAVE_ARCH_KCSAN
Ilya Leoshkevich's avatar
Ilya Leoshkevich committed
162
	select HAVE_ARCH_KMSAN
Sven Schnelle's avatar
Sven Schnelle committed
163
	select HAVE_ARCH_KFENCE
164
	select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET
165
	select HAVE_ARCH_SECCOMP_FILTER
166
	select HAVE_ARCH_SOFT_DIRTY
167
	select HAVE_ARCH_STACKLEAK
168
	select HAVE_ARCH_TRACEHOOK
Heiko Carstens's avatar
Heiko Carstens committed
169
	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
170
	select HAVE_ARCH_VMAP_STACK
171
	select HAVE_ASM_MODVERSIONS
172 173 174
	select HAVE_CMPXCHG_DOUBLE
	select HAVE_CMPXCHG_LOCAL
	select HAVE_DEBUG_KMEMLEAK
Heiko Carstens's avatar
Heiko Carstens committed
175
	select HAVE_DMA_CONTIGUOUS
Heiko Carstens's avatar
Heiko Carstens committed
176
	select HAVE_DYNAMIC_FTRACE
177
	select HAVE_DYNAMIC_FTRACE_WITH_ARGS
178
	select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS
Heiko Carstens's avatar
Heiko Carstens committed
179
	select HAVE_DYNAMIC_FTRACE_WITH_REGS
180
	select HAVE_EBPF_JIT if HAVE_MARCH_Z196_FEATURES
181
	select HAVE_EFFICIENT_UNALIGNED_ACCESS
182
	select HAVE_GUP_FAST
183
	select HAVE_FENTRY
184
	select HAVE_FTRACE_MCOUNT_RECORD
185
	select HAVE_FUNCTION_ARG_ACCESS_API
186
	select HAVE_FUNCTION_ERROR_INJECTION
187
	select HAVE_FUNCTION_GRAPH_RETVAL
Heiko Carstens's avatar
Heiko Carstens committed
188 189
	select HAVE_FUNCTION_GRAPH_TRACER
	select HAVE_FUNCTION_TRACER
190
	select HAVE_GCC_PLUGINS
Sven Schnelle's avatar
Sven Schnelle committed
191
	select HAVE_GENERIC_VDSO
192
	select HAVE_IOREMAP_PROT if PCI
193 194
	select HAVE_KERNEL_BZIP2
	select HAVE_KERNEL_GZIP
195
	select HAVE_KERNEL_LZ4
196 197
	select HAVE_KERNEL_LZMA
	select HAVE_KERNEL_LZO
198
	select HAVE_KERNEL_UNCOMPRESSED
199
	select HAVE_KERNEL_XZ
200
	select HAVE_KERNEL_ZSTD
201
	select HAVE_KPROBES
202
	select HAVE_KPROBES_ON_FTRACE
203
	select HAVE_KRETPROBES
Jiri Slaby's avatar
Jiri Slaby committed
204
	select HAVE_LIVEPATCH
205
	select HAVE_MEMBLOCK_PHYS_MAP
206
	select HAVE_MOD_ARCH_SPECIFIC
207
	select HAVE_NMI
208
	select HAVE_NOP_MCOUNT
209
	select HAVE_PAGE_SIZE_4KB
210
	select HAVE_PCI
211
	select HAVE_PERF_EVENTS
212 213
	select HAVE_PERF_REGS
	select HAVE_PERF_USER_STACK_DUMP
214
	select HAVE_REGS_AND_STACK_ACCESS_API
215
	select HAVE_RELIABLE_STACKTRACE
216
	select HAVE_RETHOOK
217
	select HAVE_RSEQ
218
	select HAVE_SAMPLE_FTRACE_DIRECT
219
	select HAVE_SAMPLE_FTRACE_DIRECT_MULTI
220
	select HAVE_SETUP_PER_CPU_AREA
221
	select HAVE_SOFTIRQ_ON_OWN_STACK
222 223
	select HAVE_SYSCALL_TRACEPOINTS
	select HAVE_VIRT_CPU_ACCOUNTING
224
	select HAVE_VIRT_CPU_ACCOUNTING_IDLE
225 226
	select IOMMU_HELPER		if PCI
	select IOMMU_SUPPORT		if PCI
227
	select MMU_GATHER_MERGE_VMAS
228 229
	select MMU_GATHER_NO_GATHER
	select MMU_GATHER_RCU_TABLE_FREE
230
	select MODULES_USE_ELF_RELA
231
	select NEED_DMA_MAP_STATE	if PCI
232
	select NEED_PER_CPU_EMBED_FIRST_CHUNK
233
	select NEED_SG_DMA_LENGTH	if PCI
234
	select OLD_SIGACTION
Heiko Carstens's avatar
Heiko Carstens committed
235
	select OLD_SIGSUSPEND3
236
	select PCI_DOMAINS		if PCI
237
	select PCI_MSI			if PCI
238
	select PCI_MSI_ARCH_FALLBACKS	if PCI_MSI
Sebastian Ott's avatar
Sebastian Ott committed
239
	select SPARSE_IRQ
240
	select SWIOTLB
241
	select SYSCTL_EXCEPTION_TRACE
242
	select THREAD_INFO_IN_TASK
243
	select TRACE_IRQFLAGS_SUPPORT
244
	select TTY
245
	select USER_STACKTRACE_SUPPORT
246
	select VIRT_CPU_ACCOUNTING
Kefeng Wang's avatar
Kefeng Wang committed
247
	select ZONE_DMA
248
	# Note: keep the above list sorted alphabetically
Linus Torvalds's avatar
Linus Torvalds committed
249

250
config SCHED_OMIT_FRAME_POINTER
251
	def_bool y
252

253 254
config PGTABLE_LEVELS
	int
255
	default 5
256

Jiri Slaby's avatar
Jiri Slaby committed
257 258
source "kernel/livepatch/Kconfig"

259 260 261 262
config ARCH_SUPPORTS_KEXEC
	def_bool y

config ARCH_SUPPORTS_KEXEC_FILE
263
	def_bool y
264 265 266 267

config ARCH_SUPPORTS_KEXEC_SIG
	def_bool MODULE_SIG_FORMAT

268
config ARCH_SUPPORTS_KEXEC_PURGATORY
269
	def_bool y
270 271 272 273

config ARCH_SUPPORTS_CRASH_DUMP
	def_bool y
	help
274
	  Refer to <file:Documentation/arch/s390/zfcpdump.rst> for more details on this.
275
	  This option also enables s390 zfcpdump.
276
	  See also <file:Documentation/arch/s390/zfcpdump.rst>
277

278 279 280 281 282 283 284 285 286
menu "Processor type and features"

config HAVE_MARCH_Z10_FEATURES
	def_bool n

config HAVE_MARCH_Z196_FEATURES
	def_bool n
	select HAVE_MARCH_Z10_FEATURES

287 288 289 290
config HAVE_MARCH_ZEC12_FEATURES
	def_bool n
	select HAVE_MARCH_Z196_FEATURES

291 292 293 294
config HAVE_MARCH_Z13_FEATURES
	def_bool n
	select HAVE_MARCH_ZEC12_FEATURES

295 296 297 298
config HAVE_MARCH_Z14_FEATURES
	def_bool n
	select HAVE_MARCH_Z13_FEATURES

299 300 301 302
config HAVE_MARCH_Z15_FEATURES
	def_bool n
	select HAVE_MARCH_Z14_FEATURES

303 304 305 306
config HAVE_MARCH_Z16_FEATURES
	def_bool n
	select HAVE_MARCH_Z15_FEATURES

307 308
choice
	prompt "Processor type"
309
	default MARCH_Z196
Linus Torvalds's avatar
Linus Torvalds committed
310

311 312
config MARCH_Z10
	bool "IBM System z10"
Heiko Carstens's avatar
Heiko Carstens committed
313
	select HAVE_MARCH_Z10_FEATURES
314
	depends on $(cc-option,-march=z10)
315
	help
316 317
	  Select this to enable optimizations for IBM System z10 (2097 and 2098
	  series). This is the oldest machine generation currently supported.
318 319 320

config MARCH_Z196
	bool "IBM zEnterprise 114 and 196"
Heiko Carstens's avatar
Heiko Carstens committed
321
	select HAVE_MARCH_Z196_FEATURES
322
	depends on $(cc-option,-march=z196)
323 324 325 326
	help
	  Select this to enable optimizations for IBM zEnterprise 114 and 196
	  (2818 and 2817 series). The kernel will be slightly faster but will
	  not work on older machines.
Linus Torvalds's avatar
Linus Torvalds committed
327

328
config MARCH_ZEC12
329
	bool "IBM zBC12 and zEC12"
Heiko Carstens's avatar
Heiko Carstens committed
330
	select HAVE_MARCH_ZEC12_FEATURES
331
	depends on $(cc-option,-march=zEC12)
332
	help
333 334 335
	  Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and
	  2827 series). The kernel will be slightly faster but will not work on
	  older machines.
336

337
config MARCH_Z13
338
	bool "IBM z13s and z13"
Heiko Carstens's avatar
Heiko Carstens committed
339
	select HAVE_MARCH_Z13_FEATURES
340
	depends on $(cc-option,-march=z13)
341
	help
342 343 344
	  Select this to enable optimizations for IBM z13s and z13 (2965 and
	  2964 series). The kernel will be slightly faster but will not work on
	  older machines.
345

346
config MARCH_Z14
347
	bool "IBM z14 ZR1 and z14"
348
	select HAVE_MARCH_Z14_FEATURES
349
	depends on $(cc-option,-march=z14)
350
	help
351 352 353
	  Select this to enable optimizations for IBM z14 ZR1 and z14 (3907
	  and 3906 series). The kernel will be slightly faster but will not
	  work on older machines.
354

355 356 357
config MARCH_Z15
	bool "IBM z15"
	select HAVE_MARCH_Z15_FEATURES
358
	depends on $(cc-option,-march=z15)
359 360 361 362 363
	help
	  Select this to enable optimizations for IBM z15 (8562
	  and 8561 series). The kernel will be slightly faster but will not
	  work on older machines.

364 365 366 367 368 369 370 371
config MARCH_Z16
	bool "IBM z16"
	select HAVE_MARCH_Z16_FEATURES
	depends on $(cc-option,-march=z16)
	help
	  Select this to enable optimizations for IBM z16 (3931 and
	  3932 series).

372
endchoice
Linus Torvalds's avatar
Linus Torvalds committed
373

374 375 376 377 378 379 380 381 382
config MARCH_Z10_TUNE
	def_bool TUNE_Z10 || MARCH_Z10 && TUNE_DEFAULT

config MARCH_Z196_TUNE
	def_bool TUNE_Z196 || MARCH_Z196 && TUNE_DEFAULT

config MARCH_ZEC12_TUNE
	def_bool TUNE_ZEC12 || MARCH_ZEC12 && TUNE_DEFAULT

383 384 385
config MARCH_Z13_TUNE
	def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT

386 387 388
config MARCH_Z14_TUNE
	def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT

389 390 391
config MARCH_Z15_TUNE
	def_bool TUNE_Z15 || MARCH_Z15 && TUNE_DEFAULT

392 393 394
config MARCH_Z16_TUNE
	def_bool TUNE_Z16 || MARCH_Z16 && TUNE_DEFAULT

395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416
choice
	prompt "Tune code generation"
	default TUNE_DEFAULT
	help
	  Cause the compiler to tune (-mtune) the generated code for a machine.
	  This will make the code run faster on the selected machine but
	  somewhat slower on other machines.
	  This option only changes how the compiler emits instructions, not the
	  selection of instructions itself, so the resulting kernel will run on
	  all other machines.

config TUNE_DEFAULT
	bool "Default"
	help
	  Tune the generated code for the target processor for which the kernel
	  will be compiled.

config TUNE_Z10
	bool "IBM System z10"

config TUNE_Z196
	bool "IBM zEnterprise 114 and 196"
417
	depends on $(cc-option,-mtune=z196)
418 419 420

config TUNE_ZEC12
	bool "IBM zBC12 and zEC12"
421
	depends on $(cc-option,-mtune=zEC12)
422

423
config TUNE_Z13
424
	bool "IBM z13s and z13"
425
	depends on $(cc-option,-mtune=z13)
426

427
config TUNE_Z14
428
	bool "IBM z14 ZR1 and z14"
429
	depends on $(cc-option,-mtune=z14)
430

431 432
config TUNE_Z15
	bool "IBM z15"
433
	depends on $(cc-option,-mtune=z15)
434

435 436 437 438
config TUNE_Z16
	bool "IBM z16"
	depends on $(cc-option,-mtune=z16)

439 440
endchoice

441
config 64BIT
442
	def_bool y
443

444 445 446 447 448 449 450 451
config COMMAND_LINE_SIZE
	int "Maximum size of kernel command line"
	default 4096
	range 896 1048576
	help
	  This allows you to specify the maximum length of the kernel command
	  line.

452
config COMPAT
453
	def_bool n
454 455
	prompt "Kernel support for 31 bit emulation"
	select ARCH_WANT_OLD_COMPAT_IPC
456
	select COMPAT_OLD_SIGACTION
457
	select HAVE_UID16
458
	depends on MULTIUSER
459
	depends on !CC_IS_CLANG && !LD_IS_LLD
460 461 462 463
	help
	  Select this option if you want to enable your system kernel to
	  handle system-calls from ELF binaries for 31 bit ESA.  This option
	  (and some other stuff like libraries and such) is needed for
464 465 466
	  executing 31 bit applications.

	  If unsure say N.
467

Linus Torvalds's avatar
Linus Torvalds committed
468
config SMP
469
	def_bool y
Linus Torvalds's avatar
Linus Torvalds committed
470 471

config NR_CPUS
472 473
	int "Maximum number of CPUs (2-512)"
	range 2 512
Heiko Carstens's avatar
Heiko Carstens committed
474
	default "64"
Linus Torvalds's avatar
Linus Torvalds committed
475 476
	help
	  This allows you to specify the maximum number of CPUs which this
477
	  kernel will support. The maximum supported value is 512 and the
Linus Torvalds's avatar
Linus Torvalds committed
478 479 480 481 482 483
	  minimum value which makes sense is 2.

	  This is purely to save memory - each supported CPU adds
	  approximately sixteen kilobytes to the kernel image.

config HOTPLUG_CPU
484
	def_bool y
Linus Torvalds's avatar
Linus Torvalds committed
485

486 487
config NUMA
	bool "NUMA support"
Heiko Carstens's avatar
Heiko Carstens committed
488
	depends on SCHED_TOPOLOGY
489 490 491 492 493 494 495
	default n
	help
	  Enable NUMA support

	  This option adds NUMA support to the kernel.

config NODES_SHIFT
496
	int
497
	depends on NUMA
498
	default "1"
499 500 501

config SCHED_SMT
	def_bool n
502

503
config SCHED_MC
504
	def_bool n
505

Martin Schwidefsky's avatar
Martin Schwidefsky committed
506
config SCHED_TOPOLOGY
507
	def_bool y
Martin Schwidefsky's avatar
Martin Schwidefsky committed
508 509
	prompt "Topology scheduler support"
	select SCHED_SMT
510
	select SCHED_MC
511
	help
Martin Schwidefsky's avatar
Martin Schwidefsky committed
512 513 514
	  Topology scheduler support improves the CPU scheduler's decision
	  making when dealing with machines that have multi-threading,
	  multiple cores or multiple books.
515

516
source "kernel/Kconfig.hz"
Linus Torvalds's avatar
Linus Torvalds committed
517

518 519 520
config CERT_STORE
	bool "Get user certificates via DIAG320"
	depends on KEYS
521
	select CRYPTO_LIB_SHA256
522 523 524 525 526 527 528
	help
	  Enable this option if you want to access user-provided secure boot
	  certificates via DIAG 0x320.

	  These certificates will be made available via the keyring named
	  'cert_store'.

529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545
config KERNEL_NOBP
	def_bool n
	prompt "Enable modified branch prediction for the kernel by default"
	help
	  If this option is selected the kernel will switch to a modified
	  branch prediction mode if the firmware interface is available.
	  The modified branch prediction mode improves the behaviour in
	  regard to speculative execution.

	  With the option enabled the kernel parameter "nobp=0" or "nospec"
	  can be used to run the kernel in the normal branch prediction mode.

	  With the option disabled the modified branch prediction mode is
	  enabled with the "nobp=1" kernel parameter.

	  If unsure, say N.

546 547
config EXPOLINE
	def_bool n
548
	depends on $(cc-option,-mindirect-branch=thunk)
549 550 551 552 553 554 555 556 557 558
	prompt "Avoid speculative indirect branches in the kernel"
	help
	  Compile the kernel with the expoline compiler options to guard
	  against kernel-to-user data leaks by avoiding speculative indirect
	  branches.
	  Requires a compiler with -mindirect-branch=thunk support for full
	  protection. The kernel may run slower.

	  If unsure, say N.

559
config EXPOLINE_EXTERN
560 561
	def_bool EXPOLINE && CC_IS_GCC && GCC_VERSION >= 110200 && \
		 $(success,$(srctree)/arch/s390/tools/gcc-thunk-extern.sh $(CC))
562
	help
563 564 565 566
	  Generate expolines as external functions if the compiler supports it.
	  This option is required for some tooling like kpatch, if expolines
	  are enabled. The kernel is compiled with
	  -mindirect-branch=thunk-extern, which requires a newer compiler.
567 568 569 570 571 572 573 574 575

choice
	prompt "Expoline default"
	depends on EXPOLINE
	default EXPOLINE_FULL

config EXPOLINE_OFF
	bool "spectre_v2=off"

576
config EXPOLINE_AUTO
577 578 579 580 581 582 583
	bool "spectre_v2=auto"

config EXPOLINE_FULL
	bool "spectre_v2=on"

endchoice

584
config RELOCATABLE
585
	def_bool y
586 587 588 589 590
	help
	  This builds a kernel image that retains relocation information
	  so it can be loaded at an arbitrary address.
	  The relocations make the kernel image about 15% larger (compressed
	  10%), but are discarded at runtime.
591 592
	  Note: this option exists only for documentation purposes, please do
	  not remove it.
593

594 595 596 597 598 599 600 601 602
config RANDOMIZE_BASE
	bool "Randomize the address of the kernel image (KASLR)"
	default y
	help
	  In support of Kernel Address Space Layout Randomization (KASLR),
	  this randomizes the address at which the kernel image is loaded,
	  as a security feature that deters exploit attempts relying on
	  knowledge of the location of kernel internals.

603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621
config KERNEL_IMAGE_BASE
	hex "Kernel image base address"
	range 0x100000 0x1FFFFFE0000000 if !KASAN
	range 0x100000 0x1BFFFFE0000000 if KASAN
	default 0x3FFE0000000 if !KASAN
	default 0x7FFFE0000000 if KASAN
	help
	  This is the address at which the kernel image is loaded in case
	  Kernel Address Space Layout Randomization (KASLR) is disabled.

	  In case the Protected virtualization guest support is enabled the
	  Ultravisor imposes a virtual address limit. If the value of this
	  option leads to the kernel image exceeding the Ultravisor limit,
	  this option is ignored and the image is loaded below the limit.

	  If the value of this option leads to the kernel image overlapping
	  the virtual memory where other data structures are located, this
	  option is ignored and the image is loaded above the structures.

622
endmenu
Linus Torvalds's avatar
Linus Torvalds committed
623

624
menu "Memory setup"
625

626
config ARCH_SPARSEMEM_ENABLE
627
	def_bool y
628 629
	select SPARSEMEM_VMEMMAP_ENABLE
	select SPARSEMEM_VMEMMAP
630

631 632
config ARCH_SPARSEMEM_DEFAULT
	def_bool y
Linus Torvalds's avatar
Linus Torvalds committed
633

634 635 636 637 638 639 640 641 642 643
config MAX_PHYSMEM_BITS
	int "Maximum size of supported physical memory in bits (42-53)"
	range 42 53
	default "46"
	help
	  This option specifies the maximum supported size of physical memory
	  in bits. Supported is any size between 2^42 (4TB) and 2^53 (8PB).
	  Increasing the number of bits also increases the kernel image size.
	  By default 46 bits (64TB) are supported.

Linus Torvalds's avatar
Linus Torvalds committed
644
config CHECK_STACK
645
	def_bool y
646
	depends on !VMAP_STACK
647
	prompt "Detect kernel stack overflow"
Linus Torvalds's avatar
Linus Torvalds committed
648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
	help
	  This option enables the compiler option -mstack-guard and
	  -mstack-size if they are available. If the compiler supports them
	  it will emit additional code to each function prolog to trigger
	  an illegal operation if the kernel stack is about to overflow.

	  Say N if you are unsure.

config STACK_GUARD
	int "Size of the guard area (128-1024)"
	range 128 1024
	depends on CHECK_STACK
	default "256"
	help
	  This allows you to specify the size of the guard area at the lower
	  end of the kernel stack. If the kernel stack points into the guard
	  area on function entry an illegal operation is triggered. The size
	  needs to be a power of 2. Please keep in mind that the size of an
	  interrupt frame is 184 bytes for 31 bit and 328 bytes on 64 bit.
	  The minimum size for the stack guard should be 256 for 31 bit and
	  512 for 64 bit.

670
endmenu
671

672
menu "I/O subsystem"
Linus Torvalds's avatar
Linus Torvalds committed
673 674

config QDIO
675 676
	def_tristate y
	prompt "QDIO support"
677
	help
678
	  This driver provides the Queued Direct I/O base support for
679
	  IBM System z.
Linus Torvalds's avatar
Linus Torvalds committed
680 681 682 683 684 685

	  To compile this driver as a module, choose M here: the
	  module will be called qdio.

	  If unsure, say Y.

686 687 688 689 690
if PCI

config PCI_NR_FUNCTIONS
	int "Maximum number of PCI functions (1-4096)"
	range 1 4096
691
	default "512"
692 693 694 695
	help
	  This allows you to specify the maximum number of PCI functions which
	  this kernel will support.

696
endif # PCI
697 698 699 700

config HAS_IOMEM
	def_bool PCI

701
config CHSC_SCH
702
	def_tristate m
703
	prompt "Support for CHSC subchannels"
704 705 706 707 708 709 710 711 712 713 714 715 716 717
	help
	  This driver allows usage of CHSC subchannels. A CHSC subchannel
	  is usually present on LPAR only.
	  The driver creates a device /dev/chsc, which may be used to
	  obtain I/O configuration information about the machine and
	  to issue asynchronous chsc commands (DANGEROUS).
	  You will usually only want to use this interface on a special
	  LPAR designated for system management.

	  To compile this driver as a module, choose M here: the
	  module will be called chsc_sch.

	  If unsure, say N.

Sebastian Ott's avatar
Sebastian Ott committed
718 719 720 721 722 723
config SCM_BUS
	def_bool y
	prompt "SCM bus driver"
	help
	  Bus driver for Storage Class Memory.

724 725 726 727 728 729 730 731 732 733 734
config EADM_SCH
	def_tristate m
	prompt "Support for EADM subchannels"
	depends on SCM_BUS
	help
	  This driver allows usage of EADM subchannels. EADM subchannels act
	  as a communication vehicle for SCM increments.

	  To compile this driver as a module, choose M here: the
	  module will be called eadm_sch.

Holger Dengler's avatar
Holger Dengler committed
735 736 737 738 739 740 741 742 743 744 745 746 747
config AP
	def_tristate y
	prompt "Support for Adjunct Processors (ap)"
	help
	  This driver allows usage to Adjunct Processor (AP) devices via
	  the ap bus, cards and queues. Supported Adjunct Processors are
	  the CryptoExpress Cards (CEX).

	  To compile this driver as a module, choose M here: the
	  module will be called ap.

	  If unsure, say Y (default).

748 749 750 751 752 753 754 755 756 757 758 759 760 761
config AP_DEBUG
	def_bool n
	prompt "Enable debug features for Adjunct Processor (ap) devices"
	depends on AP
	help
	  Say 'Y' here to enable some additional debug features for Adjunct
	  Processor (ap) devices.

	  There will be some more sysfs attributes displayed for ap queues.

	  Do not enable on production level kernel build.

	  If unsure, say N.

762 763 764
config VFIO_CCW
	def_tristate n
	prompt "Support for VFIO-CCW subchannels"
765
	depends on VFIO
766
	select VFIO_MDEV
767 768 769 770 771 772
	help
	  This driver allows usage of I/O subchannels via VFIO-CCW.

	  To compile this driver as a module, choose M here: the
	  module will be called vfio_ccw.

773 774 775
config VFIO_AP
	def_tristate n
	prompt "VFIO support for AP devices"
776
	depends on KVM
777
	depends on VFIO
Holger Dengler's avatar
Holger Dengler committed
778
	depends on AP
779
	select VFIO_MDEV
780
	help
781 782
	  This driver grants access to Adjunct Processor (AP) devices
	  via the VFIO mediated device interface.
783

784 785
	  To compile this driver as a module, choose M here: the module
	  will be called vfio_ap.
786

787 788 789 790 791
endmenu

config CCW
	def_bool y

Ursula Braun's avatar
Ursula Braun committed
792 793 794 795
config HAVE_PNETID
	tristate
	default (SMC || CCWGROUP)

796
menu "Virtualization"
Heiko Carstens's avatar
Heiko Carstens committed
797

Linus Torvalds's avatar
Linus Torvalds committed
798
config PFAULT
799 800
	def_bool y
	prompt "Pseudo page fault support"
Linus Torvalds's avatar
Linus Torvalds committed
801 802 803 804 805 806 807 808 809 810 811
	help
	  Select this option, if you want to use PFAULT pseudo page fault
	  handling under VM. If running native or in LPAR, this option
	  has no effect. If your VM does not support PFAULT, PAGEEX
	  pseudo page fault handling will be used.
	  Note that VM 4.2 supports PFAULT but has a bug in its
	  implementation that causes some problems.
	  Everybody who wants to run Linux under VM != VM4.2 should select
	  this option.

config CMM
812 813
	def_tristate n
	prompt "Cooperative memory management"
Linus Torvalds's avatar
Linus Torvalds committed
814 815 816 817 818 819 820 821 822 823 824
	help
	  Select this option, if you want to enable the kernel interface
	  to reduce the memory size of the system. This is accomplished
	  by allocating pages of memory and put them "on hold". This only
	  makes sense for a system running under VM where the unused pages
	  will be reused by VM for other guest systems. The interface
	  allows an external monitor to balance memory of many systems.
	  Everybody who wants to run Linux under VM should select this
	  option.

config CMM_IUCV
825 826
	def_bool y
	prompt "IUCV special message interface to cooperative memory management"
Linus Torvalds's avatar
Linus Torvalds committed
827 828 829 830 831 832
	depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV)
	help
	  Select this option to enable the special message interface to
	  the cooperative memory management.

config APPLDATA_BASE
833 834
	def_bool n
	prompt "Linux - VM Monitor Stream, base infrastructure"
835
	depends on PROC_SYSCTL
Linus Torvalds's avatar
Linus Torvalds committed
836 837 838 839 840 841 842 843 844 845 846 847 848
	help
	  This provides a kernel interface for creating and updating z/VM APPLDATA
	  monitor records. The monitor records are updated at certain time
	  intervals, once the timer is started.
	  Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer,
	  i.e. enables or disables monitoring on the Linux side.
	  A custom interval value (in seconds) can be written to
	  /proc/appldata/interval.

	  Defaults are 60 seconds interval and timer off.
	  The /proc entries can also be read from, showing the current settings.

config APPLDATA_MEM
849 850
	def_tristate m
	prompt "Monitor memory management statistics"
851
	depends on APPLDATA_BASE && VM_EVENT_COUNTERS
Linus Torvalds's avatar
Linus Torvalds committed
852 853 854 855 856 857 858 859 860 861 862 863 864 865
	help
	  This provides memory management related data to the Linux - VM Monitor
	  Stream, like paging/swapping rate, memory utilisation, etc.
	  Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM
	  APPLDATA monitor record, i.e. enables or disables monitoring this record
	  on the z/VM side.

	  Default is disabled.
	  The /proc entry can also be read from, showing the current settings.

	  This can also be compiled as a module, which will be called
	  appldata_mem.o.

config APPLDATA_OS
866 867
	def_tristate m
	prompt "Monitor OS statistics"
Linus Torvalds's avatar
Linus Torvalds committed
868 869 870 871 872 873 874 875 876 877 878 879 880
	depends on APPLDATA_BASE
	help
	  This provides OS related data to the Linux - VM Monitor Stream, like
	  CPU utilisation, etc.
	  Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM
	  APPLDATA monitor record, i.e. enables or disables monitoring this record
	  on the z/VM side.

	  Default is disabled.
	  This can also be compiled as a module, which will be called
	  appldata_os.o.

config APPLDATA_NET_SUM
881 882
	def_tristate m
	prompt "Monitor overall network statistics"
883
	depends on APPLDATA_BASE && NET
Linus Torvalds's avatar
Linus Torvalds committed
884 885 886 887 888 889 890 891 892 893 894 895
	help
	  This provides network related data to the Linux - VM Monitor Stream,
	  currently there is only a total sum of network I/O statistics, no
	  per-interface data.
	  Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM
	  APPLDATA monitor record, i.e. enables or disables monitoring this record
	  on the z/VM side.

	  Default is disabled.
	  This can also be compiled as a module, which will be called
	  appldata_net_sum.o.

896
config S390_HYPFS
897
	def_bool y
898 899 900 901 902 903 904
	prompt "s390 hypervisor information"
	help
	  This provides several binary files at (debugfs)/s390_hypfs/ to
	  provide accounting information in an s390 hypervisor environment.

config S390_HYPFS_FS
	def_bool n
905
	prompt "s390 hypervisor file system support"
906
	select SYS_HYPERVISOR
907
	depends on S390_HYPFS
908 909
	help
	  This is a virtual file system intended to provide accounting
910 911 912 913
	  information in an s390 hypervisor environment. This file system
	  is deprecated and should not be used.

	  Say N if you are unsure.
914

915
source "arch/s390/kvm/Kconfig"
Michael Holzheu's avatar
Michael Holzheu committed
916

917
config S390_GUEST
918
	def_bool y
919
	prompt "s390 support for virtio devices"
920
	select TTY
921
	select VIRTUALIZATION
922 923
	select VIRTIO
	help
924 925
	  Enabling this option adds support for virtio based paravirtual device
	  drivers on s390.
Linus Torvalds's avatar
Linus Torvalds committed
926

927
	  Select this option if you want to run the kernel as a guest under
928
	  the KVM hypervisor.
929 930

endmenu
931

932 933 934
config S390_MODULES_SANITY_TEST_HELPERS
	def_bool n

935 936 937 938
menu "Selftests"

config S390_UNWIND_SELFTEST
	def_tristate n
939 940
	depends on KUNIT
	default KUNIT_ALL_TESTS
941 942 943 944 945 946 947 948
	prompt "Test unwind functions"
	help
	  This option enables s390 specific stack unwinder testing kernel
	  module. This option is not useful for distributions or general
	  kernels, but only for kernel developers working on architecture code.

	  Say N if you are unsure.

949 950 951 952 953 954 955 956 957 958 959 960
config S390_KPROBES_SANITY_TEST
	def_tristate n
	prompt "Enable s390 specific kprobes tests"
	depends on KPROBES
	depends on KUNIT
	help
	  This option enables an s390 specific kprobes test module. This option
	  is not useful for distributions or general kernels, but only for kernel
	  developers working on architecture code.

	  Say N if you are unsure.

961 962 963 964 965 966 967 968 969 970 971 972
config S390_MODULES_SANITY_TEST
	def_tristate n
	depends on KUNIT
	default KUNIT_ALL_TESTS
	prompt "Enable s390 specific modules tests"
	select S390_MODULES_SANITY_TEST_HELPERS
	help
	  This option enables an s390 specific modules test. This option is
	  not useful for distributions or general kernels, but only for
	  kernel developers working on architecture code.

	  Say N if you are unsure.
973
endmenu