xref: /openbmc/linux/arch/s390/Kconfig (revision 1634f2bf)
1# SPDX-License-Identifier: GPL-2.0
2config ARCH_HAS_MEM_ENCRYPT
3        def_bool y
4
5config MMU
6	def_bool y
7
8config ZONE_DMA
9	def_bool y
10
11config CPU_BIG_ENDIAN
12	def_bool y
13
14config LOCKDEP_SUPPORT
15	def_bool y
16
17config STACKTRACE_SUPPORT
18	def_bool y
19
20config ARCH_HAS_ILOG2_U32
21	def_bool n
22
23config ARCH_HAS_ILOG2_U64
24	def_bool n
25
26config GENERIC_HWEIGHT
27	def_bool y
28
29config GENERIC_BUG
30	def_bool y if BUG
31
32config GENERIC_BUG_RELATIVE_POINTERS
33	def_bool y
34
35config GENERIC_LOCKBREAK
36	def_bool y if PREEMPT
37
38config PGSTE
39	def_bool y if KVM
40
41config ARCH_SUPPORTS_DEBUG_PAGEALLOC
42	def_bool y
43
44config AUDIT_ARCH
45	def_bool y
46
47config NO_IOPORT_MAP
48	def_bool y
49
50config PCI_QUIRKS
51	def_bool n
52
53config ARCH_SUPPORTS_UPROBES
54	def_bool y
55
56config KASAN_SHADOW_OFFSET
57	hex
58	depends on KASAN
59	default 0x18000000000000 if KASAN_S390_4_LEVEL_PAGING
60	default 0x30000000000
61
62config S390
63	def_bool y
64	select ARCH_BINFMT_ELF_STATE
65	select ARCH_HAS_DEVMEM_IS_ALLOWED
66	select ARCH_HAS_ELF_RANDOMIZE
67	select ARCH_HAS_FORTIFY_SOURCE
68	select ARCH_HAS_GCOV_PROFILE_ALL
69	select ARCH_HAS_GIGANTIC_PAGE
70	select ARCH_HAS_KCOV
71	select ARCH_HAS_PTE_SPECIAL
72	select ARCH_HAS_SET_MEMORY
73	select ARCH_HAS_STRICT_KERNEL_RWX
74	select ARCH_HAS_STRICT_MODULE_RWX
75	select ARCH_HAS_SYSCALL_WRAPPER
76	select ARCH_HAS_UBSAN_SANITIZE_ALL
77	select ARCH_HAVE_NMI_SAFE_CMPXCHG
78	select ARCH_INLINE_READ_LOCK
79	select ARCH_INLINE_READ_LOCK_BH
80	select ARCH_INLINE_READ_LOCK_IRQ
81	select ARCH_INLINE_READ_LOCK_IRQSAVE
82	select ARCH_INLINE_READ_TRYLOCK
83	select ARCH_INLINE_READ_UNLOCK
84	select ARCH_INLINE_READ_UNLOCK_BH
85	select ARCH_INLINE_READ_UNLOCK_IRQ
86	select ARCH_INLINE_READ_UNLOCK_IRQRESTORE
87	select ARCH_INLINE_SPIN_LOCK
88	select ARCH_INLINE_SPIN_LOCK_BH
89	select ARCH_INLINE_SPIN_LOCK_IRQ
90	select ARCH_INLINE_SPIN_LOCK_IRQSAVE
91	select ARCH_INLINE_SPIN_TRYLOCK
92	select ARCH_INLINE_SPIN_TRYLOCK_BH
93	select ARCH_INLINE_SPIN_UNLOCK
94	select ARCH_INLINE_SPIN_UNLOCK_BH
95	select ARCH_INLINE_SPIN_UNLOCK_IRQ
96	select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
97	select ARCH_INLINE_WRITE_LOCK
98	select ARCH_INLINE_WRITE_LOCK_BH
99	select ARCH_INLINE_WRITE_LOCK_IRQ
100	select ARCH_INLINE_WRITE_LOCK_IRQSAVE
101	select ARCH_INLINE_WRITE_TRYLOCK
102	select ARCH_INLINE_WRITE_UNLOCK
103	select ARCH_INLINE_WRITE_UNLOCK_BH
104	select ARCH_INLINE_WRITE_UNLOCK_IRQ
105	select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
106	select ARCH_KEEP_MEMBLOCK
107	select ARCH_SAVE_PAGE_KEYS if HIBERNATION
108	select ARCH_SUPPORTS_ATOMIC_RMW
109	select ARCH_SUPPORTS_NUMA_BALANCING
110	select ARCH_USE_BUILTIN_BSWAP
111	select ARCH_USE_CMPXCHG_LOCKREF
112	select ARCH_WANTS_DYNAMIC_TASK_STRUCT
113	select ARCH_WANT_IPC_PARSE_VERSION
114	select BUILDTIME_EXTABLE_SORT
115	select CLONE_BACKWARDS2
116	select DYNAMIC_FTRACE if FUNCTION_TRACER
117	select GENERIC_CLOCKEVENTS
118	select GENERIC_CPU_AUTOPROBE
119	select GENERIC_CPU_VULNERABILITIES
120	select GENERIC_FIND_FIRST_BIT
121	select GENERIC_SMP_IDLE_THREAD
122	select GENERIC_TIME_VSYSCALL
123	select HAVE_ALIGNED_STRUCT_PAGE if SLUB
124	select HAVE_ARCH_AUDITSYSCALL
125	select HAVE_ARCH_JUMP_LABEL
126	select HAVE_ARCH_JUMP_LABEL_RELATIVE
127	select HAVE_ARCH_KASAN
128	select CPU_NO_EFFICIENT_FFS if !HAVE_MARCH_Z9_109_FEATURES
129	select HAVE_ARCH_SECCOMP_FILTER
130	select HAVE_ARCH_SOFT_DIRTY
131	select HAVE_ARCH_TRACEHOOK
132	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
133	select HAVE_ARCH_VMAP_STACK
134	select HAVE_ASM_MODVERSIONS
135	select HAVE_EBPF_JIT if PACK_STACK && HAVE_MARCH_Z196_FEATURES
136	select HAVE_CMPXCHG_DOUBLE
137	select HAVE_CMPXCHG_LOCAL
138	select HAVE_COPY_THREAD_TLS
139	select HAVE_DEBUG_KMEMLEAK
140	select HAVE_DMA_CONTIGUOUS
141	select HAVE_DYNAMIC_FTRACE
142	select HAVE_DYNAMIC_FTRACE_WITH_REGS
143	select HAVE_FAST_GUP
144	select HAVE_EFFICIENT_UNALIGNED_ACCESS
145	select HAVE_FENTRY
146	select HAVE_FTRACE_MCOUNT_RECORD
147	select HAVE_FUNCTION_GRAPH_TRACER
148	select HAVE_FUNCTION_TRACER
149	select HAVE_FUTEX_CMPXCHG if FUTEX
150	select HAVE_GCC_PLUGINS
151	select HAVE_KERNEL_BZIP2
152	select HAVE_KERNEL_GZIP
153	select HAVE_KERNEL_LZ4
154	select HAVE_KERNEL_LZMA
155	select HAVE_KERNEL_LZO
156	select HAVE_KERNEL_UNCOMPRESSED
157	select HAVE_KERNEL_XZ
158	select HAVE_KPROBES
159	select HAVE_KRETPROBES
160	select HAVE_KVM
161	select HAVE_LIVEPATCH
162	select HAVE_PERF_REGS
163	select HAVE_PERF_USER_STACK_DUMP
164	select HAVE_MEMBLOCK_NODE_MAP
165	select HAVE_MEMBLOCK_PHYS_MAP
166	select HAVE_MMU_GATHER_NO_GATHER
167	select HAVE_MOD_ARCH_SPECIFIC
168	select HAVE_NOP_MCOUNT
169	select HAVE_OPROFILE
170	select HAVE_PCI
171	select HAVE_PERF_EVENTS
172	select HAVE_RCU_TABLE_FREE
173	select HAVE_REGS_AND_STACK_ACCESS_API
174	select HAVE_RSEQ
175	select HAVE_SYSCALL_TRACEPOINTS
176	select HAVE_VIRT_CPU_ACCOUNTING
177	select IOMMU_HELPER		if PCI
178	select IOMMU_SUPPORT		if PCI
179	select MODULES_USE_ELF_RELA
180	select NEED_DMA_MAP_STATE	if PCI
181	select NEED_SG_DMA_LENGTH	if PCI
182	select OLD_SIGACTION
183	select OLD_SIGSUSPEND3
184	select PCI_DOMAINS		if PCI
185	select PCI_MSI			if PCI
186	select SPARSE_IRQ
187	select SYSCTL_EXCEPTION_TRACE
188	select THREAD_INFO_IN_TASK
189	select TTY
190	select VIRT_CPU_ACCOUNTING
191	select ARCH_HAS_SCALED_CPUTIME
192	select HAVE_NMI
193	select ARCH_HAS_FORCE_DMA_UNENCRYPTED
194	select SWIOTLB
195	select GENERIC_ALLOCATOR
196
197
198config SCHED_OMIT_FRAME_POINTER
199	def_bool y
200
201config PGTABLE_LEVELS
202	int
203	default 5
204
205source "kernel/livepatch/Kconfig"
206
207menu "Processor type and features"
208
209config HAVE_MARCH_Z900_FEATURES
210	def_bool n
211
212config HAVE_MARCH_Z990_FEATURES
213	def_bool n
214	select HAVE_MARCH_Z900_FEATURES
215
216config HAVE_MARCH_Z9_109_FEATURES
217	def_bool n
218	select HAVE_MARCH_Z990_FEATURES
219
220config HAVE_MARCH_Z10_FEATURES
221	def_bool n
222	select HAVE_MARCH_Z9_109_FEATURES
223
224config HAVE_MARCH_Z196_FEATURES
225	def_bool n
226	select HAVE_MARCH_Z10_FEATURES
227
228config HAVE_MARCH_ZEC12_FEATURES
229	def_bool n
230	select HAVE_MARCH_Z196_FEATURES
231
232config HAVE_MARCH_Z13_FEATURES
233	def_bool n
234	select HAVE_MARCH_ZEC12_FEATURES
235
236config HAVE_MARCH_Z14_FEATURES
237	def_bool n
238	select HAVE_MARCH_Z13_FEATURES
239
240choice
241	prompt "Processor type"
242	default MARCH_Z196
243
244config MARCH_Z900
245	bool "IBM zSeries model z800 and z900"
246	depends on !CC_IS_CLANG
247	select HAVE_MARCH_Z900_FEATURES
248	help
249	  Select this to enable optimizations for model z800/z900 (2064 and
250	  2066 series). This will enable some optimizations that are not
251	  available on older ESA/390 (31 Bit) only CPUs.
252
253config MARCH_Z990
254	bool "IBM zSeries model z890 and z990"
255	depends on !CC_IS_CLANG
256	select HAVE_MARCH_Z990_FEATURES
257	help
258	  Select this to enable optimizations for model z890/z990 (2084 and
259	  2086 series). The kernel will be slightly faster but will not work
260	  on older machines.
261
262config MARCH_Z9_109
263	bool "IBM System z9"
264	depends on !CC_IS_CLANG
265	select HAVE_MARCH_Z9_109_FEATURES
266	help
267	  Select this to enable optimizations for IBM System z9 (2094 and
268	  2096 series). The kernel will be slightly faster but will not work
269	  on older machines.
270
271config MARCH_Z10
272	bool "IBM System z10"
273	select HAVE_MARCH_Z10_FEATURES
274	help
275	  Select this to enable optimizations for IBM System z10 (2097 and
276	  2098 series). The kernel will be slightly faster but will not work
277	  on older machines.
278
279config MARCH_Z196
280	bool "IBM zEnterprise 114 and 196"
281	select HAVE_MARCH_Z196_FEATURES
282	help
283	  Select this to enable optimizations for IBM zEnterprise 114 and 196
284	  (2818 and 2817 series). The kernel will be slightly faster but will
285	  not work on older machines.
286
287config MARCH_ZEC12
288	bool "IBM zBC12 and zEC12"
289	select HAVE_MARCH_ZEC12_FEATURES
290	help
291	  Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and
292	  2827 series). The kernel will be slightly faster but will not work on
293	  older machines.
294
295config MARCH_Z13
296	bool "IBM z13s and z13"
297	select HAVE_MARCH_Z13_FEATURES
298	help
299	  Select this to enable optimizations for IBM z13s and z13 (2965 and
300	  2964 series). The kernel will be slightly faster but will not work on
301	  older machines.
302
303config MARCH_Z14
304	bool "IBM z14 ZR1 and z14"
305	select HAVE_MARCH_Z14_FEATURES
306	help
307	  Select this to enable optimizations for IBM z14 ZR1 and z14 (3907
308	  and 3906 series). The kernel will be slightly faster but will not
309	  work on older machines.
310
311endchoice
312
313config MARCH_Z900_TUNE
314	def_bool TUNE_Z900 || MARCH_Z900 && TUNE_DEFAULT
315
316config MARCH_Z990_TUNE
317	def_bool TUNE_Z990 || MARCH_Z990 && TUNE_DEFAULT
318
319config MARCH_Z9_109_TUNE
320	def_bool TUNE_Z9_109 || MARCH_Z9_109 && TUNE_DEFAULT
321
322config MARCH_Z10_TUNE
323	def_bool TUNE_Z10 || MARCH_Z10 && TUNE_DEFAULT
324
325config MARCH_Z196_TUNE
326	def_bool TUNE_Z196 || MARCH_Z196 && TUNE_DEFAULT
327
328config MARCH_ZEC12_TUNE
329	def_bool TUNE_ZEC12 || MARCH_ZEC12 && TUNE_DEFAULT
330
331config MARCH_Z13_TUNE
332	def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT
333
334config MARCH_Z14_TUNE
335	def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT
336
337choice
338	prompt "Tune code generation"
339	default TUNE_DEFAULT
340	help
341	  Cause the compiler to tune (-mtune) the generated code for a machine.
342	  This will make the code run faster on the selected machine but
343	  somewhat slower on other machines.
344	  This option only changes how the compiler emits instructions, not the
345	  selection of instructions itself, so the resulting kernel will run on
346	  all other machines.
347
348config TUNE_DEFAULT
349	bool "Default"
350	help
351	  Tune the generated code for the target processor for which the kernel
352	  will be compiled.
353
354config TUNE_Z900
355	bool "IBM zSeries model z800 and z900"
356	depends on !CC_IS_CLANG
357
358config TUNE_Z990
359	bool "IBM zSeries model z890 and z990"
360	depends on !CC_IS_CLANG
361
362config TUNE_Z9_109
363	bool "IBM System z9"
364	depends on !CC_IS_CLANG
365
366config TUNE_Z10
367	bool "IBM System z10"
368
369config TUNE_Z196
370	bool "IBM zEnterprise 114 and 196"
371
372config TUNE_ZEC12
373	bool "IBM zBC12 and zEC12"
374
375config TUNE_Z13
376	bool "IBM z13"
377
378config TUNE_Z14
379	bool "IBM z14"
380
381endchoice
382
383config 64BIT
384	def_bool y
385
386config COMPAT
387	def_bool y
388	prompt "Kernel support for 31 bit emulation"
389	select COMPAT_BINFMT_ELF if BINFMT_ELF
390	select ARCH_WANT_OLD_COMPAT_IPC
391	select COMPAT_OLD_SIGACTION
392	select HAVE_UID16
393	depends on MULTIUSER
394	help
395	  Select this option if you want to enable your system kernel to
396	  handle system-calls from ELF binaries for 31 bit ESA.  This option
397	  (and some other stuff like libraries and such) is needed for
398	  executing 31 bit applications.  It is safe to say "Y".
399
400config COMPAT_VDSO
401	def_bool COMPAT && !CC_IS_CLANG
402
403config SYSVIPC_COMPAT
404	def_bool y if COMPAT && SYSVIPC
405
406config SMP
407	def_bool y
408
409config NR_CPUS
410	int "Maximum number of CPUs (2-512)"
411	range 2 512
412	default "64"
413	help
414	  This allows you to specify the maximum number of CPUs which this
415	  kernel will support. The maximum supported value is 512 and the
416	  minimum value which makes sense is 2.
417
418	  This is purely to save memory - each supported CPU adds
419	  approximately sixteen kilobytes to the kernel image.
420
421config HOTPLUG_CPU
422	def_bool y
423
424# Some NUMA nodes have memory ranges that span
425# other nodes.	Even though a pfn is valid and
426# between a node's start and end pfns, it may not
427# reside on that node.	See memmap_init_zone()
428# for details. <- They meant memory holes!
429config NODES_SPAN_OTHER_NODES
430	def_bool NUMA
431
432config NUMA
433	bool "NUMA support"
434	depends on SCHED_TOPOLOGY
435	default n
436	help
437	  Enable NUMA support
438
439	  This option adds NUMA support to the kernel.
440
441	  An operation mode can be selected by appending
442	  numa=<method> to the kernel command line.
443
444	  The default behaviour is identical to appending numa=plain to
445	  the command line. This will create just one node with all
446	  available memory and all CPUs in it.
447
448config NODES_SHIFT
449	int "Maximum NUMA nodes (as a power of 2)"
450	range 1 10
451	depends on NUMA
452	default "4"
453	help
454	  Specify the maximum number of NUMA nodes available on the target
455	  system. Increases memory reserved to accommodate various tables.
456
457menu "Select NUMA modes"
458	depends on NUMA
459
460config NUMA_EMU
461	bool "NUMA emulation"
462	default y
463	help
464	  Numa emulation mode will split the available system memory into
465	  equal chunks which then are distributed over the configured number
466	  of nodes in a round-robin manner.
467
468	  The number of fake nodes is limited by the number of available memory
469	  chunks (i.e. memory size / fake size) and the number of supported
470	  nodes in the kernel.
471
472	  The CPUs are assigned to the nodes in a way that partially respects
473	  the original machine topology (if supported by the machine).
474	  Fair distribution of the CPUs is not guaranteed.
475
476config EMU_SIZE
477	hex "NUMA emulation memory chunk size"
478	default 0x10000000
479	range 0x400000 0x100000000
480	depends on NUMA_EMU
481	help
482	  Select the default size by which the memory is chopped and then
483	  assigned to emulated NUMA nodes.
484
485	  This can be overridden by specifying
486
487	  emu_size=<n>
488
489	  on the kernel command line where also suffixes K, M, G, and T are
490	  supported.
491
492endmenu
493
494config SCHED_SMT
495	def_bool n
496
497config SCHED_MC
498	def_bool n
499
500config SCHED_BOOK
501	def_bool n
502
503config SCHED_DRAWER
504	def_bool n
505
506config SCHED_TOPOLOGY
507	def_bool y
508	prompt "Topology scheduler support"
509	select SCHED_SMT
510	select SCHED_MC
511	select SCHED_BOOK
512	select SCHED_DRAWER
513	help
514	  Topology scheduler support improves the CPU scheduler's decision
515	  making when dealing with machines that have multi-threading,
516	  multiple cores or multiple books.
517
518source "kernel/Kconfig.hz"
519
520config KEXEC
521	def_bool y
522	select KEXEC_CORE
523
524config KEXEC_FILE
525	bool "kexec file based system call"
526	select KEXEC_CORE
527	select BUILD_BIN2C
528	depends on CRYPTO
529	depends on CRYPTO_SHA256
530	depends on CRYPTO_SHA256_S390
531	help
532	  Enable the kexec file based system call. In contrast to the normal
533	  kexec system call this system call takes file descriptors for the
534	  kernel and initramfs as arguments.
535
536config ARCH_HAS_KEXEC_PURGATORY
537	def_bool y
538	depends on KEXEC_FILE
539
540config KEXEC_VERIFY_SIG
541	bool "Verify kernel signature during kexec_file_load() syscall"
542	depends on KEXEC_FILE && SYSTEM_DATA_VERIFICATION
543	help
544	  This option makes kernel signature verification mandatory for
545	  the kexec_file_load() syscall.
546
547	  In addition to that option, you need to enable signature
548	  verification for the corresponding kernel image type being
549	  loaded in order for this to work.
550
551config ARCH_RANDOM
552	def_bool y
553	prompt "s390 architectural random number generation API"
554	help
555	  Enable the s390 architectural random number generation API
556	  to provide random data for all consumers within the Linux
557	  kernel.
558
559	  When enabled the arch_random_* functions declared in linux/random.h
560	  are implemented. The implementation is based on the s390 CPACF
561	  instruction subfunction TRNG which provides a real true random
562	  number generator.
563
564	  If unsure, say Y.
565
566config KERNEL_NOBP
567	def_bool n
568	prompt "Enable modified branch prediction for the kernel by default"
569	help
570	  If this option is selected the kernel will switch to a modified
571	  branch prediction mode if the firmware interface is available.
572	  The modified branch prediction mode improves the behaviour in
573	  regard to speculative execution.
574
575	  With the option enabled the kernel parameter "nobp=0" or "nospec"
576	  can be used to run the kernel in the normal branch prediction mode.
577
578	  With the option disabled the modified branch prediction mode is
579	  enabled with the "nobp=1" kernel parameter.
580
581	  If unsure, say N.
582
583config EXPOLINE
584	def_bool n
585	prompt "Avoid speculative indirect branches in the kernel"
586	help
587	  Compile the kernel with the expoline compiler options to guard
588	  against kernel-to-user data leaks by avoiding speculative indirect
589	  branches.
590	  Requires a compiler with -mindirect-branch=thunk support for full
591	  protection. The kernel may run slower.
592
593	  If unsure, say N.
594
595choice
596	prompt "Expoline default"
597	depends on EXPOLINE
598	default EXPOLINE_FULL
599
600config EXPOLINE_OFF
601	bool "spectre_v2=off"
602
603config EXPOLINE_AUTO
604	bool "spectre_v2=auto"
605
606config EXPOLINE_FULL
607	bool "spectre_v2=on"
608
609endchoice
610
611config RELOCATABLE
612	bool "Build a relocatable kernel"
613	select MODULE_REL_CRCS if MODVERSIONS
614	default y
615	help
616	  This builds a kernel image that retains relocation information
617	  so it can be loaded at an arbitrary address.
618	  The kernel is linked as a position-independent executable (PIE)
619	  and contains dynamic relocations which are processed early in the
620	  bootup process.
621	  The relocations make the kernel image about 15% larger (compressed
622	  10%), but are discarded at runtime.
623
624config RANDOMIZE_BASE
625	bool "Randomize the address of the kernel image (KASLR)"
626	depends on RELOCATABLE
627	default y
628	help
629	  In support of Kernel Address Space Layout Randomization (KASLR),
630	  this randomizes the address at which the kernel image is loaded,
631	  as a security feature that deters exploit attempts relying on
632	  knowledge of the location of kernel internals.
633
634endmenu
635
636menu "Memory setup"
637
638config ARCH_SPARSEMEM_ENABLE
639	def_bool y
640	select SPARSEMEM_VMEMMAP_ENABLE
641	select SPARSEMEM_VMEMMAP
642
643config ARCH_SPARSEMEM_DEFAULT
644	def_bool y
645
646config ARCH_ENABLE_MEMORY_HOTPLUG
647	def_bool y if SPARSEMEM
648
649config ARCH_ENABLE_MEMORY_HOTREMOVE
650	def_bool y
651
652config ARCH_ENABLE_SPLIT_PMD_PTLOCK
653	def_bool y
654
655config FORCE_MAX_ZONEORDER
656	int
657	default "9"
658
659config MAX_PHYSMEM_BITS
660	int "Maximum size of supported physical memory in bits (42-53)"
661	range 42 53
662	default "46"
663	help
664	  This option specifies the maximum supported size of physical memory
665	  in bits. Supported is any size between 2^42 (4TB) and 2^53 (8PB).
666	  Increasing the number of bits also increases the kernel image size.
667	  By default 46 bits (64TB) are supported.
668
669config PACK_STACK
670	def_bool y
671	prompt "Pack kernel stack"
672	help
673	  This option enables the compiler option -mkernel-backchain if it
674	  is available. If the option is available the compiler supports
675	  the new stack layout which dramatically reduces the minimum stack
676	  frame size. With an old compiler a non-leaf function needs a
677	  minimum of 96 bytes on 31 bit and 160 bytes on 64 bit. With
678	  -mkernel-backchain the minimum size drops to 16 byte on 31 bit
679	  and 24 byte on 64 bit.
680
681	  Say Y if you are unsure.
682
683config CHECK_STACK
684	def_bool y
685	depends on !VMAP_STACK
686	prompt "Detect kernel stack overflow"
687	help
688	  This option enables the compiler option -mstack-guard and
689	  -mstack-size if they are available. If the compiler supports them
690	  it will emit additional code to each function prolog to trigger
691	  an illegal operation if the kernel stack is about to overflow.
692
693	  Say N if you are unsure.
694
695config STACK_GUARD
696	int "Size of the guard area (128-1024)"
697	range 128 1024
698	depends on CHECK_STACK
699	default "256"
700	help
701	  This allows you to specify the size of the guard area at the lower
702	  end of the kernel stack. If the kernel stack points into the guard
703	  area on function entry an illegal operation is triggered. The size
704	  needs to be a power of 2. Please keep in mind that the size of an
705	  interrupt frame is 184 bytes for 31 bit and 328 bytes on 64 bit.
706	  The minimum size for the stack guard should be 256 for 31 bit and
707	  512 for 64 bit.
708
709config WARN_DYNAMIC_STACK
710	def_bool n
711	prompt "Emit compiler warnings for function with dynamic stack usage"
712	help
713	  This option enables the compiler option -mwarn-dynamicstack. If the
714	  compiler supports this options generates warnings for functions
715	  that dynamically allocate stack space using alloca.
716
717	  Say N if you are unsure.
718
719endmenu
720
721menu "I/O subsystem"
722
723config QDIO
724	def_tristate y
725	prompt "QDIO support"
726	---help---
727	  This driver provides the Queued Direct I/O base support for
728	  IBM System z.
729
730	  To compile this driver as a module, choose M here: the
731	  module will be called qdio.
732
733	  If unsure, say Y.
734
735if PCI
736
737config PCI_NR_FUNCTIONS
738	int "Maximum number of PCI functions (1-4096)"
739	range 1 4096
740	default "128"
741	help
742	  This allows you to specify the maximum number of PCI functions which
743	  this kernel will support.
744
745endif # PCI
746
747config HAS_IOMEM
748	def_bool PCI
749
750config CHSC_SCH
751	def_tristate m
752	prompt "Support for CHSC subchannels"
753	help
754	  This driver allows usage of CHSC subchannels. A CHSC subchannel
755	  is usually present on LPAR only.
756	  The driver creates a device /dev/chsc, which may be used to
757	  obtain I/O configuration information about the machine and
758	  to issue asynchronous chsc commands (DANGEROUS).
759	  You will usually only want to use this interface on a special
760	  LPAR designated for system management.
761
762	  To compile this driver as a module, choose M here: the
763	  module will be called chsc_sch.
764
765	  If unsure, say N.
766
767config SCM_BUS
768	def_bool y
769	prompt "SCM bus driver"
770	help
771	  Bus driver for Storage Class Memory.
772
773config EADM_SCH
774	def_tristate m
775	prompt "Support for EADM subchannels"
776	depends on SCM_BUS
777	help
778	  This driver allows usage of EADM subchannels. EADM subchannels act
779	  as a communication vehicle for SCM increments.
780
781	  To compile this driver as a module, choose M here: the
782	  module will be called eadm_sch.
783
784config VFIO_CCW
785	def_tristate n
786	prompt "Support for VFIO-CCW subchannels"
787	depends on S390_CCW_IOMMU && VFIO_MDEV
788	help
789	  This driver allows usage of I/O subchannels via VFIO-CCW.
790
791	  To compile this driver as a module, choose M here: the
792	  module will be called vfio_ccw.
793
794config VFIO_AP
795	def_tristate n
796	prompt "VFIO support for AP devices"
797	depends on S390_AP_IOMMU && VFIO_MDEV_DEVICE && KVM
798	help
799		This driver grants access to Adjunct Processor (AP) devices
800		via the VFIO mediated device interface.
801
802		To compile this driver as a module, choose M here: the module
803		will be called vfio_ap.
804
805endmenu
806
807menu "Dump support"
808
809config CRASH_DUMP
810	bool "kernel crash dumps"
811	select KEXEC
812	help
813	  Generate crash dump after being started by kexec.
814	  Crash dump kernels are loaded in the main kernel with kexec-tools
815	  into a specially reserved region and then later executed after
816	  a crash by kdump/kexec.
817	  Refer to <file:Documentation/s390/zfcpdump.rst> for more details on this.
818	  This option also enables s390 zfcpdump.
819	  See also <file:Documentation/s390/zfcpdump.rst>
820
821endmenu
822
823config SECCOMP
824	def_bool y
825	prompt "Enable seccomp to safely compute untrusted bytecode"
826	depends on PROC_FS
827	help
828	  This kernel feature is useful for number crunching applications
829	  that may need to compute untrusted bytecode during their
830	  execution. By using pipes or other transports made available to
831	  the process as file descriptors supporting the read/write
832	  syscalls, it's possible to isolate those applications in
833	  their own address space using seccomp. Once seccomp is
834	  enabled via /proc/<pid>/seccomp, it cannot be disabled
835	  and the task is only allowed to execute a few safe syscalls
836	  defined by each seccomp mode.
837
838	  If unsure, say Y.
839
840menu "Power Management"
841
842config ARCH_HIBERNATION_POSSIBLE
843	def_bool y
844
845source "kernel/power/Kconfig"
846
847endmenu
848
849config CCW
850	def_bool y
851
852config HAVE_PNETID
853	tristate
854	default (SMC || CCWGROUP)
855
856menu "Virtualization"
857
858config PROTECTED_VIRTUALIZATION_GUEST
859	def_bool n
860	prompt "Protected virtualization guest support"
861	help
862	  Select this option, if you want to be able to run this
863	  kernel as a protected virtualization KVM guest.
864	  Protected virtualization capable machines have a mini hypervisor
865	  located at machine level (an ultravisor). With help of the
866	  Ultravisor, KVM will be able to run "protected" VMs, special
867	  VMs whose memory and management data are unavailable to KVM.
868
869config PFAULT
870	def_bool y
871	prompt "Pseudo page fault support"
872	help
873	  Select this option, if you want to use PFAULT pseudo page fault
874	  handling under VM. If running native or in LPAR, this option
875	  has no effect. If your VM does not support PFAULT, PAGEEX
876	  pseudo page fault handling will be used.
877	  Note that VM 4.2 supports PFAULT but has a bug in its
878	  implementation that causes some problems.
879	  Everybody who wants to run Linux under VM != VM4.2 should select
880	  this option.
881
882config CMM
883	def_tristate n
884	prompt "Cooperative memory management"
885	help
886	  Select this option, if you want to enable the kernel interface
887	  to reduce the memory size of the system. This is accomplished
888	  by allocating pages of memory and put them "on hold". This only
889	  makes sense for a system running under VM where the unused pages
890	  will be reused by VM for other guest systems. The interface
891	  allows an external monitor to balance memory of many systems.
892	  Everybody who wants to run Linux under VM should select this
893	  option.
894
895config CMM_IUCV
896	def_bool y
897	prompt "IUCV special message interface to cooperative memory management"
898	depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV)
899	help
900	  Select this option to enable the special message interface to
901	  the cooperative memory management.
902
903config APPLDATA_BASE
904	def_bool n
905	prompt "Linux - VM Monitor Stream, base infrastructure"
906	depends on PROC_FS
907	help
908	  This provides a kernel interface for creating and updating z/VM APPLDATA
909	  monitor records. The monitor records are updated at certain time
910	  intervals, once the timer is started.
911	  Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer,
912	  i.e. enables or disables monitoring on the Linux side.
913	  A custom interval value (in seconds) can be written to
914	  /proc/appldata/interval.
915
916	  Defaults are 60 seconds interval and timer off.
917	  The /proc entries can also be read from, showing the current settings.
918
919config APPLDATA_MEM
920	def_tristate m
921	prompt "Monitor memory management statistics"
922	depends on APPLDATA_BASE && VM_EVENT_COUNTERS
923	help
924	  This provides memory management related data to the Linux - VM Monitor
925	  Stream, like paging/swapping rate, memory utilisation, etc.
926	  Writing 1 or 0 to /proc/appldata/memory 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	  The /proc entry can also be read from, showing the current settings.
932
933	  This can also be compiled as a module, which will be called
934	  appldata_mem.o.
935
936config APPLDATA_OS
937	def_tristate m
938	prompt "Monitor OS statistics"
939	depends on APPLDATA_BASE
940	help
941	  This provides OS related data to the Linux - VM Monitor Stream, like
942	  CPU utilisation, etc.
943	  Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM
944	  APPLDATA monitor record, i.e. enables or disables monitoring this record
945	  on the z/VM side.
946
947	  Default is disabled.
948	  This can also be compiled as a module, which will be called
949	  appldata_os.o.
950
951config APPLDATA_NET_SUM
952	def_tristate m
953	prompt "Monitor overall network statistics"
954	depends on APPLDATA_BASE && NET
955	help
956	  This provides network related data to the Linux - VM Monitor Stream,
957	  currently there is only a total sum of network I/O statistics, no
958	  per-interface data.
959	  Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM
960	  APPLDATA monitor record, i.e. enables or disables monitoring this record
961	  on the z/VM side.
962
963	  Default is disabled.
964	  This can also be compiled as a module, which will be called
965	  appldata_net_sum.o.
966
967config S390_HYPFS_FS
968	def_bool y
969	prompt "s390 hypervisor file system support"
970	select SYS_HYPERVISOR
971	help
972	  This is a virtual file system intended to provide accounting
973	  information in an s390 hypervisor environment.
974
975source "arch/s390/kvm/Kconfig"
976
977config S390_GUEST
978	def_bool y
979	prompt "s390 support for virtio devices"
980	select TTY
981	select VIRTUALIZATION
982	select VIRTIO
983	select VIRTIO_CONSOLE
984	help
985	  Enabling this option adds support for virtio based paravirtual device
986	  drivers on s390.
987
988	  Select this option if you want to run the kernel as a guest under
989	  the KVM hypervisor.
990
991endmenu
992