xref: /openbmc/linux/arch/s390/Kconfig (revision 0c9c1d56397518eb823d458b00b06bcccd956794)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvaldsconfig MMU
361d48c2cSMartin Schwidefsky	def_bool y
41da177e4SLinus Torvalds
566701b14SChristoph Lameterconfig ZONE_DMA
669dbb2f7SHeiko Carstens	def_bool y
766701b14SChristoph Lameter
82fd92273SHeiko Carstensconfig CPU_BIG_ENDIAN
92fd92273SHeiko Carstens	def_bool y
102fd92273SHeiko Carstens
112b105ff9SIngo Molnarconfig LOCKDEP_SUPPORT
1261d48c2cSMartin Schwidefsky	def_bool y
132b105ff9SIngo Molnar
145bdc9b44SHeiko Carstensconfig STACKTRACE_SUPPORT
1561d48c2cSMartin Schwidefsky	def_bool y
165bdc9b44SHeiko Carstens
17f0d1b0b3SDavid Howellsconfig ARCH_HAS_ILOG2_U32
186f9a3c33SMartin Schwidefsky	def_bool n
19f0d1b0b3SDavid Howells
20f0d1b0b3SDavid Howellsconfig ARCH_HAS_ILOG2_U64
216f9a3c33SMartin Schwidefsky	def_bool n
22f0d1b0b3SDavid Howells
237e33db4eSAkinobu Mitaconfig GENERIC_HWEIGHT
2461d48c2cSMartin Schwidefsky	def_bool y
257e33db4eSAkinobu Mita
26c0007f1aSHeiko Carstensconfig GENERIC_BUG
276f9a3c33SMartin Schwidefsky	def_bool y if BUG
28c0007f1aSHeiko Carstens
2952499f40SHeiko Carstensconfig GENERIC_BUG_RELATIVE_POINTERS
3052499f40SHeiko Carstens	def_bool y
3152499f40SHeiko Carstens
32b6b40c53SMartin Schwidefskyconfig GENERIC_LOCKBREAK
3367626fadSHeiko Carstens	def_bool y if PREEMPT
34b6b40c53SMartin Schwidefsky
35402b0862SCarsten Otteconfig PGSTE
366f9a3c33SMartin Schwidefsky	def_bool y if KVM
37402b0862SCarsten Otte
386a11f75bSAkinobu Mitaconfig ARCH_SUPPORTS_DEBUG_PAGEALLOC
396a11f75bSAkinobu Mita	def_bool y
406a11f75bSAkinobu Mita
41843c48fdSJan Glauberconfig AUDIT_ARCH
42843c48fdSJan Glauber	def_bool y
43843c48fdSJan Glauber
44ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
45c8717a3dSJan Glauber	def_bool y
46c8717a3dSJan Glauber
47c8717a3dSJan Glauberconfig PCI_QUIRKS
48c8717a3dSJan Glauber	def_bool n
49c8717a3dSJan Glauber
502a0a5b22SJan Willekeconfig ARCH_SUPPORTS_UPROBES
515a79859aSHeiko Carstens	def_bool y
522a0a5b22SJan Willeke
535e785963SVasily Gorbikconfig KASAN_SHADOW_OFFSET
545e785963SVasily Gorbik	hex
555e785963SVasily Gorbik	depends on KASAN
565dff0381SVasily Gorbik	default 0x18000000000000 if KASAN_S390_4_LEVEL_PAGING
575e785963SVasily Gorbik	default 0x30000000000
585e785963SVasily Gorbik
59347a8dc3SMartin Schwidefskyconfig S390
6061d48c2cSMartin Schwidefsky	def_bool y
6123fefe11SMartin Schwidefsky	select ARCH_BINFMT_ELF_STATE
6221266be9SDan Williams	select ARCH_HAS_DEVMEM_IS_ALLOWED
632b68f6caSKees Cook	select ARCH_HAS_ELF_RANDOMIZE
6479962038SHeiko Carstens	select ARCH_HAS_FORTIFY_SOURCE
65957e3facSRiku Voipio	select ARCH_HAS_GCOV_PROFILE_ALL
664eb0716eSAlexandre Ghiti	select ARCH_HAS_GIGANTIC_PAGE
67907fa061SHeiko Carstens	select ARCH_HAS_KCOV
68*0c9c1d56SThiago Jung Bauermann	select ARCH_HAS_MEM_ENCRYPT
693010a5eaSLaurent Dufour	select ARCH_HAS_PTE_SPECIAL
70d2852a22SDaniel Borkmann	select ARCH_HAS_SET_MEMORY
71ad21fc4fSLaura Abbott	select ARCH_HAS_STRICT_KERNEL_RWX
72ad21fc4fSLaura Abbott	select ARCH_HAS_STRICT_MODULE_RWX
73aa0d6e70SArnd Bergmann	select ARCH_HAS_SYSCALL_WRAPPER
74c42d8c7dSChristian Borntraeger	select ARCH_HAS_UBSAN_SANITIZE_ALL
750e0d04a8SHeiko Carstens	select ARCH_HAVE_NMI_SAFE_CMPXCHG
766beb0009SThomas Gleixner	select ARCH_INLINE_READ_LOCK
776beb0009SThomas Gleixner	select ARCH_INLINE_READ_LOCK_BH
786beb0009SThomas Gleixner	select ARCH_INLINE_READ_LOCK_IRQ
796beb0009SThomas Gleixner	select ARCH_INLINE_READ_LOCK_IRQSAVE
800e0d04a8SHeiko Carstens	select ARCH_INLINE_READ_TRYLOCK
816beb0009SThomas Gleixner	select ARCH_INLINE_READ_UNLOCK
826beb0009SThomas Gleixner	select ARCH_INLINE_READ_UNLOCK_BH
836beb0009SThomas Gleixner	select ARCH_INLINE_READ_UNLOCK_IRQ
846beb0009SThomas Gleixner	select ARCH_INLINE_READ_UNLOCK_IRQRESTORE
850e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_LOCK
860e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_LOCK_BH
870e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_LOCK_IRQ
880e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_LOCK_IRQSAVE
890e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_TRYLOCK
900e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_TRYLOCK_BH
910e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_UNLOCK
920e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_UNLOCK_BH
930e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_UNLOCK_IRQ
940e0d04a8SHeiko Carstens	select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
956beb0009SThomas Gleixner	select ARCH_INLINE_WRITE_LOCK
966beb0009SThomas Gleixner	select ARCH_INLINE_WRITE_LOCK_BH
976beb0009SThomas Gleixner	select ARCH_INLINE_WRITE_LOCK_IRQ
986beb0009SThomas Gleixner	select ARCH_INLINE_WRITE_LOCK_IRQSAVE
990e0d04a8SHeiko Carstens	select ARCH_INLINE_WRITE_TRYLOCK
1006beb0009SThomas Gleixner	select ARCH_INLINE_WRITE_UNLOCK
1016beb0009SThomas Gleixner	select ARCH_INLINE_WRITE_UNLOCK_BH
1026beb0009SThomas Gleixner	select ARCH_INLINE_WRITE_UNLOCK_IRQ
1036beb0009SThomas Gleixner	select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
104350e88baSMike Rapoport	select ARCH_KEEP_MEMBLOCK
1050e0d04a8SHeiko Carstens	select ARCH_SAVE_PAGE_KEYS if HIBERNATION
10636e7fdaaSChristian Borntraeger	select ARCH_SUPPORTS_ATOMIC_RMW
107a763bc8bSPhilipp Hachtmann	select ARCH_SUPPORTS_NUMA_BALANCING
108295d8fa9SChristian Borntraeger	select ARCH_USE_BUILTIN_BSWAP
109efc1d23bSHeiko Carstens	select ARCH_USE_CMPXCHG_LOCKREF
1103f6813b9SMartin Schwidefsky	select ARCH_WANTS_DYNAMIC_TASK_STRUCT
111c1d7e01dSWill Deacon	select ARCH_WANT_IPC_PARSE_VERSION
1120e0d04a8SHeiko Carstens	select BUILDTIME_EXTABLE_SORT
1130e0d04a8SHeiko Carstens	select CLONE_BACKWARDS2
1145d6a0163SHeiko Carstens	select DYNAMIC_FTRACE if FUNCTION_TRACER
1150e0d04a8SHeiko Carstens	select GENERIC_CLOCKEVENTS
1168f00b3e2SHendrik Brueckner	select GENERIC_CPU_AUTOPROBE
117d424986fSMartin Schwidefsky	select GENERIC_CPU_VULNERABILITIES
118746479cdSHeiko Carstens	select GENERIC_FIND_FIRST_BIT
119e80e7813SThomas Gleixner	select GENERIC_SMP_IDLE_THREAD
12079c74ecbSMartin Schwidefsky	select GENERIC_TIME_VSYSCALL
1210e0d04a8SHeiko Carstens	select HAVE_ALIGNED_STRUCT_PAGE if SLUB
1227a017721SAKASHI Takahiro	select HAVE_ARCH_AUDITSYSCALL
1235a79859aSHeiko Carstens	select HAVE_ARCH_JUMP_LABEL
12413ddb52cSHeiko Carstens	select HAVE_ARCH_JUMP_LABEL_RELATIVE
12542db5ed8SVasily Gorbik	select HAVE_ARCH_KASAN
126fff7fb0bSZhaoxiu Zeng	select CPU_NO_EFFICIENT_FFS if !HAVE_MARCH_Z9_109_FEATURES
127c63cb468SHeiko Carstens	select HAVE_ARCH_SECCOMP_FILTER
1285614dd92SMartin Schwidefsky	select HAVE_ARCH_SOFT_DIRTY
1290e0d04a8SHeiko Carstens	select HAVE_ARCH_TRACEHOOK
1305a79859aSHeiko Carstens	select HAVE_ARCH_TRANSPARENT_HUGEPAGE
131ce3dc447SMartin Schwidefsky	select HAVE_ARCH_VMAP_STACK
1326077776bSDaniel Borkmann	select HAVE_EBPF_JIT if PACK_STACK && HAVE_MARCH_Z196_FEATURES
1330e0d04a8SHeiko Carstens	select HAVE_CMPXCHG_DOUBLE
1340e0d04a8SHeiko Carstens	select HAVE_CMPXCHG_LOCAL
135f50c0e63SHeiko Carstens	select HAVE_COPY_THREAD_TLS
1360e0d04a8SHeiko Carstens	select HAVE_DEBUG_KMEMLEAK
137e1231b0eSHeiko Carstens	select HAVE_DMA_CONTIGUOUS
1385a79859aSHeiko Carstens	select HAVE_DYNAMIC_FTRACE
1395a79859aSHeiko Carstens	select HAVE_DYNAMIC_FTRACE_WITH_REGS
14067a929e0SChristoph Hellwig	select HAVE_FAST_GUP
1419078a549SChristian Borntraeger	select HAVE_EFFICIENT_UNALIGNED_ACCESS
142d983c89cSVasily Gorbik	select HAVE_FENTRY
1430e0d04a8SHeiko Carstens	select HAVE_FTRACE_MCOUNT_RECORD
1445a79859aSHeiko Carstens	select HAVE_FUNCTION_GRAPH_TRACER
1455a79859aSHeiko Carstens	select HAVE_FUNCTION_TRACER
14603b8c7b6SHeiko Carstens	select HAVE_FUTEX_CMPXCHG if FUTEX
147bc00b3ecSHeiko Carstens	select HAVE_GCC_PLUGINS
1480e0d04a8SHeiko Carstens	select HAVE_KERNEL_BZIP2
1490e0d04a8SHeiko Carstens	select HAVE_KERNEL_GZIP
1508e2872ceSHeiko Carstens	select HAVE_KERNEL_LZ4
1510e0d04a8SHeiko Carstens	select HAVE_KERNEL_LZMA
1520e0d04a8SHeiko Carstens	select HAVE_KERNEL_LZO
15389b5202eSVasily Gorbik	select HAVE_KERNEL_UNCOMPRESSED
1540e0d04a8SHeiko Carstens	select HAVE_KERNEL_XZ
1550e0d04a8SHeiko Carstens	select HAVE_KPROBES
1560e0d04a8SHeiko Carstens	select HAVE_KRETPROBES
1575a79859aSHeiko Carstens	select HAVE_KVM
15821042d43SJiri Slaby	select HAVE_LIVEPATCH
159c33eff60SHeiko Carstens	select HAVE_PERF_REGS
160c33eff60SHeiko Carstens	select HAVE_PERF_USER_STACK_DUMP
1610e0d04a8SHeiko Carstens	select HAVE_MEMBLOCK_NODE_MAP
16250be6345SPhilipp Hachtmann	select HAVE_MEMBLOCK_PHYS_MAP
1639de7d833SMartin Schwidefsky	select HAVE_MMU_GATHER_NO_GATHER
164786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
165d983c89cSVasily Gorbik	select HAVE_NOP_MCOUNT
1660e0d04a8SHeiko Carstens	select HAVE_OPROFILE
167eb01d42aSChristoph Hellwig	select HAVE_PCI
1680e0d04a8SHeiko Carstens	select HAVE_PERF_EVENTS
1699de7d833SMartin Schwidefsky	select HAVE_RCU_TABLE_FREE
1700e0d04a8SHeiko Carstens	select HAVE_REGS_AND_STACK_ACCESS_API
1719d6d99e3SHeiko Carstens	select HAVE_RSEQ
1720e0d04a8SHeiko Carstens	select HAVE_SYSCALL_TRACEPOINTS
1730e0d04a8SHeiko Carstens	select HAVE_VIRT_CPU_ACCOUNTING
174eb01d42aSChristoph Hellwig	select IOMMU_HELPER		if PCI
175eb01d42aSChristoph Hellwig	select IOMMU_SUPPORT		if PCI
176786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
177eb01d42aSChristoph Hellwig	select NEED_DMA_MAP_STATE	if PCI
178eb01d42aSChristoph Hellwig	select NEED_SG_DMA_LENGTH	if PCI
1797eddd99cSAl Viro	select OLD_SIGACTION
18093bead43SHeiko Carstens	select OLD_SIGSUSPEND3
1812eac9c2dSChristoph Hellwig	select PCI_DOMAINS		if PCI
182eb01d42aSChristoph Hellwig	select PCI_MSI			if PCI
183bb98f396SSebastian Ott	select SPARSE_IRQ
1840e0d04a8SHeiko Carstens	select SYSCTL_EXCEPTION_TRACE
185d5c352cdSHeiko Carstens	select THREAD_INFO_IN_TASK
1860563416bSJosh Triplett	select TTY
1870e0d04a8SHeiko Carstens	select VIRT_CPU_ACCOUNTING
18840565b5aSStanislaw Gruszka	select ARCH_HAS_SCALED_CPUTIME
18942a0bb3fSPetr Mladek	select HAVE_NMI
1909087c375STom Lendacky	select ARCH_HAS_FORCE_DMA_UNENCRYPTED
19164e1f0c5SHalil Pasic	select SWIOTLB
192bb99332aSHalil Pasic	select GENERIC_ALLOCATOR
1933a368f74SPhilipp Hachtmann
1941da177e4SLinus Torvalds
195fca3e357SMartin Schwidefskyconfig SCHED_OMIT_FRAME_POINTER
1966f9a3c33SMartin Schwidefsky	def_bool y
197fca3e357SMartin Schwidefsky
198c81956c9SKirill A. Shutemovconfig PGTABLE_LEVELS
199c81956c9SKirill A. Shutemov	int
2001aea9b3fSMartin Schwidefsky	default 5
201c81956c9SKirill A. Shutemov
20221042d43SJiri Slabysource "kernel/livepatch/Kconfig"
20321042d43SJiri Slaby
204843c48fdSJan Glaubermenu "Processor type and features"
2051da177e4SLinus Torvalds
206843c48fdSJan Glauberconfig HAVE_MARCH_Z900_FEATURES
207843c48fdSJan Glauber	def_bool n
208843c48fdSJan Glauber
209843c48fdSJan Glauberconfig HAVE_MARCH_Z990_FEATURES
210843c48fdSJan Glauber	def_bool n
211843c48fdSJan Glauber	select HAVE_MARCH_Z900_FEATURES
212843c48fdSJan Glauber
213843c48fdSJan Glauberconfig HAVE_MARCH_Z9_109_FEATURES
214843c48fdSJan Glauber	def_bool n
215843c48fdSJan Glauber	select HAVE_MARCH_Z990_FEATURES
216843c48fdSJan Glauber
217843c48fdSJan Glauberconfig HAVE_MARCH_Z10_FEATURES
218843c48fdSJan Glauber	def_bool n
219843c48fdSJan Glauber	select HAVE_MARCH_Z9_109_FEATURES
220843c48fdSJan Glauber
221843c48fdSJan Glauberconfig HAVE_MARCH_Z196_FEATURES
222843c48fdSJan Glauber	def_bool n
223843c48fdSJan Glauber	select HAVE_MARCH_Z10_FEATURES
224843c48fdSJan Glauber
225991c1505SHeiko Carstensconfig HAVE_MARCH_ZEC12_FEATURES
226991c1505SHeiko Carstens	def_bool n
227991c1505SHeiko Carstens	select HAVE_MARCH_Z196_FEATURES
228991c1505SHeiko Carstens
229f8b2dcbdSMartin Schwidefskyconfig HAVE_MARCH_Z13_FEATURES
230f8b2dcbdSMartin Schwidefsky	def_bool n
231f8b2dcbdSMartin Schwidefsky	select HAVE_MARCH_ZEC12_FEATURES
232f8b2dcbdSMartin Schwidefsky
2336997c323SMartin Schwidefskyconfig HAVE_MARCH_Z14_FEATURES
2346997c323SMartin Schwidefsky	def_bool n
2356997c323SMartin Schwidefsky	select HAVE_MARCH_Z13_FEATURES
2366997c323SMartin Schwidefsky
237843c48fdSJan Glauberchoice
238843c48fdSJan Glauber	prompt "Processor type"
2397072276eSMartin Schwidefsky	default MARCH_Z196
240843c48fdSJan Glauber
241843c48fdSJan Glauberconfig MARCH_Z900
242843c48fdSJan Glauber	bool "IBM zSeries model z800 and z900"
243c263a4e9SArnd Bergmann	depends on !CC_IS_CLANG
2445a79859aSHeiko Carstens	select HAVE_MARCH_Z900_FEATURES
245843c48fdSJan Glauber	help
246843c48fdSJan Glauber	  Select this to enable optimizations for model z800/z900 (2064 and
247843c48fdSJan Glauber	  2066 series). This will enable some optimizations that are not
248843c48fdSJan Glauber	  available on older ESA/390 (31 Bit) only CPUs.
249843c48fdSJan Glauber
250843c48fdSJan Glauberconfig MARCH_Z990
251843c48fdSJan Glauber	bool "IBM zSeries model z890 and z990"
252c263a4e9SArnd Bergmann	depends on !CC_IS_CLANG
2535a79859aSHeiko Carstens	select HAVE_MARCH_Z990_FEATURES
254843c48fdSJan Glauber	help
255843c48fdSJan Glauber	  Select this to enable optimizations for model z890/z990 (2084 and
256843c48fdSJan Glauber	  2086 series). The kernel will be slightly faster but will not work
257843c48fdSJan Glauber	  on older machines.
258843c48fdSJan Glauber
259843c48fdSJan Glauberconfig MARCH_Z9_109
260843c48fdSJan Glauber	bool "IBM System z9"
261c263a4e9SArnd Bergmann	depends on !CC_IS_CLANG
2625a79859aSHeiko Carstens	select HAVE_MARCH_Z9_109_FEATURES
263843c48fdSJan Glauber	help
264843c48fdSJan Glauber	  Select this to enable optimizations for IBM System z9 (2094 and
265843c48fdSJan Glauber	  2096 series). The kernel will be slightly faster but will not work
266843c48fdSJan Glauber	  on older machines.
267843c48fdSJan Glauber
268843c48fdSJan Glauberconfig MARCH_Z10
269843c48fdSJan Glauber	bool "IBM System z10"
2705a79859aSHeiko Carstens	select HAVE_MARCH_Z10_FEATURES
271843c48fdSJan Glauber	help
272843c48fdSJan Glauber	  Select this to enable optimizations for IBM System z10 (2097 and
273843c48fdSJan Glauber	  2098 series). The kernel will be slightly faster but will not work
274843c48fdSJan Glauber	  on older machines.
275843c48fdSJan Glauber
276843c48fdSJan Glauberconfig MARCH_Z196
277843c48fdSJan Glauber	bool "IBM zEnterprise 114 and 196"
2785a79859aSHeiko Carstens	select HAVE_MARCH_Z196_FEATURES
279843c48fdSJan Glauber	help
280843c48fdSJan Glauber	  Select this to enable optimizations for IBM zEnterprise 114 and 196
281843c48fdSJan Glauber	  (2818 and 2817 series). The kernel will be slightly faster but will
282843c48fdSJan Glauber	  not work on older machines.
283843c48fdSJan Glauber
284991c1505SHeiko Carstensconfig MARCH_ZEC12
28559471227SHeiko Carstens	bool "IBM zBC12 and zEC12"
2865a79859aSHeiko Carstens	select HAVE_MARCH_ZEC12_FEATURES
287991c1505SHeiko Carstens	help
28859471227SHeiko Carstens	  Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and
28959471227SHeiko Carstens	  2827 series). The kernel will be slightly faster but will not work on
29059471227SHeiko Carstens	  older machines.
291991c1505SHeiko Carstens
292f8b2dcbdSMartin Schwidefskyconfig MARCH_Z13
293bb3aa614SHeiko Carstens	bool "IBM z13s and z13"
2945a79859aSHeiko Carstens	select HAVE_MARCH_Z13_FEATURES
295f8b2dcbdSMartin Schwidefsky	help
296bb3aa614SHeiko Carstens	  Select this to enable optimizations for IBM z13s and z13 (2965 and
297bb3aa614SHeiko Carstens	  2964 series). The kernel will be slightly faster but will not work on
298bb3aa614SHeiko Carstens	  older machines.
299f8b2dcbdSMartin Schwidefsky
3006997c323SMartin Schwidefskyconfig MARCH_Z14
301451239ebSHeiko Carstens	bool "IBM z14 ZR1 and z14"
3026997c323SMartin Schwidefsky	select HAVE_MARCH_Z14_FEATURES
3036997c323SMartin Schwidefsky	help
304451239ebSHeiko Carstens	  Select this to enable optimizations for IBM z14 ZR1 and z14 (3907
305451239ebSHeiko Carstens	  and 3906 series). The kernel will be slightly faster but will not
306451239ebSHeiko Carstens	  work on older machines.
3076997c323SMartin Schwidefsky
308843c48fdSJan Glauberendchoice
3091da177e4SLinus Torvalds
3101db9e051SHeiko Carstensconfig MARCH_Z900_TUNE
3111db9e051SHeiko Carstens	def_bool TUNE_Z900 || MARCH_Z900 && TUNE_DEFAULT
3121db9e051SHeiko Carstens
3131db9e051SHeiko Carstensconfig MARCH_Z990_TUNE
3141db9e051SHeiko Carstens	def_bool TUNE_Z990 || MARCH_Z990 && TUNE_DEFAULT
3151db9e051SHeiko Carstens
3161db9e051SHeiko Carstensconfig MARCH_Z9_109_TUNE
3171db9e051SHeiko Carstens	def_bool TUNE_Z9_109 || MARCH_Z9_109 && TUNE_DEFAULT
3181db9e051SHeiko Carstens
3191db9e051SHeiko Carstensconfig MARCH_Z10_TUNE
3201db9e051SHeiko Carstens	def_bool TUNE_Z10 || MARCH_Z10 && TUNE_DEFAULT
3211db9e051SHeiko Carstens
3221db9e051SHeiko Carstensconfig MARCH_Z196_TUNE
3231db9e051SHeiko Carstens	def_bool TUNE_Z196 || MARCH_Z196 && TUNE_DEFAULT
3241db9e051SHeiko Carstens
3251db9e051SHeiko Carstensconfig MARCH_ZEC12_TUNE
3261db9e051SHeiko Carstens	def_bool TUNE_ZEC12 || MARCH_ZEC12 && TUNE_DEFAULT
3271db9e051SHeiko Carstens
328f8b2dcbdSMartin Schwidefskyconfig MARCH_Z13_TUNE
329f8b2dcbdSMartin Schwidefsky	def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT
330f8b2dcbdSMartin Schwidefsky
3316997c323SMartin Schwidefskyconfig MARCH_Z14_TUNE
3326997c323SMartin Schwidefsky	def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT
3336997c323SMartin Schwidefsky
3341db9e051SHeiko Carstenschoice
3351db9e051SHeiko Carstens	prompt "Tune code generation"
3361db9e051SHeiko Carstens	default TUNE_DEFAULT
3371db9e051SHeiko Carstens	help
3381db9e051SHeiko Carstens	  Cause the compiler to tune (-mtune) the generated code for a machine.
3391db9e051SHeiko Carstens	  This will make the code run faster on the selected machine but
3401db9e051SHeiko Carstens	  somewhat slower on other machines.
3411db9e051SHeiko Carstens	  This option only changes how the compiler emits instructions, not the
3421db9e051SHeiko Carstens	  selection of instructions itself, so the resulting kernel will run on
3431db9e051SHeiko Carstens	  all other machines.
3441db9e051SHeiko Carstens
3451db9e051SHeiko Carstensconfig TUNE_DEFAULT
3461db9e051SHeiko Carstens	bool "Default"
3471db9e051SHeiko Carstens	help
3481db9e051SHeiko Carstens	  Tune the generated code for the target processor for which the kernel
3491db9e051SHeiko Carstens	  will be compiled.
3501db9e051SHeiko Carstens
3511db9e051SHeiko Carstensconfig TUNE_Z900
3521db9e051SHeiko Carstens	bool "IBM zSeries model z800 and z900"
353c263a4e9SArnd Bergmann	depends on !CC_IS_CLANG
3541db9e051SHeiko Carstens
3551db9e051SHeiko Carstensconfig TUNE_Z990
3561db9e051SHeiko Carstens	bool "IBM zSeries model z890 and z990"
357c263a4e9SArnd Bergmann	depends on !CC_IS_CLANG
3581db9e051SHeiko Carstens
3591db9e051SHeiko Carstensconfig TUNE_Z9_109
3601db9e051SHeiko Carstens	bool "IBM System z9"
361c263a4e9SArnd Bergmann	depends on !CC_IS_CLANG
3621db9e051SHeiko Carstens
3631db9e051SHeiko Carstensconfig TUNE_Z10
3641db9e051SHeiko Carstens	bool "IBM System z10"
3651db9e051SHeiko Carstens
3661db9e051SHeiko Carstensconfig TUNE_Z196
3671db9e051SHeiko Carstens	bool "IBM zEnterprise 114 and 196"
3681db9e051SHeiko Carstens
3691db9e051SHeiko Carstensconfig TUNE_ZEC12
3701db9e051SHeiko Carstens	bool "IBM zBC12 and zEC12"
3711db9e051SHeiko Carstens
372f8b2dcbdSMartin Schwidefskyconfig TUNE_Z13
373f8b2dcbdSMartin Schwidefsky	bool "IBM z13"
374f8b2dcbdSMartin Schwidefsky
3756997c323SMartin Schwidefskyconfig TUNE_Z14
3766997c323SMartin Schwidefsky	bool "IBM z14"
3776997c323SMartin Schwidefsky
3781db9e051SHeiko Carstensendchoice
3791db9e051SHeiko Carstens
380347a8dc3SMartin Schwidefskyconfig 64BIT
3816f9a3c33SMartin Schwidefsky	def_bool y
382d9f7a745SMartin Schwidefsky
383843c48fdSJan Glauberconfig COMPAT
384843c48fdSJan Glauber	def_bool y
385843c48fdSJan Glauber	prompt "Kernel support for 31 bit emulation"
386843c48fdSJan Glauber	select COMPAT_BINFMT_ELF if BINFMT_ELF
387843c48fdSJan Glauber	select ARCH_WANT_OLD_COMPAT_IPC
3887eddd99cSAl Viro	select COMPAT_OLD_SIGACTION
389fef747baSArnd Bergmann	select HAVE_UID16
3902813893fSIulia Manda	depends on MULTIUSER
391843c48fdSJan Glauber	help
392843c48fdSJan Glauber	  Select this option if you want to enable your system kernel to
393843c48fdSJan Glauber	  handle system-calls from ELF binaries for 31 bit ESA.  This option
394843c48fdSJan Glauber	  (and some other stuff like libraries and such) is needed for
395843c48fdSJan Glauber	  executing 31 bit applications.  It is safe to say "Y".
396843c48fdSJan Glauber
39796ca7674SArnd Bergmannconfig COMPAT_VDSO
39896ca7674SArnd Bergmann	def_bool COMPAT && !CC_IS_CLANG
39996ca7674SArnd Bergmann
400843c48fdSJan Glauberconfig SYSVIPC_COMPAT
401843c48fdSJan Glauber	def_bool y if COMPAT && SYSVIPC
402843c48fdSJan Glauber
4031da177e4SLinus Torvaldsconfig SMP
4046f9a3c33SMartin Schwidefsky	def_bool y
4051da177e4SLinus Torvalds
4061da177e4SLinus Torvaldsconfig NR_CPUS
4075c75a0daSHeiko Carstens	int "Maximum number of CPUs (2-512)"
4085c75a0daSHeiko Carstens	range 2 512
4095a79859aSHeiko Carstens	default "64"
4101da177e4SLinus Torvalds	help
4111da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
4125c75a0daSHeiko Carstens	  kernel will support. The maximum supported value is 512 and the
4131da177e4SLinus Torvalds	  minimum value which makes sense is 2.
4141da177e4SLinus Torvalds
4151da177e4SLinus Torvalds	  This is purely to save memory - each supported CPU adds
4161da177e4SLinus Torvalds	  approximately sixteen kilobytes to the kernel image.
4171da177e4SLinus Torvalds
4181da177e4SLinus Torvaldsconfig HOTPLUG_CPU
4196f9a3c33SMartin Schwidefsky	def_bool y
4201da177e4SLinus Torvalds
4213a368f74SPhilipp Hachtmann# Some NUMA nodes have memory ranges that span
4223a368f74SPhilipp Hachtmann# other nodes.	Even though a pfn is valid and
4233a368f74SPhilipp Hachtmann# between a node's start and end pfns, it may not
4243a368f74SPhilipp Hachtmann# reside on that node.	See memmap_init_zone()
4253a368f74SPhilipp Hachtmann# for details. <- They meant memory holes!
4263a368f74SPhilipp Hachtmannconfig NODES_SPAN_OTHER_NODES
4273a368f74SPhilipp Hachtmann	def_bool NUMA
4283a368f74SPhilipp Hachtmann
4293a368f74SPhilipp Hachtmannconfig NUMA
4303a368f74SPhilipp Hachtmann	bool "NUMA support"
43167626fadSHeiko Carstens	depends on SCHED_TOPOLOGY
4323a368f74SPhilipp Hachtmann	default n
4333a368f74SPhilipp Hachtmann	help
4343a368f74SPhilipp Hachtmann	  Enable NUMA support
4353a368f74SPhilipp Hachtmann
4363a368f74SPhilipp Hachtmann	  This option adds NUMA support to the kernel.
4373a368f74SPhilipp Hachtmann
4383a368f74SPhilipp Hachtmann	  An operation mode can be selected by appending
4393a368f74SPhilipp Hachtmann	  numa=<method> to the kernel command line.
4403a368f74SPhilipp Hachtmann
4413a368f74SPhilipp Hachtmann	  The default behaviour is identical to appending numa=plain to
4423a368f74SPhilipp Hachtmann	  the command line. This will create just one node with all
4433a368f74SPhilipp Hachtmann	  available memory and all CPUs in it.
4443a368f74SPhilipp Hachtmann
4453a368f74SPhilipp Hachtmannconfig NODES_SHIFT
4463a368f74SPhilipp Hachtmann	int "Maximum NUMA nodes (as a power of 2)"
4473a368f74SPhilipp Hachtmann	range 1 10
4483a368f74SPhilipp Hachtmann	depends on NUMA
4493a368f74SPhilipp Hachtmann	default "4"
4503a368f74SPhilipp Hachtmann	help
4513a368f74SPhilipp Hachtmann	  Specify the maximum number of NUMA nodes available on the target
4523a368f74SPhilipp Hachtmann	  system. Increases memory reserved to accommodate various tables.
4533a368f74SPhilipp Hachtmann
454c29a7bafSMichael Holzheumenu "Select NUMA modes"
455c29a7bafSMichael Holzheu	depends on NUMA
456c29a7bafSMichael Holzheu
457c29a7bafSMichael Holzheuconfig NUMA_EMU
458c29a7bafSMichael Holzheu	bool "NUMA emulation"
459c29a7bafSMichael Holzheu	default y
460c29a7bafSMichael Holzheu	help
461c29a7bafSMichael Holzheu	  Numa emulation mode will split the available system memory into
462c29a7bafSMichael Holzheu	  equal chunks which then are distributed over the configured number
463c29a7bafSMichael Holzheu	  of nodes in a round-robin manner.
464c29a7bafSMichael Holzheu
465c29a7bafSMichael Holzheu	  The number of fake nodes is limited by the number of available memory
466c29a7bafSMichael Holzheu	  chunks (i.e. memory size / fake size) and the number of supported
467c29a7bafSMichael Holzheu	  nodes in the kernel.
468c29a7bafSMichael Holzheu
469c29a7bafSMichael Holzheu	  The CPUs are assigned to the nodes in a way that partially respects
470c29a7bafSMichael Holzheu	  the original machine topology (if supported by the machine).
471c29a7bafSMichael Holzheu	  Fair distribution of the CPUs is not guaranteed.
472c29a7bafSMichael Holzheu
473c29a7bafSMichael Holzheuconfig EMU_SIZE
474c29a7bafSMichael Holzheu	hex "NUMA emulation memory chunk size"
475c29a7bafSMichael Holzheu	default 0x10000000
476c29a7bafSMichael Holzheu	range 0x400000 0x100000000
477c29a7bafSMichael Holzheu	depends on NUMA_EMU
478c29a7bafSMichael Holzheu	help
479c29a7bafSMichael Holzheu	  Select the default size by which the memory is chopped and then
480c29a7bafSMichael Holzheu	  assigned to emulated NUMA nodes.
481c29a7bafSMichael Holzheu
482c29a7bafSMichael Holzheu	  This can be overridden by specifying
483c29a7bafSMichael Holzheu
484c29a7bafSMichael Holzheu	  emu_size=<n>
485c29a7bafSMichael Holzheu
486c29a7bafSMichael Holzheu	  on the kernel command line where also suffixes K, M, G, and T are
487c29a7bafSMichael Holzheu	  supported.
488c29a7bafSMichael Holzheu
489c29a7bafSMichael Holzheuendmenu
490c29a7bafSMichael Holzheu
4919236b4ddSHeiko Carstensconfig SCHED_SMT
4929236b4ddSHeiko Carstens	def_bool n
4939236b4ddSHeiko Carstens
4948d11e021SHeiko Carstensconfig SCHED_MC
49583a24e32SHeiko Carstens	def_bool n
4968d11e021SHeiko Carstens
4974cb14bc8SHeiko Carstensconfig SCHED_BOOK
49810ad34bcSMartin Schwidefsky	def_bool n
49910ad34bcSMartin Schwidefsky
500adac0f1eSHeiko Carstensconfig SCHED_DRAWER
501adac0f1eSHeiko Carstens	def_bool n
502adac0f1eSHeiko Carstens
50310ad34bcSMartin Schwidefskyconfig SCHED_TOPOLOGY
5046f9a3c33SMartin Schwidefsky	def_bool y
50510ad34bcSMartin Schwidefsky	prompt "Topology scheduler support"
50610ad34bcSMartin Schwidefsky	select SCHED_SMT
50783a24e32SHeiko Carstens	select SCHED_MC
50810ad34bcSMartin Schwidefsky	select SCHED_BOOK
509adac0f1eSHeiko Carstens	select SCHED_DRAWER
5104cb14bc8SHeiko Carstens	help
51110ad34bcSMartin Schwidefsky	  Topology scheduler support improves the CPU scheduler's decision
51210ad34bcSMartin Schwidefsky	  making when dealing with machines that have multi-threading,
51310ad34bcSMartin Schwidefsky	  multiple cores or multiple books.
5144cb14bc8SHeiko Carstens
5158636a1f9SMasahiro Yamadasource "kernel/Kconfig.hz"
516843c48fdSJan Glauber
517bdea9f6fSPhilipp Rudoconfig KEXEC
518bdea9f6fSPhilipp Rudo	def_bool y
519bdea9f6fSPhilipp Rudo	select KEXEC_CORE
520bdea9f6fSPhilipp Rudo
521bdea9f6fSPhilipp Rudoconfig KEXEC_FILE
522bdea9f6fSPhilipp Rudo	bool "kexec file based system call"
523bdea9f6fSPhilipp Rudo	select KEXEC_CORE
524bdea9f6fSPhilipp Rudo	select BUILD_BIN2C
525bdea9f6fSPhilipp Rudo	depends on CRYPTO
526bdea9f6fSPhilipp Rudo	depends on CRYPTO_SHA256
527bdea9f6fSPhilipp Rudo	depends on CRYPTO_SHA256_S390
528bdea9f6fSPhilipp Rudo	help
529bdea9f6fSPhilipp Rudo	  Enable the kexec file based system call. In contrast to the normal
530bdea9f6fSPhilipp Rudo	  kexec system call this system call takes file descriptors for the
531bdea9f6fSPhilipp Rudo	  kernel and initramfs as arguments.
532bdea9f6fSPhilipp Rudo
533bdea9f6fSPhilipp Rudoconfig ARCH_HAS_KEXEC_PURGATORY
534bdea9f6fSPhilipp Rudo	def_bool y
535bdea9f6fSPhilipp Rudo	depends on KEXEC_FILE
536bdea9f6fSPhilipp Rudo
537e23a8020SPhilipp Rudoconfig KEXEC_VERIFY_SIG
538e23a8020SPhilipp Rudo	bool "Verify kernel signature during kexec_file_load() syscall"
539e23a8020SPhilipp Rudo	depends on KEXEC_FILE && SYSTEM_DATA_VERIFICATION
540e23a8020SPhilipp Rudo	help
541e23a8020SPhilipp Rudo	  This option makes kernel signature verification mandatory for
542e23a8020SPhilipp Rudo	  the kexec_file_load() syscall.
543e23a8020SPhilipp Rudo
544e23a8020SPhilipp Rudo	  In addition to that option, you need to enable signature
545e23a8020SPhilipp Rudo	  verification for the corresponding kernel image type being
546e23a8020SPhilipp Rudo	  loaded in order for this to work.
547e23a8020SPhilipp Rudo
5484c637cd8SHarald Freudenbergerconfig ARCH_RANDOM
5494c637cd8SHarald Freudenberger	def_bool y
5504c637cd8SHarald Freudenberger	prompt "s390 architectural random number generation API"
5514c637cd8SHarald Freudenberger	help
5524c637cd8SHarald Freudenberger	  Enable the s390 architectural random number generation API
5534c637cd8SHarald Freudenberger	  to provide random data for all consumers within the Linux
5544c637cd8SHarald Freudenberger	  kernel.
5554c637cd8SHarald Freudenberger
5564c637cd8SHarald Freudenberger	  When enabled the arch_random_* functions declared in linux/random.h
5574c637cd8SHarald Freudenberger	  are implemented. The implementation is based on the s390 CPACF
5584c637cd8SHarald Freudenberger	  instruction subfunction TRNG which provides a real true random
5594c637cd8SHarald Freudenberger	  number generator.
5604c637cd8SHarald Freudenberger
5614c637cd8SHarald Freudenberger	  If unsure, say Y.
5624c637cd8SHarald Freudenberger
563d768bd89SMartin Schwidefskyconfig KERNEL_NOBP
564d768bd89SMartin Schwidefsky	def_bool n
565d768bd89SMartin Schwidefsky	prompt "Enable modified branch prediction for the kernel by default"
566d768bd89SMartin Schwidefsky	help
567d768bd89SMartin Schwidefsky	  If this option is selected the kernel will switch to a modified
568d768bd89SMartin Schwidefsky	  branch prediction mode if the firmware interface is available.
569d768bd89SMartin Schwidefsky	  The modified branch prediction mode improves the behaviour in
570d768bd89SMartin Schwidefsky	  regard to speculative execution.
571d768bd89SMartin Schwidefsky
572d768bd89SMartin Schwidefsky	  With the option enabled the kernel parameter "nobp=0" or "nospec"
573d768bd89SMartin Schwidefsky	  can be used to run the kernel in the normal branch prediction mode.
574d768bd89SMartin Schwidefsky
575d768bd89SMartin Schwidefsky	  With the option disabled the modified branch prediction mode is
576d768bd89SMartin Schwidefsky	  enabled with the "nobp=1" kernel parameter.
577d768bd89SMartin Schwidefsky
578d768bd89SMartin Schwidefsky	  If unsure, say N.
579d768bd89SMartin Schwidefsky
580f19fbd5eSMartin Schwidefskyconfig EXPOLINE
581f19fbd5eSMartin Schwidefsky	def_bool n
582f19fbd5eSMartin Schwidefsky	prompt "Avoid speculative indirect branches in the kernel"
583f19fbd5eSMartin Schwidefsky	help
584f19fbd5eSMartin Schwidefsky	  Compile the kernel with the expoline compiler options to guard
585f19fbd5eSMartin Schwidefsky	  against kernel-to-user data leaks by avoiding speculative indirect
586f19fbd5eSMartin Schwidefsky	  branches.
587f19fbd5eSMartin Schwidefsky	  Requires a compiler with -mindirect-branch=thunk support for full
588f19fbd5eSMartin Schwidefsky	  protection. The kernel may run slower.
589f19fbd5eSMartin Schwidefsky
590f19fbd5eSMartin Schwidefsky	  If unsure, say N.
591f19fbd5eSMartin Schwidefsky
592f19fbd5eSMartin Schwidefskychoice
593f19fbd5eSMartin Schwidefsky	prompt "Expoline default"
594f19fbd5eSMartin Schwidefsky	depends on EXPOLINE
595f19fbd5eSMartin Schwidefsky	default EXPOLINE_FULL
596f19fbd5eSMartin Schwidefsky
597f19fbd5eSMartin Schwidefskyconfig EXPOLINE_OFF
598f19fbd5eSMartin Schwidefsky	bool "spectre_v2=off"
599f19fbd5eSMartin Schwidefsky
6006e179d64SMartin Schwidefskyconfig EXPOLINE_AUTO
601f19fbd5eSMartin Schwidefsky	bool "spectre_v2=auto"
602f19fbd5eSMartin Schwidefsky
603f19fbd5eSMartin Schwidefskyconfig EXPOLINE_FULL
604f19fbd5eSMartin Schwidefsky	bool "spectre_v2=on"
605f19fbd5eSMartin Schwidefsky
606f19fbd5eSMartin Schwidefskyendchoice
607f19fbd5eSMartin Schwidefsky
608805bc0bcSGerald Schaeferconfig RELOCATABLE
609805bc0bcSGerald Schaefer	bool "Build a relocatable kernel"
610805bc0bcSGerald Schaefer	select MODULE_REL_CRCS if MODVERSIONS
611805bc0bcSGerald Schaefer	default y
612805bc0bcSGerald Schaefer	help
613805bc0bcSGerald Schaefer	  This builds a kernel image that retains relocation information
614805bc0bcSGerald Schaefer	  so it can be loaded at an arbitrary address.
615805bc0bcSGerald Schaefer	  The kernel is linked as a position-independent executable (PIE)
616805bc0bcSGerald Schaefer	  and contains dynamic relocations which are processed early in the
617805bc0bcSGerald Schaefer	  bootup process.
618805bc0bcSGerald Schaefer	  The relocations make the kernel image about 15% larger (compressed
619805bc0bcSGerald Schaefer	  10%), but are discarded at runtime.
620805bc0bcSGerald Schaefer
621b2d24b97SGerald Schaeferconfig RANDOMIZE_BASE
622b2d24b97SGerald Schaefer	bool "Randomize the address of the kernel image (KASLR)"
623b2d24b97SGerald Schaefer	depends on RELOCATABLE
624b2d24b97SGerald Schaefer	default y
625b2d24b97SGerald Schaefer	help
626b2d24b97SGerald Schaefer	  In support of Kernel Address Space Layout Randomization (KASLR),
627b2d24b97SGerald Schaefer	  this randomizes the address at which the kernel image is loaded,
628b2d24b97SGerald Schaefer	  as a security feature that deters exploit attempts relying on
629b2d24b97SGerald Schaefer	  knowledge of the location of kernel internals.
630b2d24b97SGerald Schaefer
631843c48fdSJan Glauberendmenu
632843c48fdSJan Glauber
633843c48fdSJan Glaubermenu "Memory setup"
634843c48fdSJan Glauber
635843c48fdSJan Glauberconfig ARCH_SPARSEMEM_ENABLE
6366f9a3c33SMartin Schwidefsky	def_bool y
637843c48fdSJan Glauber	select SPARSEMEM_VMEMMAP_ENABLE
638843c48fdSJan Glauber	select SPARSEMEM_VMEMMAP
6391da177e4SLinus Torvalds
640843c48fdSJan Glauberconfig ARCH_SPARSEMEM_DEFAULT
6416f9a3c33SMartin Schwidefsky	def_bool y
642e65e1fc2SAl Viro
643843c48fdSJan Glauberconfig ARCH_ENABLE_MEMORY_HOTPLUG
644843c48fdSJan Glauber	def_bool y if SPARSEMEM
64505445169SHeiko Carstens
646843c48fdSJan Glauberconfig ARCH_ENABLE_MEMORY_HOTREMOVE
647843c48fdSJan Glauber	def_bool y
64805445169SHeiko Carstens
649ec66ad66SMartin Schwidefskyconfig ARCH_ENABLE_SPLIT_PMD_PTLOCK
650ec66ad66SMartin Schwidefsky	def_bool y
651ec66ad66SMartin Schwidefsky
652843c48fdSJan Glauberconfig FORCE_MAX_ZONEORDER
653843c48fdSJan Glauber	int
654843c48fdSJan Glauber	default "9"
65505445169SHeiko Carstens
656b8402b95SHeiko Carstensconfig MAX_PHYSMEM_BITS
657b8402b95SHeiko Carstens	int "Maximum size of supported physical memory in bits (42-53)"
658b8402b95SHeiko Carstens	range 42 53
659b8402b95SHeiko Carstens	default "46"
660b8402b95SHeiko Carstens	help
661b8402b95SHeiko Carstens	  This option specifies the maximum supported size of physical memory
662b8402b95SHeiko Carstens	  in bits. Supported is any size between 2^42 (4TB) and 2^53 (8PB).
663b8402b95SHeiko Carstens	  Increasing the number of bits also increases the kernel image size.
664b8402b95SHeiko Carstens	  By default 46 bits (64TB) are supported.
665b8402b95SHeiko Carstens
6661da177e4SLinus Torvaldsconfig PACK_STACK
6676f9a3c33SMartin Schwidefsky	def_bool y
6686f9a3c33SMartin Schwidefsky	prompt "Pack kernel stack"
6691da177e4SLinus Torvalds	help
6701da177e4SLinus Torvalds	  This option enables the compiler option -mkernel-backchain if it
6711da177e4SLinus Torvalds	  is available. If the option is available the compiler supports
6721da177e4SLinus Torvalds	  the new stack layout which dramatically reduces the minimum stack
6731da177e4SLinus Torvalds	  frame size. With an old compiler a non-leaf function needs a
6741da177e4SLinus Torvalds	  minimum of 96 bytes on 31 bit and 160 bytes on 64 bit. With
6751da177e4SLinus Torvalds	  -mkernel-backchain the minimum size drops to 16 byte on 31 bit
6761da177e4SLinus Torvalds	  and 24 byte on 64 bit.
6771da177e4SLinus Torvalds
6781da177e4SLinus Torvalds	  Say Y if you are unsure.
6791da177e4SLinus Torvalds
6801da177e4SLinus Torvaldsconfig CHECK_STACK
6816f9a3c33SMartin Schwidefsky	def_bool y
682ce3dc447SMartin Schwidefsky	depends on !VMAP_STACK
6836f9a3c33SMartin Schwidefsky	prompt "Detect kernel stack overflow"
6841da177e4SLinus Torvalds	help
6851da177e4SLinus Torvalds	  This option enables the compiler option -mstack-guard and
6861da177e4SLinus Torvalds	  -mstack-size if they are available. If the compiler supports them
6871da177e4SLinus Torvalds	  it will emit additional code to each function prolog to trigger
6881da177e4SLinus Torvalds	  an illegal operation if the kernel stack is about to overflow.
6891da177e4SLinus Torvalds
6901da177e4SLinus Torvalds	  Say N if you are unsure.
6911da177e4SLinus Torvalds
6921da177e4SLinus Torvaldsconfig STACK_GUARD
6931da177e4SLinus Torvalds	int "Size of the guard area (128-1024)"
6941da177e4SLinus Torvalds	range 128 1024
6951da177e4SLinus Torvalds	depends on CHECK_STACK
6961da177e4SLinus Torvalds	default "256"
6971da177e4SLinus Torvalds	help
6981da177e4SLinus Torvalds	  This allows you to specify the size of the guard area at the lower
6991da177e4SLinus Torvalds	  end of the kernel stack. If the kernel stack points into the guard
7001da177e4SLinus Torvalds	  area on function entry an illegal operation is triggered. The size
7011da177e4SLinus Torvalds	  needs to be a power of 2. Please keep in mind that the size of an
7021da177e4SLinus Torvalds	  interrupt frame is 184 bytes for 31 bit and 328 bytes on 64 bit.
7031da177e4SLinus Torvalds	  The minimum size for the stack guard should be 256 for 31 bit and
7041da177e4SLinus Torvalds	  512 for 64 bit.
7051da177e4SLinus Torvalds
7062c190da4SJan Glauberconfig WARN_DYNAMIC_STACK
7076f9a3c33SMartin Schwidefsky	def_bool n
7082c190da4SJan Glauber	prompt "Emit compiler warnings for function with dynamic stack usage"
7091da177e4SLinus Torvalds	help
7102c190da4SJan Glauber	  This option enables the compiler option -mwarn-dynamicstack. If the
7112c190da4SJan Glauber	  compiler supports this options generates warnings for functions
7122c190da4SJan Glauber	  that dynamically allocate stack space using alloca.
7131da177e4SLinus Torvalds
7141da177e4SLinus Torvalds	  Say N if you are unsure.
7151da177e4SLinus Torvalds
716843c48fdSJan Glauberendmenu
71761d48c2cSMartin Schwidefsky
718843c48fdSJan Glaubermenu "I/O subsystem"
7191da177e4SLinus Torvalds
7201da177e4SLinus Torvaldsconfig QDIO
7216f9a3c33SMartin Schwidefsky	def_tristate y
7226f9a3c33SMartin Schwidefsky	prompt "QDIO support"
7231da177e4SLinus Torvalds	---help---
7248129ee16SFrank Pavlic	  This driver provides the Queued Direct I/O base support for
725efca13bcSUrsula Braun	  IBM System z.
7261da177e4SLinus Torvalds
7271da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
7281da177e4SLinus Torvalds	  module will be called qdio.
7291da177e4SLinus Torvalds
7301da177e4SLinus Torvalds	  If unsure, say Y.
7311da177e4SLinus Torvalds
732c8717a3dSJan Glauberif PCI
733c8717a3dSJan Glauber
734c8717a3dSJan Glauberconfig PCI_NR_FUNCTIONS
735c8717a3dSJan Glauber	int "Maximum number of PCI functions (1-4096)"
736c8717a3dSJan Glauber	range 1 4096
737b18601b0SSebastian Ott	default "128"
738c8717a3dSJan Glauber	help
739c8717a3dSJan Glauber	  This allows you to specify the maximum number of PCI functions which
740c8717a3dSJan Glauber	  this kernel will support.
741c8717a3dSJan Glauber
742c8717a3dSJan Glauberendif # PCI
743c8717a3dSJan Glauber
744c8717a3dSJan Glauberconfig HAS_IOMEM
745c8717a3dSJan Glauber	def_bool PCI
746c8717a3dSJan Glauber
7479d92a7e1SCornelia Huckconfig CHSC_SCH
748d9c11b1eSSebastian Ott	def_tristate m
7496f9a3c33SMartin Schwidefsky	prompt "Support for CHSC subchannels"
7509d92a7e1SCornelia Huck	help
7519d92a7e1SCornelia Huck	  This driver allows usage of CHSC subchannels. A CHSC subchannel
7529d92a7e1SCornelia Huck	  is usually present on LPAR only.
7539d92a7e1SCornelia Huck	  The driver creates a device /dev/chsc, which may be used to
7549d92a7e1SCornelia Huck	  obtain I/O configuration information about the machine and
7559d92a7e1SCornelia Huck	  to issue asynchronous chsc commands (DANGEROUS).
7569d92a7e1SCornelia Huck	  You will usually only want to use this interface on a special
7579d92a7e1SCornelia Huck	  LPAR designated for system management.
7589d92a7e1SCornelia Huck
7599d92a7e1SCornelia Huck	  To compile this driver as a module, choose M here: the
7609d92a7e1SCornelia Huck	  module will be called chsc_sch.
7619d92a7e1SCornelia Huck
7629d92a7e1SCornelia Huck	  If unsure, say N.
7639d92a7e1SCornelia Huck
7641d1c8f78SSebastian Ottconfig SCM_BUS
7651d1c8f78SSebastian Ott	def_bool y
7661d1c8f78SSebastian Ott	prompt "SCM bus driver"
7671d1c8f78SSebastian Ott	help
7681d1c8f78SSebastian Ott	  Bus driver for Storage Class Memory.
7691d1c8f78SSebastian Ott
770eadb86abSSebastian Ottconfig EADM_SCH
771eadb86abSSebastian Ott	def_tristate m
772eadb86abSSebastian Ott	prompt "Support for EADM subchannels"
773eadb86abSSebastian Ott	depends on SCM_BUS
774eadb86abSSebastian Ott	help
775eadb86abSSebastian Ott	  This driver allows usage of EADM subchannels. EADM subchannels act
776eadb86abSSebastian Ott	  as a communication vehicle for SCM increments.
777eadb86abSSebastian Ott
778eadb86abSSebastian Ott	  To compile this driver as a module, choose M here: the
779eadb86abSSebastian Ott	  module will be called eadm_sch.
780eadb86abSSebastian Ott
78163f1934dSDong Jia Shiconfig VFIO_CCW
78263f1934dSDong Jia Shi	def_tristate n
78363f1934dSDong Jia Shi	prompt "Support for VFIO-CCW subchannels"
78484cd8fc4SDong Jia Shi	depends on S390_CCW_IOMMU && VFIO_MDEV
78563f1934dSDong Jia Shi	help
78663f1934dSDong Jia Shi	  This driver allows usage of I/O subchannels via VFIO-CCW.
78763f1934dSDong Jia Shi
78863f1934dSDong Jia Shi	  To compile this driver as a module, choose M here: the
78963f1934dSDong Jia Shi	  module will be called vfio_ccw.
79063f1934dSDong Jia Shi
7911fde5734STony Krowiakconfig VFIO_AP
7921fde5734STony Krowiak	def_tristate n
7931fde5734STony Krowiak	prompt "VFIO support for AP devices"
7941fde5734STony Krowiak	depends on S390_AP_IOMMU && VFIO_MDEV_DEVICE && KVM
7951fde5734STony Krowiak	help
7961fde5734STony Krowiak		This driver grants access to Adjunct Processor (AP) devices
7971fde5734STony Krowiak		via the VFIO mediated device interface.
7981fde5734STony Krowiak
7991fde5734STony Krowiak		To compile this driver as a module, choose M here: the module
8001fde5734STony Krowiak		will be called vfio_ap.
8011fde5734STony Krowiak
802843c48fdSJan Glauberendmenu
803843c48fdSJan Glauber
804843c48fdSJan Glaubermenu "Dump support"
805843c48fdSJan Glauber
806843c48fdSJan Glauberconfig CRASH_DUMP
807843c48fdSJan Glauber	bool "kernel crash dumps"
808843c48fdSJan Glauber	select KEXEC
809843c48fdSJan Glauber	help
810843c48fdSJan Glauber	  Generate crash dump after being started by kexec.
811843c48fdSJan Glauber	  Crash dump kernels are loaded in the main kernel with kexec-tools
812843c48fdSJan Glauber	  into a specially reserved region and then later executed after
813843c48fdSJan Glauber	  a crash by kdump/kexec.
8148b4a503dSMauro Carvalho Chehab	  Refer to <file:Documentation/s390/zfcpdump.rst> for more details on this.
815bf28a597SMichael Holzheu	  This option also enables s390 zfcpdump.
8168b4a503dSMauro Carvalho Chehab	  See also <file:Documentation/s390/zfcpdump.rst>
817843c48fdSJan Glauber
818843c48fdSJan Glauberendmenu
819843c48fdSJan Glauber
820843c48fdSJan Glauberconfig SECCOMP
821843c48fdSJan Glauber	def_bool y
822843c48fdSJan Glauber	prompt "Enable seccomp to safely compute untrusted bytecode"
823843c48fdSJan Glauber	depends on PROC_FS
824843c48fdSJan Glauber	help
825843c48fdSJan Glauber	  This kernel feature is useful for number crunching applications
826843c48fdSJan Glauber	  that may need to compute untrusted bytecode during their
827843c48fdSJan Glauber	  execution. By using pipes or other transports made available to
828843c48fdSJan Glauber	  the process as file descriptors supporting the read/write
829843c48fdSJan Glauber	  syscalls, it's possible to isolate those applications in
830843c48fdSJan Glauber	  their own address space using seccomp. Once seccomp is
831843c48fdSJan Glauber	  enabled via /proc/<pid>/seccomp, it cannot be disabled
832843c48fdSJan Glauber	  and the task is only allowed to execute a few safe syscalls
833843c48fdSJan Glauber	  defined by each seccomp mode.
834843c48fdSJan Glauber
835843c48fdSJan Glauber	  If unsure, say Y.
836843c48fdSJan Glauber
837843c48fdSJan Glaubermenu "Power Management"
838843c48fdSJan Glauber
839843c48fdSJan Glauberconfig ARCH_HIBERNATION_POSSIBLE
8405a79859aSHeiko Carstens	def_bool y
841843c48fdSJan Glauber
842843c48fdSJan Glaubersource "kernel/power/Kconfig"
843843c48fdSJan Glauber
844843c48fdSJan Glauberendmenu
845843c48fdSJan Glauber
846843c48fdSJan Glauberconfig CCW
847843c48fdSJan Glauber	def_bool y
848843c48fdSJan Glauber
849b6ef86e9SUrsula Braunconfig HAVE_PNETID
850b6ef86e9SUrsula Braun	tristate
851b6ef86e9SUrsula Braun	default (SMC || CCWGROUP)
852b6ef86e9SUrsula Braun
853843c48fdSJan Glaubermenu "Virtualization"
854684de39bSHeiko Carstens
8555abb9351SVasily Gorbikconfig PROTECTED_VIRTUALIZATION_GUEST
8565abb9351SVasily Gorbik	def_bool n
8575abb9351SVasily Gorbik	prompt "Protected virtualization guest support"
8585abb9351SVasily Gorbik	help
8595abb9351SVasily Gorbik	  Select this option, if you want to be able to run this
8605abb9351SVasily Gorbik	  kernel as a protected virtualization KVM guest.
8615abb9351SVasily Gorbik	  Protected virtualization capable machines have a mini hypervisor
8625abb9351SVasily Gorbik	  located at machine level (an ultravisor). With help of the
8635abb9351SVasily Gorbik	  Ultravisor, KVM will be able to run "protected" VMs, special
8645abb9351SVasily Gorbik	  VMs whose memory and management data are unavailable to KVM.
8655abb9351SVasily Gorbik
8661da177e4SLinus Torvaldsconfig PFAULT
8676f9a3c33SMartin Schwidefsky	def_bool y
8686f9a3c33SMartin Schwidefsky	prompt "Pseudo page fault support"
8691da177e4SLinus Torvalds	help
8701da177e4SLinus Torvalds	  Select this option, if you want to use PFAULT pseudo page fault
8711da177e4SLinus Torvalds	  handling under VM. If running native or in LPAR, this option
8721da177e4SLinus Torvalds	  has no effect. If your VM does not support PFAULT, PAGEEX
8731da177e4SLinus Torvalds	  pseudo page fault handling will be used.
8741da177e4SLinus Torvalds	  Note that VM 4.2 supports PFAULT but has a bug in its
8751da177e4SLinus Torvalds	  implementation that causes some problems.
8761da177e4SLinus Torvalds	  Everybody who wants to run Linux under VM != VM4.2 should select
8771da177e4SLinus Torvalds	  this option.
8781da177e4SLinus Torvalds
8791da177e4SLinus Torvaldsconfig CMM
8806f9a3c33SMartin Schwidefsky	def_tristate n
8816f9a3c33SMartin Schwidefsky	prompt "Cooperative memory management"
8821da177e4SLinus Torvalds	help
8831da177e4SLinus Torvalds	  Select this option, if you want to enable the kernel interface
8841da177e4SLinus Torvalds	  to reduce the memory size of the system. This is accomplished
8851da177e4SLinus Torvalds	  by allocating pages of memory and put them "on hold". This only
8861da177e4SLinus Torvalds	  makes sense for a system running under VM where the unused pages
8871da177e4SLinus Torvalds	  will be reused by VM for other guest systems. The interface
8881da177e4SLinus Torvalds	  allows an external monitor to balance memory of many systems.
8891da177e4SLinus Torvalds	  Everybody who wants to run Linux under VM should select this
8901da177e4SLinus Torvalds	  option.
8911da177e4SLinus Torvalds
8921da177e4SLinus Torvaldsconfig CMM_IUCV
8936f9a3c33SMartin Schwidefsky	def_bool y
8946f9a3c33SMartin Schwidefsky	prompt "IUCV special message interface to cooperative memory management"
8951da177e4SLinus Torvalds	depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV)
8961da177e4SLinus Torvalds	help
8971da177e4SLinus Torvalds	  Select this option to enable the special message interface to
8981da177e4SLinus Torvalds	  the cooperative memory management.
8991da177e4SLinus Torvalds
9001da177e4SLinus Torvaldsconfig APPLDATA_BASE
9016f9a3c33SMartin Schwidefsky	def_bool n
9026f9a3c33SMartin Schwidefsky	prompt "Linux - VM Monitor Stream, base infrastructure"
903c185b783SMartin Schwidefsky	depends on PROC_FS
9041da177e4SLinus Torvalds	help
9051da177e4SLinus Torvalds	  This provides a kernel interface for creating and updating z/VM APPLDATA
9061da177e4SLinus Torvalds	  monitor records. The monitor records are updated at certain time
9071da177e4SLinus Torvalds	  intervals, once the timer is started.
9081da177e4SLinus Torvalds	  Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer,
9091da177e4SLinus Torvalds	  i.e. enables or disables monitoring on the Linux side.
9101da177e4SLinus Torvalds	  A custom interval value (in seconds) can be written to
9111da177e4SLinus Torvalds	  /proc/appldata/interval.
9121da177e4SLinus Torvalds
9131da177e4SLinus Torvalds	  Defaults are 60 seconds interval and timer off.
9141da177e4SLinus Torvalds	  The /proc entries can also be read from, showing the current settings.
9151da177e4SLinus Torvalds
9161da177e4SLinus Torvaldsconfig APPLDATA_MEM
9176f9a3c33SMartin Schwidefsky	def_tristate m
9186f9a3c33SMartin Schwidefsky	prompt "Monitor memory management statistics"
91962fb2ba3SAl Viro	depends on APPLDATA_BASE && VM_EVENT_COUNTERS
9201da177e4SLinus Torvalds	help
9211da177e4SLinus Torvalds	  This provides memory management related data to the Linux - VM Monitor
9221da177e4SLinus Torvalds	  Stream, like paging/swapping rate, memory utilisation, etc.
9231da177e4SLinus Torvalds	  Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM
9241da177e4SLinus Torvalds	  APPLDATA monitor record, i.e. enables or disables monitoring this record
9251da177e4SLinus Torvalds	  on the z/VM side.
9261da177e4SLinus Torvalds
9271da177e4SLinus Torvalds	  Default is disabled.
9281da177e4SLinus Torvalds	  The /proc entry can also be read from, showing the current settings.
9291da177e4SLinus Torvalds
9301da177e4SLinus Torvalds	  This can also be compiled as a module, which will be called
9311da177e4SLinus Torvalds	  appldata_mem.o.
9321da177e4SLinus Torvalds
9331da177e4SLinus Torvaldsconfig APPLDATA_OS
9346f9a3c33SMartin Schwidefsky	def_tristate m
9356f9a3c33SMartin Schwidefsky	prompt "Monitor OS statistics"
9361da177e4SLinus Torvalds	depends on APPLDATA_BASE
9371da177e4SLinus Torvalds	help
9381da177e4SLinus Torvalds	  This provides OS related data to the Linux - VM Monitor Stream, like
9391da177e4SLinus Torvalds	  CPU utilisation, etc.
9401da177e4SLinus Torvalds	  Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM
9411da177e4SLinus Torvalds	  APPLDATA monitor record, i.e. enables or disables monitoring this record
9421da177e4SLinus Torvalds	  on the z/VM side.
9431da177e4SLinus Torvalds
9441da177e4SLinus Torvalds	  Default is disabled.
9451da177e4SLinus Torvalds	  This can also be compiled as a module, which will be called
9461da177e4SLinus Torvalds	  appldata_os.o.
9471da177e4SLinus Torvalds
9481da177e4SLinus Torvaldsconfig APPLDATA_NET_SUM
9496f9a3c33SMartin Schwidefsky	def_tristate m
9506f9a3c33SMartin Schwidefsky	prompt "Monitor overall network statistics"
95170193af9SSachin Sant	depends on APPLDATA_BASE && NET
9521da177e4SLinus Torvalds	help
9531da177e4SLinus Torvalds	  This provides network related data to the Linux - VM Monitor Stream,
9541da177e4SLinus Torvalds	  currently there is only a total sum of network I/O statistics, no
9551da177e4SLinus Torvalds	  per-interface data.
9561da177e4SLinus Torvalds	  Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM
9571da177e4SLinus Torvalds	  APPLDATA monitor record, i.e. enables or disables monitoring this record
9581da177e4SLinus Torvalds	  on the z/VM side.
9591da177e4SLinus Torvalds
9601da177e4SLinus Torvalds	  Default is disabled.
9611da177e4SLinus Torvalds	  This can also be compiled as a module, which will be called
9621da177e4SLinus Torvalds	  appldata_net_sum.o.
9631da177e4SLinus Torvalds
96424bbb1faSMichael Holzheuconfig S390_HYPFS_FS
9656f9a3c33SMartin Schwidefsky	def_bool y
9666f9a3c33SMartin Schwidefsky	prompt "s390 hypervisor file system support"
96724bbb1faSMichael Holzheu	select SYS_HYPERVISOR
96824bbb1faSMichael Holzheu	help
96924bbb1faSMichael Holzheu	  This is a virtual file system intended to provide accounting
97024bbb1faSMichael Holzheu	  information in an s390 hypervisor environment.
97124bbb1faSMichael Holzheu
972843c48fdSJan Glaubersource "arch/s390/kvm/Kconfig"
973411ed322SMichael Holzheu
974fa587743SCarsten Otteconfig S390_GUEST
9756f9a3c33SMartin Schwidefsky	def_bool y
976510cf5a6SKees Cook	prompt "s390 support for virtio devices"
97779b6f7fbSChen Gang	select TTY
97880629b0bSChristian Borntraeger	select VIRTUALIZATION
979fa587743SCarsten Otte	select VIRTIO
980faeba830SChristian Borntraeger	select VIRTIO_CONSOLE
981fa587743SCarsten Otte	help
982bdd1fc27SCornelia Huck	  Enabling this option adds support for virtio based paravirtual device
983bdd1fc27SCornelia Huck	  drivers on s390.
984bdd1fc27SCornelia Huck
98520766c08SChristian Borntraeger	  Select this option if you want to run the kernel as a guest under
986bdd1fc27SCornelia Huck	  the KVM hypervisor.
987bcf5cef7SHeiko Carstens
9881da177e4SLinus Torvaldsendmenu
989