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