blob: 380d13df4411c9b294f6ad1208b2d1456464c41b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002config MMU
Martin Schwidefsky61d48c22007-05-10 15:46:00 +02003 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
Christoph Lameter66701b12007-02-10 01:43:09 -08005config ZONE_DMA
Heiko Carstens69dbb2f2011-05-26 09:48:31 +02006 def_bool y
Christoph Lameter66701b12007-02-10 01:43:09 -08007
Heiko Carstens2fd92272016-04-14 09:00:27 +02008config CPU_BIG_ENDIAN
9 def_bool y
10
Ingo Molnar2b105ff2006-07-03 00:25:02 -070011config LOCKDEP_SUPPORT
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020012 def_bool y
Ingo Molnar2b105ff2006-07-03 00:25:02 -070013
Heiko Carstens5bdc9b42006-07-03 00:24:41 -070014config STACKTRACE_SUPPORT
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020015 def_bool y
Heiko Carstens5bdc9b42006-07-03 00:24:41 -070016
Linus Torvalds1da177e2005-04-16 15:20:36 -070017config RWSEM_GENERIC_SPINLOCK
18 bool
19
20config RWSEM_XCHGADD_ALGORITHM
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020021 def_bool y
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
David Howellsf0d1b0b2006-12-08 02:37:49 -080023config ARCH_HAS_ILOG2_U32
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +010024 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -080025
26config ARCH_HAS_ILOG2_U64
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +010027 def_bool n
David Howellsf0d1b0b2006-12-08 02:37:49 -080028
Akinobu Mita7e33db42006-03-26 01:39:34 -080029config GENERIC_HWEIGHT
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020030 def_bool y
Akinobu Mita7e33db42006-03-26 01:39:34 -080031
Heiko Carstensc0007f12007-04-27 16:01:42 +020032config GENERIC_BUG
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +010033 def_bool y if BUG
Heiko Carstensc0007f12007-04-27 16:01:42 +020034
Heiko Carstens52499f42010-02-26 22:37:44 +010035config GENERIC_BUG_RELATIVE_POINTERS
36 def_bool y
37
Martin Schwidefskyb6b40c52008-02-05 16:50:42 +010038config GENERIC_LOCKBREAK
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +010039 def_bool y if SMP && PREEMPT
Martin Schwidefskyb6b40c52008-02-05 16:50:42 +010040
Carsten Otte402b0862008-03-25 18:47:10 +010041config PGSTE
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +010042 def_bool y if KVM
Carsten Otte402b0862008-03-25 18:47:10 +010043
Akinobu Mita6a11f752009-03-31 15:23:17 -070044config ARCH_SUPPORTS_DEBUG_PAGEALLOC
45 def_bool y
46
Jan Glauber843c48f2012-08-27 10:55:18 +020047config AUDIT_ARCH
48 def_bool y
49
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070050config NO_IOPORT_MAP
Jan Glauberc8717a32012-11-29 14:38:46 +010051 def_bool y
52
53config PCI_QUIRKS
54 def_bool n
55
Jan Willeke2a0a5b22014-09-22 16:39:06 +020056config ARCH_SUPPORTS_UPROBES
Heiko Carstens5a79859a2015-02-12 13:08:27 +010057 def_bool y
Jan Willeke2a0a5b22014-09-22 16:39:06 +020058
Vasily Gorbik5e785962017-11-19 11:39:39 +010059config KASAN_SHADOW_OFFSET
60 hex
61 depends on KASAN
Vasily Gorbik5dff0382017-11-19 11:54:14 +010062 default 0x18000000000000 if KASAN_S390_4_LEVEL_PAGING
Vasily Gorbik5e785962017-11-19 11:39:39 +010063 default 0x30000000000
64
Martin Schwidefsky347a8dc2006-01-06 00:19:28 -080065config S390
Martin Schwidefsky61d48c22007-05-10 15:46:00 +020066 def_bool y
Martin Schwidefsky23fefe12017-06-07 14:10:24 +020067 select ARCH_BINFMT_ELF_STATE
Dan Williams21266be2015-11-19 18:19:29 -080068 select ARCH_HAS_DEVMEM_IS_ALLOWED
Kees Cook2b68f6c2015-04-14 15:48:00 -070069 select ARCH_HAS_ELF_RANDOMIZE
Heiko Carstens79962032017-09-12 13:49:57 +020070 select ARCH_HAS_FORTIFY_SOURCE
Riku Voipio957e3fa2014-12-12 16:57:44 -080071 select ARCH_HAS_GCOV_PROFILE_ALL
Aneesh Kumar K.Ve1073d12017-07-06 15:39:17 -070072 select ARCH_HAS_GIGANTIC_PAGE if (MEMORY_ISOLATION && COMPACTION) || CMA
Heiko Carstens907fa062016-06-20 14:08:32 +020073 select ARCH_HAS_KCOV
Laurent Dufour3010a5e2018-06-07 17:06:08 -070074 select ARCH_HAS_PTE_SPECIAL
Daniel Borkmannd2852a22017-02-21 16:09:33 +010075 select ARCH_HAS_SET_MEMORY
Laura Abbottad21fc42017-02-06 16:31:57 -080076 select ARCH_HAS_STRICT_KERNEL_RWX
77 select ARCH_HAS_STRICT_MODULE_RWX
Arnd Bergmannaa0d6e72019-01-16 14:15:22 +010078 select ARCH_HAS_SYSCALL_WRAPPER
Christian Borntraegerc42d8c72016-09-12 14:37:20 +020079 select ARCH_HAS_UBSAN_SANITIZE_ALL
Heiko Carstens0e0d04a2013-02-06 10:15:55 +010080 select ARCH_HAVE_NMI_SAFE_CMPXCHG
Thomas Gleixner6beb0002009-11-09 15:21:34 +000081 select ARCH_INLINE_READ_LOCK
82 select ARCH_INLINE_READ_LOCK_BH
83 select ARCH_INLINE_READ_LOCK_IRQ
84 select ARCH_INLINE_READ_LOCK_IRQSAVE
Heiko Carstens0e0d04a2013-02-06 10:15:55 +010085 select ARCH_INLINE_READ_TRYLOCK
Thomas Gleixner6beb0002009-11-09 15:21:34 +000086 select ARCH_INLINE_READ_UNLOCK
87 select ARCH_INLINE_READ_UNLOCK_BH
88 select ARCH_INLINE_READ_UNLOCK_IRQ
89 select ARCH_INLINE_READ_UNLOCK_IRQRESTORE
Heiko Carstens0e0d04a2013-02-06 10:15:55 +010090 select ARCH_INLINE_SPIN_LOCK
91 select ARCH_INLINE_SPIN_LOCK_BH
92 select ARCH_INLINE_SPIN_LOCK_IRQ
93 select ARCH_INLINE_SPIN_LOCK_IRQSAVE
94 select ARCH_INLINE_SPIN_TRYLOCK
95 select ARCH_INLINE_SPIN_TRYLOCK_BH
96 select ARCH_INLINE_SPIN_UNLOCK
97 select ARCH_INLINE_SPIN_UNLOCK_BH
98 select ARCH_INLINE_SPIN_UNLOCK_IRQ
99 select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
Thomas Gleixner6beb0002009-11-09 15:21:34 +0000100 select ARCH_INLINE_WRITE_LOCK
101 select ARCH_INLINE_WRITE_LOCK_BH
102 select ARCH_INLINE_WRITE_LOCK_IRQ
103 select ARCH_INLINE_WRITE_LOCK_IRQSAVE
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100104 select ARCH_INLINE_WRITE_TRYLOCK
Thomas Gleixner6beb0002009-11-09 15:21:34 +0000105 select ARCH_INLINE_WRITE_UNLOCK
106 select ARCH_INLINE_WRITE_UNLOCK_BH
107 select ARCH_INLINE_WRITE_UNLOCK_IRQ
108 select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100109 select ARCH_SAVE_PAGE_KEYS if HIBERNATION
Christian Borntraeger36e7fda2014-08-05 09:57:51 +0200110 select ARCH_SUPPORTS_ATOMIC_RMW
Philipp Hachtmanna763bc82015-05-08 17:40:44 +0200111 select ARCH_SUPPORTS_NUMA_BALANCING
Christian Borntraeger295d8fa2015-10-29 01:16:04 +0100112 select ARCH_USE_BUILTIN_BSWAP
Heiko Carstensefc1d232013-09-05 13:26:17 +0200113 select ARCH_USE_CMPXCHG_LOCKREF
Martin Schwidefsky3f6813b2016-04-01 15:42:15 +0200114 select ARCH_WANTS_DYNAMIC_TASK_STRUCT
Will Deaconc1d7e012012-07-30 14:42:46 -0700115 select ARCH_WANT_IPC_PARSE_VERSION
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100116 select BUILDTIME_EXTABLE_SORT
117 select CLONE_BACKWARDS2
Heiko Carstens5d6a0162014-08-15 13:16:09 +0200118 select DYNAMIC_FTRACE if FUNCTION_TRACER
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100119 select GENERIC_CLOCKEVENTS
Hendrik Brueckner8f00b3e2015-02-19 12:22:02 +0100120 select GENERIC_CPU_AUTOPROBE
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100121 select GENERIC_CPU_DEVICES if !SMP
Martin Schwidefskyd4249862018-03-21 09:38:21 +0100122 select GENERIC_CPU_VULNERABILITIES
Heiko Carstens746479c2013-09-18 11:45:36 +0200123 select GENERIC_FIND_FIRST_BIT
Thomas Gleixnere80e7812012-04-20 13:05:52 +0000124 select GENERIC_SMP_IDLE_THREAD
Martin Schwidefsky79c74ec2013-11-22 10:04:53 +0100125 select GENERIC_TIME_VSYSCALL
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100126 select HAVE_ALIGNED_STRUCT_PAGE if SLUB
AKASHI Takahiro7a017722014-02-25 18:16:24 +0900127 select HAVE_ARCH_AUDITSYSCALL
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100128 select HAVE_ARCH_JUMP_LABEL
Heiko Carstens13ddb522018-09-18 23:51:44 -0700129 select HAVE_ARCH_JUMP_LABEL_RELATIVE
Vasily Gorbik42db5ed2017-11-17 14:29:13 +0100130 select HAVE_ARCH_KASAN
Zhaoxiu Zengfff7fb02016-05-20 17:03:57 -0700131 select CPU_NO_EFFICIENT_FFS if !HAVE_MARCH_Z9_109_FEATURES
Heiko Carstensc63cb462012-07-31 15:37:13 +0200132 select HAVE_ARCH_SECCOMP_FILTER
Martin Schwidefsky5614dd92015-04-22 14:47:42 +0200133 select HAVE_ARCH_SOFT_DIRTY
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100134 select HAVE_ARCH_TRACEHOOK
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100135 select HAVE_ARCH_TRANSPARENT_HUGEPAGE
Martin Schwidefskyce3dc442017-09-12 16:37:33 +0200136 select HAVE_ARCH_VMAP_STACK
Daniel Borkmann60777762016-05-13 19:08:28 +0200137 select HAVE_EBPF_JIT if PACK_STACK && HAVE_MARCH_Z196_FEATURES
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100138 select HAVE_CMPXCHG_DOUBLE
139 select HAVE_CMPXCHG_LOCAL
Heiko Carstensf50c0e62017-02-20 09:38:42 +0100140 select HAVE_COPY_THREAD_TLS
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100141 select HAVE_DEBUG_KMEMLEAK
Heiko Carstense1231b02016-11-14 13:57:03 +0100142 select HAVE_DMA_CONTIGUOUS
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100143 select HAVE_DYNAMIC_FTRACE
144 select HAVE_DYNAMIC_FTRACE_WITH_REGS
Christian Borntraeger9078a542016-09-12 13:13:38 +0200145 select HAVE_EFFICIENT_UNALIGNED_ACCESS
Vasily Gorbikd983c892018-08-06 15:17:47 +0200146 select HAVE_FENTRY
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100147 select HAVE_FTRACE_MCOUNT_RECORD
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100148 select HAVE_FUNCTION_GRAPH_TRACER
149 select HAVE_FUNCTION_TRACER
Heiko Carstens03b8c7b2014-03-02 13:09:47 +0100150 select HAVE_FUTEX_CMPXCHG if FUTEX
Heiko Carstensbc00b3e2018-08-14 13:29:11 +0200151 select HAVE_GCC_PLUGINS
Martin Schwidefsky1a420102019-04-23 10:53:21 +0200152 select HAVE_GENERIC_GUP
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100153 select HAVE_KERNEL_BZIP2
154 select HAVE_KERNEL_GZIP
Heiko Carstens8e2872c2013-07-18 15:18:24 +0200155 select HAVE_KERNEL_LZ4
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100156 select HAVE_KERNEL_LZMA
157 select HAVE_KERNEL_LZO
Vasily Gorbik89b52022018-06-13 00:00:25 +0200158 select HAVE_KERNEL_UNCOMPRESSED
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100159 select HAVE_KERNEL_XZ
160 select HAVE_KPROBES
161 select HAVE_KRETPROBES
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100162 select HAVE_KVM
Jiri Slaby21042d42015-03-26 10:10:17 +0100163 select HAVE_LIVEPATCH
Heiko Carstensc33eff62015-06-06 12:44:25 +0200164 select HAVE_PERF_REGS
165 select HAVE_PERF_USER_STACK_DUMP
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100166 select HAVE_MEMBLOCK_NODE_MAP
Philipp Hachtmann50be6342014-01-29 18:16:01 +0100167 select HAVE_MEMBLOCK_PHYS_MAP
David Howells786d35d2012-09-28 14:31:03 +0930168 select HAVE_MOD_ARCH_SPECIFIC
Vasily Gorbikd983c892018-08-06 15:17:47 +0200169 select HAVE_NOP_MCOUNT
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100170 select HAVE_OPROFILE
Christoph Hellwigeb01d422018-11-15 20:05:32 +0100171 select HAVE_PCI
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100172 select HAVE_PERF_EVENTS
173 select HAVE_REGS_AND_STACK_ACCESS_API
Heiko Carstens9d6d99e2018-06-30 10:54:15 +0200174 select HAVE_RSEQ
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100175 select HAVE_SYSCALL_TRACEPOINTS
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100176 select HAVE_VIRT_CPU_ACCOUNTING
Christoph Hellwigeb01d422018-11-15 20:05:32 +0100177 select IOMMU_HELPER if PCI
178 select IOMMU_SUPPORT if PCI
David Howells786d35d2012-09-28 14:31:03 +0930179 select MODULES_USE_ELF_RELA
Christoph Hellwigeb01d422018-11-15 20:05:32 +0100180 select NEED_DMA_MAP_STATE if PCI
181 select NEED_SG_DMA_LENGTH if PCI
Al Viro7eddd992012-12-25 19:26:12 -0500182 select OLD_SIGACTION
Heiko Carstens93bead42013-09-06 10:03:30 +0200183 select OLD_SIGSUSPEND3
Christoph Hellwig2eac9c22018-11-15 20:05:33 +0100184 select PCI_DOMAINS if PCI
Christoph Hellwigeb01d422018-11-15 20:05:32 +0100185 select PCI_MSI if PCI
Sebastian Ottbb98f392016-06-02 14:57:17 +0200186 select SPARSE_IRQ
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100187 select SYSCTL_EXCEPTION_TRACE
Heiko Carstensd5c352c2016-11-08 11:08:26 +0100188 select THREAD_INFO_IN_TASK
Josh Triplett05634162014-02-26 18:13:06 -0800189 select TTY
Heiko Carstens0e0d04a2013-02-06 10:15:55 +0100190 select VIRT_CPU_ACCOUNTING
Stanislaw Gruszka40565b52016-11-15 03:06:51 +0100191 select ARCH_HAS_SCALED_CPUTIME
Heiko Carstens93bead42013-09-06 10:03:30 +0200192 select VIRT_TO_BUS
Petr Mladek42a0bb32016-05-20 17:00:33 -0700193 select HAVE_NMI
Philipp Hachtmann3a368f72014-03-06 18:25:13 +0100194
Linus Torvalds1da177e2005-04-16 15:20:36 -0700195
Martin Schwidefskyfca3e352009-07-07 16:37:10 +0200196config SCHED_OMIT_FRAME_POINTER
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100197 def_bool y
Martin Schwidefskyfca3e352009-07-07 16:37:10 +0200198
Kirill A. Shutemovc81956c2015-04-14 15:46:00 -0700199config PGTABLE_LEVELS
200 int
Martin Schwidefsky1aea9b32017-04-24 18:19:10 +0200201 default 5
Kirill A. Shutemovc81956c2015-04-14 15:46:00 -0700202
Jiri Slaby21042d42015-03-26 10:10:17 +0100203source "kernel/livepatch/Kconfig"
204
Jan Glauber843c48f2012-08-27 10:55:18 +0200205menu "Processor type and features"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700206
Jan Glauber843c48f2012-08-27 10:55:18 +0200207config HAVE_MARCH_Z900_FEATURES
208 def_bool n
209
210config HAVE_MARCH_Z990_FEATURES
211 def_bool n
212 select HAVE_MARCH_Z900_FEATURES
213
214config HAVE_MARCH_Z9_109_FEATURES
215 def_bool n
216 select HAVE_MARCH_Z990_FEATURES
217
218config HAVE_MARCH_Z10_FEATURES
219 def_bool n
220 select HAVE_MARCH_Z9_109_FEATURES
221
222config HAVE_MARCH_Z196_FEATURES
223 def_bool n
224 select HAVE_MARCH_Z10_FEATURES
225
Heiko Carstens991c15052012-11-13 10:26:37 +0200226config HAVE_MARCH_ZEC12_FEATURES
227 def_bool n
228 select HAVE_MARCH_Z196_FEATURES
229
Martin Schwidefskyf8b2dcb2015-01-14 17:50:19 +0100230config HAVE_MARCH_Z13_FEATURES
231 def_bool n
232 select HAVE_MARCH_ZEC12_FEATURES
233
Martin Schwidefsky6997c322017-04-12 14:17:25 +0200234config HAVE_MARCH_Z14_FEATURES
235 def_bool n
236 select HAVE_MARCH_Z13_FEATURES
237
Jan Glauber843c48f2012-08-27 10:55:18 +0200238choice
239 prompt "Processor type"
Martin Schwidefsky7072276e2016-04-18 17:10:16 +0200240 default MARCH_Z196
Jan Glauber843c48f2012-08-27 10:55:18 +0200241
242config MARCH_Z900
243 bool "IBM zSeries model z800 and z900"
Arnd Bergmannc263a4e2019-04-15 10:35:51 +0200244 depends on !CC_IS_CLANG
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100245 select HAVE_MARCH_Z900_FEATURES
Jan Glauber843c48f2012-08-27 10:55:18 +0200246 help
247 Select this to enable optimizations for model z800/z900 (2064 and
248 2066 series). This will enable some optimizations that are not
249 available on older ESA/390 (31 Bit) only CPUs.
250
251config MARCH_Z990
252 bool "IBM zSeries model z890 and z990"
Arnd Bergmannc263a4e2019-04-15 10:35:51 +0200253 depends on !CC_IS_CLANG
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100254 select HAVE_MARCH_Z990_FEATURES
Jan Glauber843c48f2012-08-27 10:55:18 +0200255 help
256 Select this to enable optimizations for model z890/z990 (2084 and
257 2086 series). The kernel will be slightly faster but will not work
258 on older machines.
259
260config MARCH_Z9_109
261 bool "IBM System z9"
Arnd Bergmannc263a4e2019-04-15 10:35:51 +0200262 depends on !CC_IS_CLANG
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100263 select HAVE_MARCH_Z9_109_FEATURES
Jan Glauber843c48f2012-08-27 10:55:18 +0200264 help
265 Select this to enable optimizations for IBM System z9 (2094 and
266 2096 series). The kernel will be slightly faster but will not work
267 on older machines.
268
269config MARCH_Z10
270 bool "IBM System z10"
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100271 select HAVE_MARCH_Z10_FEATURES
Jan Glauber843c48f2012-08-27 10:55:18 +0200272 help
273 Select this to enable optimizations for IBM System z10 (2097 and
274 2098 series). The kernel will be slightly faster but will not work
275 on older machines.
276
277config MARCH_Z196
278 bool "IBM zEnterprise 114 and 196"
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100279 select HAVE_MARCH_Z196_FEATURES
Jan Glauber843c48f2012-08-27 10:55:18 +0200280 help
281 Select this to enable optimizations for IBM zEnterprise 114 and 196
282 (2818 and 2817 series). The kernel will be slightly faster but will
283 not work on older machines.
284
Heiko Carstens991c15052012-11-13 10:26:37 +0200285config MARCH_ZEC12
Heiko Carstens59471222013-07-24 10:35:33 +0200286 bool "IBM zBC12 and zEC12"
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100287 select HAVE_MARCH_ZEC12_FEATURES
Heiko Carstens991c15052012-11-13 10:26:37 +0200288 help
Heiko Carstens59471222013-07-24 10:35:33 +0200289 Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and
290 2827 series). The kernel will be slightly faster but will not work on
291 older machines.
Heiko Carstens991c15052012-11-13 10:26:37 +0200292
Martin Schwidefskyf8b2dcb2015-01-14 17:50:19 +0100293config MARCH_Z13
Heiko Carstensbb3aa612016-02-19 10:46:08 +0100294 bool "IBM z13s and z13"
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100295 select HAVE_MARCH_Z13_FEATURES
Martin Schwidefskyf8b2dcb2015-01-14 17:50:19 +0100296 help
Heiko Carstensbb3aa612016-02-19 10:46:08 +0100297 Select this to enable optimizations for IBM z13s and z13 (2965 and
298 2964 series). The kernel will be slightly faster but will not work on
299 older machines.
Martin Schwidefskyf8b2dcb2015-01-14 17:50:19 +0100300
Martin Schwidefsky6997c322017-04-12 14:17:25 +0200301config MARCH_Z14
Heiko Carstens451239e2018-04-13 14:04:24 +0200302 bool "IBM z14 ZR1 and z14"
Martin Schwidefsky6997c322017-04-12 14:17:25 +0200303 select HAVE_MARCH_Z14_FEATURES
304 help
Heiko Carstens451239e2018-04-13 14:04:24 +0200305 Select this to enable optimizations for IBM z14 ZR1 and z14 (3907
306 and 3906 series). The kernel will be slightly faster but will not
307 work on older machines.
Martin Schwidefsky6997c322017-04-12 14:17:25 +0200308
Jan Glauber843c48f2012-08-27 10:55:18 +0200309endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700310
Heiko Carstens1db9e052013-10-30 12:12:50 +0100311config MARCH_Z900_TUNE
312 def_bool TUNE_Z900 || MARCH_Z900 && TUNE_DEFAULT
313
314config MARCH_Z990_TUNE
315 def_bool TUNE_Z990 || MARCH_Z990 && TUNE_DEFAULT
316
317config MARCH_Z9_109_TUNE
318 def_bool TUNE_Z9_109 || MARCH_Z9_109 && TUNE_DEFAULT
319
320config MARCH_Z10_TUNE
321 def_bool TUNE_Z10 || MARCH_Z10 && TUNE_DEFAULT
322
323config MARCH_Z196_TUNE
324 def_bool TUNE_Z196 || MARCH_Z196 && TUNE_DEFAULT
325
326config MARCH_ZEC12_TUNE
327 def_bool TUNE_ZEC12 || MARCH_ZEC12 && TUNE_DEFAULT
328
Martin Schwidefskyf8b2dcb2015-01-14 17:50:19 +0100329config MARCH_Z13_TUNE
330 def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT
331
Martin Schwidefsky6997c322017-04-12 14:17:25 +0200332config MARCH_Z14_TUNE
333 def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT
334
Heiko Carstens1db9e052013-10-30 12:12:50 +0100335choice
336 prompt "Tune code generation"
337 default TUNE_DEFAULT
338 help
339 Cause the compiler to tune (-mtune) the generated code for a machine.
340 This will make the code run faster on the selected machine but
341 somewhat slower on other machines.
342 This option only changes how the compiler emits instructions, not the
343 selection of instructions itself, so the resulting kernel will run on
344 all other machines.
345
346config TUNE_DEFAULT
347 bool "Default"
348 help
349 Tune the generated code for the target processor for which the kernel
350 will be compiled.
351
Heiko Carstens1db9e052013-10-30 12:12:50 +0100352config TUNE_Z900
353 bool "IBM zSeries model z800 and z900"
Arnd Bergmannc263a4e2019-04-15 10:35:51 +0200354 depends on !CC_IS_CLANG
Heiko Carstens1db9e052013-10-30 12:12:50 +0100355
356config TUNE_Z990
357 bool "IBM zSeries model z890 and z990"
Arnd Bergmannc263a4e2019-04-15 10:35:51 +0200358 depends on !CC_IS_CLANG
Heiko Carstens1db9e052013-10-30 12:12:50 +0100359
360config TUNE_Z9_109
361 bool "IBM System z9"
Arnd Bergmannc263a4e2019-04-15 10:35:51 +0200362 depends on !CC_IS_CLANG
Heiko Carstens1db9e052013-10-30 12:12:50 +0100363
364config TUNE_Z10
365 bool "IBM System z10"
366
367config TUNE_Z196
368 bool "IBM zEnterprise 114 and 196"
369
370config TUNE_ZEC12
371 bool "IBM zBC12 and zEC12"
372
Martin Schwidefskyf8b2dcb2015-01-14 17:50:19 +0100373config TUNE_Z13
374 bool "IBM z13"
375
Martin Schwidefsky6997c322017-04-12 14:17:25 +0200376config TUNE_Z14
377 bool "IBM z14"
378
Heiko Carstens1db9e052013-10-30 12:12:50 +0100379endchoice
380
Martin Schwidefsky347a8dc2006-01-06 00:19:28 -0800381config 64BIT
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100382 def_bool y
Martin Schwidefskyd9f7a742006-09-28 16:55:39 +0200383
Jan Glauber843c48f2012-08-27 10:55:18 +0200384config COMPAT
385 def_bool y
386 prompt "Kernel support for 31 bit emulation"
Jan Glauber843c48f2012-08-27 10:55:18 +0200387 select COMPAT_BINFMT_ELF if BINFMT_ELF
388 select ARCH_WANT_OLD_COMPAT_IPC
Al Viro7eddd992012-12-25 19:26:12 -0500389 select COMPAT_OLD_SIGACTION
Arnd Bergmannfef747b2019-01-16 14:15:21 +0100390 select HAVE_UID16
Iulia Manda28138932015-04-15 16:16:41 -0700391 depends on MULTIUSER
Jan Glauber843c48f2012-08-27 10:55:18 +0200392 help
393 Select this option if you want to enable your system kernel to
394 handle system-calls from ELF binaries for 31 bit ESA. This option
395 (and some other stuff like libraries and such) is needed for
396 executing 31 bit applications. It is safe to say "Y".
397
Arnd Bergmann96ca7672019-04-08 23:26:15 +0200398config COMPAT_VDSO
399 def_bool COMPAT && !CC_IS_CLANG
400
Jan Glauber843c48f2012-08-27 10:55:18 +0200401config SYSVIPC_COMPAT
402 def_bool y if COMPAT && SYSVIPC
403
Linus Torvalds1da177e2005-04-16 15:20:36 -0700404config SMP
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100405 def_bool y
406 prompt "Symmetric multi-processing support"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700407 ---help---
408 This enables support for systems with more than one CPU. If you have
409 a system with only one CPU, like most personal computers, say N. If
410 you have a system with more than one CPU, say Y.
411
Robert Graffham4a474152014-01-23 15:55:29 -0800412 If you say N here, the kernel will run on uni- and multiprocessor
Linus Torvalds1da177e2005-04-16 15:20:36 -0700413 machines, but will use only one CPU of a multiprocessor machine. If
414 you say Y here, the kernel will run on many, but not all,
Robert Graffham4a474152014-01-23 15:55:29 -0800415 uniprocessor machines. On a uniprocessor machine, the kernel
Linus Torvalds1da177e2005-04-16 15:20:36 -0700416 will run faster if you say N here.
417
Adrian Bunk03502fa2008-02-03 15:50:21 +0200418 See also the SMP-HOWTO available at
419 <http://www.tldp.org/docs.html#howto>.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700420
421 Even if you don't know what to do here, say Y.
422
423config NR_CPUS
Heiko Carstens5c75a0d2015-01-28 16:52:01 +0100424 int "Maximum number of CPUs (2-512)"
425 range 2 512
Linus Torvalds1da177e2005-04-16 15:20:36 -0700426 depends on SMP
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100427 default "64"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700428 help
429 This allows you to specify the maximum number of CPUs which this
Heiko Carstens5c75a0d2015-01-28 16:52:01 +0100430 kernel will support. The maximum supported value is 512 and the
Linus Torvalds1da177e2005-04-16 15:20:36 -0700431 minimum value which makes sense is 2.
432
433 This is purely to save memory - each supported CPU adds
434 approximately sixteen kilobytes to the kernel image.
435
436config HOTPLUG_CPU
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100437 def_bool y
438 prompt "Support for hot-pluggable CPUs"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700439 depends on SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700440 help
441 Say Y here to be able to turn CPUs off and on. CPUs
442 can be controlled through /sys/devices/system/cpu/cpu#.
443 Say N if you want to disable CPU hotplug.
444
Philipp Hachtmann3a368f72014-03-06 18:25:13 +0100445# Some NUMA nodes have memory ranges that span
446# other nodes. Even though a pfn is valid and
447# between a node's start and end pfns, it may not
448# reside on that node. See memmap_init_zone()
449# for details. <- They meant memory holes!
450config NODES_SPAN_OTHER_NODES
451 def_bool NUMA
452
453config NUMA
454 bool "NUMA support"
Heiko Carstensc095a942015-12-28 12:53:51 +0100455 depends on SMP && SCHED_TOPOLOGY
Philipp Hachtmann3a368f72014-03-06 18:25:13 +0100456 default n
457 help
458 Enable NUMA support
459
460 This option adds NUMA support to the kernel.
461
462 An operation mode can be selected by appending
463 numa=<method> to the kernel command line.
464
465 The default behaviour is identical to appending numa=plain to
466 the command line. This will create just one node with all
467 available memory and all CPUs in it.
468
469config NODES_SHIFT
470 int "Maximum NUMA nodes (as a power of 2)"
471 range 1 10
472 depends on NUMA
473 default "4"
474 help
475 Specify the maximum number of NUMA nodes available on the target
476 system. Increases memory reserved to accommodate various tables.
477
Michael Holzheuc29a7ba2014-03-06 18:47:21 +0100478menu "Select NUMA modes"
479 depends on NUMA
480
481config NUMA_EMU
482 bool "NUMA emulation"
483 default y
484 help
485 Numa emulation mode will split the available system memory into
486 equal chunks which then are distributed over the configured number
487 of nodes in a round-robin manner.
488
489 The number of fake nodes is limited by the number of available memory
490 chunks (i.e. memory size / fake size) and the number of supported
491 nodes in the kernel.
492
493 The CPUs are assigned to the nodes in a way that partially respects
494 the original machine topology (if supported by the machine).
495 Fair distribution of the CPUs is not guaranteed.
496
497config EMU_SIZE
498 hex "NUMA emulation memory chunk size"
499 default 0x10000000
500 range 0x400000 0x100000000
501 depends on NUMA_EMU
502 help
503 Select the default size by which the memory is chopped and then
504 assigned to emulated NUMA nodes.
505
506 This can be overridden by specifying
507
508 emu_size=<n>
509
510 on the kernel command line where also suffixes K, M, G, and T are
511 supported.
512
513endmenu
514
Heiko Carstens9236b4d2015-12-28 13:20:43 +0100515config SCHED_SMT
516 def_bool n
517
Heiko Carstens8d11e022010-10-29 16:50:37 +0200518config SCHED_MC
Heiko Carstens83a24e32011-12-27 11:27:09 +0100519 def_bool n
Heiko Carstens8d11e022010-10-29 16:50:37 +0200520
Heiko Carstens4cb14bc2010-08-31 10:28:18 +0200521config SCHED_BOOK
Martin Schwidefsky10ad34b2015-01-14 17:52:10 +0100522 def_bool n
523
Heiko Carstensadac0f12016-05-25 10:25:50 +0200524config SCHED_DRAWER
525 def_bool n
526
Martin Schwidefsky10ad34b2015-01-14 17:52:10 +0100527config SCHED_TOPOLOGY
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100528 def_bool y
Martin Schwidefsky10ad34b2015-01-14 17:52:10 +0100529 prompt "Topology scheduler support"
Heiko Carstens83a24e32011-12-27 11:27:09 +0100530 depends on SMP
Martin Schwidefsky10ad34b2015-01-14 17:52:10 +0100531 select SCHED_SMT
Heiko Carstens83a24e32011-12-27 11:27:09 +0100532 select SCHED_MC
Martin Schwidefsky10ad34b2015-01-14 17:52:10 +0100533 select SCHED_BOOK
Heiko Carstensadac0f12016-05-25 10:25:50 +0200534 select SCHED_DRAWER
Heiko Carstens4cb14bc2010-08-31 10:28:18 +0200535 help
Martin Schwidefsky10ad34b2015-01-14 17:52:10 +0100536 Topology scheduler support improves the CPU scheduler's decision
537 making when dealing with machines that have multi-threading,
538 multiple cores or multiple books.
Heiko Carstens4cb14bc2010-08-31 10:28:18 +0200539
Masahiro Yamada8636a1f2018-12-11 20:01:04 +0900540source "kernel/Kconfig.hz"
Jan Glauber843c48f2012-08-27 10:55:18 +0200541
Philipp Rudobdea9f62018-03-27 13:14:12 +0200542config KEXEC
543 def_bool y
544 select KEXEC_CORE
545
546config KEXEC_FILE
547 bool "kexec file based system call"
548 select KEXEC_CORE
549 select BUILD_BIN2C
550 depends on CRYPTO
551 depends on CRYPTO_SHA256
552 depends on CRYPTO_SHA256_S390
553 help
554 Enable the kexec file based system call. In contrast to the normal
555 kexec system call this system call takes file descriptors for the
556 kernel and initramfs as arguments.
557
558config ARCH_HAS_KEXEC_PURGATORY
559 def_bool y
560 depends on KEXEC_FILE
561
Philipp Rudoe23a8022019-02-26 10:50:39 +0100562config KEXEC_VERIFY_SIG
563 bool "Verify kernel signature during kexec_file_load() syscall"
564 depends on KEXEC_FILE && SYSTEM_DATA_VERIFICATION
565 help
566 This option makes kernel signature verification mandatory for
567 the kexec_file_load() syscall.
568
569 In addition to that option, you need to enable signature
570 verification for the corresponding kernel image type being
571 loaded in order for this to work.
572
Harald Freudenberger4c637cd2017-03-17 10:46:31 +0100573config ARCH_RANDOM
574 def_bool y
575 prompt "s390 architectural random number generation API"
576 help
577 Enable the s390 architectural random number generation API
578 to provide random data for all consumers within the Linux
579 kernel.
580
581 When enabled the arch_random_* functions declared in linux/random.h
582 are implemented. The implementation is based on the s390 CPACF
583 instruction subfunction TRNG which provides a real true random
584 number generator.
585
586 If unsure, say Y.
587
Martin Schwidefskyd768bd82018-01-16 07:11:45 +0100588config KERNEL_NOBP
589 def_bool n
590 prompt "Enable modified branch prediction for the kernel by default"
591 help
592 If this option is selected the kernel will switch to a modified
593 branch prediction mode if the firmware interface is available.
594 The modified branch prediction mode improves the behaviour in
595 regard to speculative execution.
596
597 With the option enabled the kernel parameter "nobp=0" or "nospec"
598 can be used to run the kernel in the normal branch prediction mode.
599
600 With the option disabled the modified branch prediction mode is
601 enabled with the "nobp=1" kernel parameter.
602
603 If unsure, say N.
604
Martin Schwidefskyf19fbd52018-01-26 12:46:47 +0100605config EXPOLINE
606 def_bool n
607 prompt "Avoid speculative indirect branches in the kernel"
608 help
609 Compile the kernel with the expoline compiler options to guard
610 against kernel-to-user data leaks by avoiding speculative indirect
611 branches.
612 Requires a compiler with -mindirect-branch=thunk support for full
613 protection. The kernel may run slower.
614
615 If unsure, say N.
616
617choice
618 prompt "Expoline default"
619 depends on EXPOLINE
620 default EXPOLINE_FULL
621
622config EXPOLINE_OFF
623 bool "spectre_v2=off"
624
Martin Schwidefsky6e179d62018-03-23 13:04:49 +0100625config EXPOLINE_AUTO
Martin Schwidefskyf19fbd52018-01-26 12:46:47 +0100626 bool "spectre_v2=auto"
627
628config EXPOLINE_FULL
629 bool "spectre_v2=on"
630
631endchoice
632
Gerald Schaefer805bc0b2019-02-03 21:35:45 +0100633config RELOCATABLE
634 bool "Build a relocatable kernel"
635 select MODULE_REL_CRCS if MODVERSIONS
636 default y
637 help
638 This builds a kernel image that retains relocation information
639 so it can be loaded at an arbitrary address.
640 The kernel is linked as a position-independent executable (PIE)
641 and contains dynamic relocations which are processed early in the
642 bootup process.
643 The relocations make the kernel image about 15% larger (compressed
644 10%), but are discarded at runtime.
645
Gerald Schaeferb2d24b92019-02-03 21:37:20 +0100646config RANDOMIZE_BASE
647 bool "Randomize the address of the kernel image (KASLR)"
648 depends on RELOCATABLE
649 default y
650 help
651 In support of Kernel Address Space Layout Randomization (KASLR),
652 this randomizes the address at which the kernel image is loaded,
653 as a security feature that deters exploit attempts relying on
654 knowledge of the location of kernel internals.
655
Jan Glauber843c48f2012-08-27 10:55:18 +0200656endmenu
657
658menu "Memory setup"
659
660config ARCH_SPARSEMEM_ENABLE
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100661 def_bool y
Jan Glauber843c48f2012-08-27 10:55:18 +0200662 select SPARSEMEM_VMEMMAP_ENABLE
663 select SPARSEMEM_VMEMMAP
Linus Torvalds1da177e2005-04-16 15:20:36 -0700664
Jan Glauber843c48f2012-08-27 10:55:18 +0200665config ARCH_SPARSEMEM_DEFAULT
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100666 def_bool y
Al Viroe65e1fc2006-09-12 03:04:40 -0400667
Jan Glauber843c48f2012-08-27 10:55:18 +0200668config ARCH_SELECT_MEMORY_MODEL
669 def_bool y
Heiko Carstens05445162012-05-14 10:12:41 +0200670
Jan Glauber843c48f2012-08-27 10:55:18 +0200671config ARCH_ENABLE_MEMORY_HOTPLUG
672 def_bool y if SPARSEMEM
Heiko Carstens05445162012-05-14 10:12:41 +0200673
Jan Glauber843c48f2012-08-27 10:55:18 +0200674config ARCH_ENABLE_MEMORY_HOTREMOVE
675 def_bool y
Heiko Carstens05445162012-05-14 10:12:41 +0200676
Martin Schwidefskyec66ad62014-02-12 14:16:18 +0100677config ARCH_ENABLE_SPLIT_PMD_PTLOCK
678 def_bool y
Martin Schwidefskyec66ad62014-02-12 14:16:18 +0100679
Jan Glauber843c48f2012-08-27 10:55:18 +0200680config FORCE_MAX_ZONEORDER
681 int
682 default "9"
Heiko Carstens05445162012-05-14 10:12:41 +0200683
Heiko Carstensb8402b92017-03-27 15:36:20 +0200684config MAX_PHYSMEM_BITS
685 int "Maximum size of supported physical memory in bits (42-53)"
686 range 42 53
687 default "46"
688 help
689 This option specifies the maximum supported size of physical memory
690 in bits. Supported is any size between 2^42 (4TB) and 2^53 (8PB).
691 Increasing the number of bits also increases the kernel image size.
692 By default 46 bits (64TB) are supported.
693
Linus Torvalds1da177e2005-04-16 15:20:36 -0700694config PACK_STACK
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100695 def_bool y
696 prompt "Pack kernel stack"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700697 help
698 This option enables the compiler option -mkernel-backchain if it
699 is available. If the option is available the compiler supports
700 the new stack layout which dramatically reduces the minimum stack
701 frame size. With an old compiler a non-leaf function needs a
702 minimum of 96 bytes on 31 bit and 160 bytes on 64 bit. With
703 -mkernel-backchain the minimum size drops to 16 byte on 31 bit
704 and 24 byte on 64 bit.
705
706 Say Y if you are unsure.
707
Linus Torvalds1da177e2005-04-16 15:20:36 -0700708config CHECK_STACK
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100709 def_bool y
Martin Schwidefskyce3dc442017-09-12 16:37:33 +0200710 depends on !VMAP_STACK
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100711 prompt "Detect kernel stack overflow"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700712 help
713 This option enables the compiler option -mstack-guard and
714 -mstack-size if they are available. If the compiler supports them
715 it will emit additional code to each function prolog to trigger
716 an illegal operation if the kernel stack is about to overflow.
717
718 Say N if you are unsure.
719
720config STACK_GUARD
721 int "Size of the guard area (128-1024)"
722 range 128 1024
723 depends on CHECK_STACK
724 default "256"
725 help
726 This allows you to specify the size of the guard area at the lower
727 end of the kernel stack. If the kernel stack points into the guard
728 area on function entry an illegal operation is triggered. The size
729 needs to be a power of 2. Please keep in mind that the size of an
730 interrupt frame is 184 bytes for 31 bit and 328 bytes on 64 bit.
731 The minimum size for the stack guard should be 256 for 31 bit and
732 512 for 64 bit.
733
Jan Glauber2c190da2011-03-15 17:08:19 +0100734config WARN_DYNAMIC_STACK
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100735 def_bool n
Jan Glauber2c190da2011-03-15 17:08:19 +0100736 prompt "Emit compiler warnings for function with dynamic stack usage"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700737 help
Jan Glauber2c190da2011-03-15 17:08:19 +0100738 This option enables the compiler option -mwarn-dynamicstack. If the
739 compiler supports this options generates warnings for functions
740 that dynamically allocate stack space using alloca.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700741
742 Say N if you are unsure.
743
Jan Glauber843c48f2012-08-27 10:55:18 +0200744endmenu
Martin Schwidefsky61d48c22007-05-10 15:46:00 +0200745
Jan Glauber843c48f2012-08-27 10:55:18 +0200746menu "I/O subsystem"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700747
Linus Torvalds1da177e2005-04-16 15:20:36 -0700748config QDIO
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100749 def_tristate y
750 prompt "QDIO support"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700751 ---help---
Frank Pavlic8129ee12006-01-06 00:19:20 -0800752 This driver provides the Queued Direct I/O base support for
Ursula Braunefca13b2008-04-17 07:46:19 +0200753 IBM System z.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700754
755 To compile this driver as a module, choose M here: the
756 module will be called qdio.
757
758 If unsure, say Y.
759
Jan Glauberc8717a32012-11-29 14:38:46 +0100760if PCI
761
762config PCI_NR_FUNCTIONS
763 int "Maximum number of PCI functions (1-4096)"
764 range 1 4096
Sebastian Ottb18601b2017-03-27 19:09:15 +0200765 default "128"
Jan Glauberc8717a32012-11-29 14:38:46 +0100766 help
767 This allows you to specify the maximum number of PCI functions which
768 this kernel will support.
769
Jan Glauberc8717a32012-11-29 14:38:46 +0100770endif # PCI
771
Jan Glauberc8717a32012-11-29 14:38:46 +0100772config HAS_IOMEM
773 def_bool PCI
774
Cornelia Huck9d92a7e2008-07-14 09:59:05 +0200775config CHSC_SCH
Sebastian Ottd9c11b12011-01-31 11:30:09 +0100776 def_tristate m
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100777 prompt "Support for CHSC subchannels"
Cornelia Huck9d92a7e2008-07-14 09:59:05 +0200778 help
779 This driver allows usage of CHSC subchannels. A CHSC subchannel
780 is usually present on LPAR only.
781 The driver creates a device /dev/chsc, which may be used to
782 obtain I/O configuration information about the machine and
783 to issue asynchronous chsc commands (DANGEROUS).
784 You will usually only want to use this interface on a special
785 LPAR designated for system management.
786
787 To compile this driver as a module, choose M here: the
788 module will be called chsc_sch.
789
790 If unsure, say N.
791
Sebastian Ott1d1c8f72012-08-28 16:46:26 +0200792config SCM_BUS
793 def_bool y
Sebastian Ott1d1c8f72012-08-28 16:46:26 +0200794 prompt "SCM bus driver"
795 help
796 Bus driver for Storage Class Memory.
797
Sebastian Otteadb86a2012-08-28 16:48:16 +0200798config EADM_SCH
799 def_tristate m
800 prompt "Support for EADM subchannels"
801 depends on SCM_BUS
802 help
803 This driver allows usage of EADM subchannels. EADM subchannels act
804 as a communication vehicle for SCM increments.
805
806 To compile this driver as a module, choose M here: the
807 module will be called eadm_sch.
808
Dong Jia Shi63f19342017-03-17 04:17:31 +0100809config VFIO_CCW
810 def_tristate n
811 prompt "Support for VFIO-CCW subchannels"
Dong Jia Shi84cd8fc2017-03-17 04:17:33 +0100812 depends on S390_CCW_IOMMU && VFIO_MDEV
Dong Jia Shi63f19342017-03-17 04:17:31 +0100813 help
814 This driver allows usage of I/O subchannels via VFIO-CCW.
815
816 To compile this driver as a module, choose M here: the
817 module will be called vfio_ccw.
818
Tony Krowiak1fde5732018-09-25 19:16:19 -0400819config VFIO_AP
820 def_tristate n
821 prompt "VFIO support for AP devices"
822 depends on S390_AP_IOMMU && VFIO_MDEV_DEVICE && KVM
823 help
824 This driver grants access to Adjunct Processor (AP) devices
825 via the VFIO mediated device interface.
826
827 To compile this driver as a module, choose M here: the module
828 will be called vfio_ap.
829
Jan Glauber843c48f2012-08-27 10:55:18 +0200830endmenu
831
832menu "Dump support"
833
834config CRASH_DUMP
835 bool "kernel crash dumps"
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100836 depends on SMP
Jan Glauber843c48f2012-08-27 10:55:18 +0200837 select KEXEC
838 help
839 Generate crash dump after being started by kexec.
840 Crash dump kernels are loaded in the main kernel with kexec-tools
841 into a specially reserved region and then later executed after
842 a crash by kdump/kexec.
Jan Glauber843c48f2012-08-27 10:55:18 +0200843 Refer to <file:Documentation/s390/zfcpdump.txt> for more details on this.
Michael Holzheubf28a592014-04-14 10:38:05 +0200844 This option also enables s390 zfcpdump.
845 See also <file:Documentation/s390/zfcpdump.txt>
Jan Glauber843c48f2012-08-27 10:55:18 +0200846
847endmenu
848
Jan Glauber843c48f2012-08-27 10:55:18 +0200849config SECCOMP
850 def_bool y
851 prompt "Enable seccomp to safely compute untrusted bytecode"
852 depends on PROC_FS
853 help
854 This kernel feature is useful for number crunching applications
855 that may need to compute untrusted bytecode during their
856 execution. By using pipes or other transports made available to
857 the process as file descriptors supporting the read/write
858 syscalls, it's possible to isolate those applications in
859 their own address space using seccomp. Once seccomp is
860 enabled via /proc/<pid>/seccomp, it cannot be disabled
861 and the task is only allowed to execute a few safe syscalls
862 defined by each seccomp mode.
863
864 If unsure, say Y.
865
Jan Glauber843c48f2012-08-27 10:55:18 +0200866menu "Power Management"
867
868config ARCH_HIBERNATION_POSSIBLE
Heiko Carstens5a79859a2015-02-12 13:08:27 +0100869 def_bool y
Jan Glauber843c48f2012-08-27 10:55:18 +0200870
871source "kernel/power/Kconfig"
872
873endmenu
874
Jan Glauber843c48f2012-08-27 10:55:18 +0200875config CCW
876 def_bool y
877
Ursula Braunb6ef86e2018-05-22 12:42:57 +0200878config HAVE_PNETID
879 tristate
880 default (SMC || CCWGROUP)
881
Jan Glauber843c48f2012-08-27 10:55:18 +0200882menu "Virtualization"
Heiko Carstens684de392008-03-05 12:37:14 +0100883
Vasily Gorbik5abb9352019-04-01 19:11:03 +0200884config PROTECTED_VIRTUALIZATION_GUEST
885 def_bool n
886 prompt "Protected virtualization guest support"
887 help
888 Select this option, if you want to be able to run this
889 kernel as a protected virtualization KVM guest.
890 Protected virtualization capable machines have a mini hypervisor
891 located at machine level (an ultravisor). With help of the
892 Ultravisor, KVM will be able to run "protected" VMs, special
893 VMs whose memory and management data are unavailable to KVM.
894
Linus Torvalds1da177e2005-04-16 15:20:36 -0700895config PFAULT
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100896 def_bool y
897 prompt "Pseudo page fault support"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700898 help
899 Select this option, if you want to use PFAULT pseudo page fault
900 handling under VM. If running native or in LPAR, this option
901 has no effect. If your VM does not support PFAULT, PAGEEX
902 pseudo page fault handling will be used.
903 Note that VM 4.2 supports PFAULT but has a bug in its
904 implementation that causes some problems.
905 Everybody who wants to run Linux under VM != VM4.2 should select
906 this option.
907
Linus Torvalds1da177e2005-04-16 15:20:36 -0700908config CMM
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100909 def_tristate n
910 prompt "Cooperative memory management"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700911 help
912 Select this option, if you want to enable the kernel interface
913 to reduce the memory size of the system. This is accomplished
914 by allocating pages of memory and put them "on hold". This only
915 makes sense for a system running under VM where the unused pages
916 will be reused by VM for other guest systems. The interface
917 allows an external monitor to balance memory of many systems.
918 Everybody who wants to run Linux under VM should select this
919 option.
920
Linus Torvalds1da177e2005-04-16 15:20:36 -0700921config CMM_IUCV
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100922 def_bool y
923 prompt "IUCV special message interface to cooperative memory management"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700924 depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV)
925 help
926 Select this option to enable the special message interface to
927 the cooperative memory management.
928
Linus Torvalds1da177e2005-04-16 15:20:36 -0700929config APPLDATA_BASE
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100930 def_bool n
931 prompt "Linux - VM Monitor Stream, base infrastructure"
Martin Schwidefskyc185b782008-12-25 13:39:25 +0100932 depends on PROC_FS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700933 help
934 This provides a kernel interface for creating and updating z/VM APPLDATA
935 monitor records. The monitor records are updated at certain time
936 intervals, once the timer is started.
937 Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer,
938 i.e. enables or disables monitoring on the Linux side.
939 A custom interval value (in seconds) can be written to
940 /proc/appldata/interval.
941
942 Defaults are 60 seconds interval and timer off.
943 The /proc entries can also be read from, showing the current settings.
944
945config APPLDATA_MEM
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100946 def_tristate m
947 prompt "Monitor memory management statistics"
Al Viro62fb2ba2006-12-13 00:34:59 -0800948 depends on APPLDATA_BASE && VM_EVENT_COUNTERS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700949 help
950 This provides memory management related data to the Linux - VM Monitor
951 Stream, like paging/swapping rate, memory utilisation, etc.
952 Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM
953 APPLDATA monitor record, i.e. enables or disables monitoring this record
954 on the z/VM side.
955
956 Default is disabled.
957 The /proc entry can also be read from, showing the current settings.
958
959 This can also be compiled as a module, which will be called
960 appldata_mem.o.
961
962config APPLDATA_OS
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100963 def_tristate m
964 prompt "Monitor OS statistics"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700965 depends on APPLDATA_BASE
966 help
967 This provides OS related data to the Linux - VM Monitor Stream, like
968 CPU utilisation, etc.
969 Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM
970 APPLDATA monitor record, i.e. enables or disables monitoring this record
971 on the z/VM side.
972
973 Default is disabled.
974 This can also be compiled as a module, which will be called
975 appldata_os.o.
976
977config APPLDATA_NET_SUM
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100978 def_tristate m
979 prompt "Monitor overall network statistics"
Sachin Sant70193af2009-03-26 15:24:00 +0100980 depends on APPLDATA_BASE && NET
Linus Torvalds1da177e2005-04-16 15:20:36 -0700981 help
982 This provides network related data to the Linux - VM Monitor Stream,
983 currently there is only a total sum of network I/O statistics, no
984 per-interface data.
985 Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM
986 APPLDATA monitor record, i.e. enables or disables monitoring this record
987 on the z/VM side.
988
989 Default is disabled.
990 This can also be compiled as a module, which will be called
991 appldata_net_sum.o.
992
Michael Holzheu24bbb1f2006-06-23 02:05:06 -0700993config S390_HYPFS_FS
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +0100994 def_bool y
995 prompt "s390 hypervisor file system support"
Michael Holzheu24bbb1f2006-06-23 02:05:06 -0700996 select SYS_HYPERVISOR
Michael Holzheu24bbb1f2006-06-23 02:05:06 -0700997 help
998 This is a virtual file system intended to provide accounting
999 information in an s390 hypervisor environment.
1000
Jan Glauber843c48f2012-08-27 10:55:18 +02001001source "arch/s390/kvm/Kconfig"
Michael Holzheu411ed322007-04-27 16:01:49 +02001002
Carsten Ottefa587742008-03-25 18:47:44 +01001003config S390_GUEST
Martin Schwidefsky6f9a3c32011-01-05 12:47:15 +01001004 def_bool y
Kees Cook510cf5a2012-10-02 11:16:42 -07001005 prompt "s390 support for virtio devices"
Chen Gang79b6f7f2013-07-23 16:26:08 +08001006 select TTY
Christian Borntraeger80629b02011-06-22 16:24:07 +02001007 select VIRTUALIZATION
Carsten Ottefa587742008-03-25 18:47:44 +01001008 select VIRTIO
Christian Borntraegerfaeba8302008-06-20 15:24:18 +02001009 select VIRTIO_CONSOLE
Carsten Ottefa587742008-03-25 18:47:44 +01001010 help
Cornelia Huckbdd1fc22012-08-27 12:56:48 +02001011 Enabling this option adds support for virtio based paravirtual device
1012 drivers on s390.
1013
Christian Borntraeger20766c02008-08-29 13:30:56 +02001014 Select this option if you want to run the kernel as a guest under
Cornelia Huckbdd1fc22012-08-27 12:56:48 +02001015 the KVM hypervisor.
Heiko Carstensbcf5cef2009-06-12 10:26:26 +02001016
Linus Torvalds1da177e2005-04-16 15:20:36 -07001017endmenu