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