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