Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
1da177e4 | 2 | config MMU |
61d48c2c | 3 | def_bool y |
1da177e4 | 4 | |
2fd92273 HC |
5 | config CPU_BIG_ENDIAN |
6 | def_bool y | |
7 | ||
2b105ff9 | 8 | config LOCKDEP_SUPPORT |
61d48c2c | 9 | def_bool y |
2b105ff9 | 10 | |
5bdc9b44 | 11 | config STACKTRACE_SUPPORT |
61d48c2c | 12 | def_bool y |
5bdc9b44 | 13 | |
f0d1b0b3 | 14 | config ARCH_HAS_ILOG2_U32 |
6f9a3c33 | 15 | def_bool n |
f0d1b0b3 DH |
16 | |
17 | config ARCH_HAS_ILOG2_U64 | |
6f9a3c33 | 18 | def_bool n |
f0d1b0b3 | 19 | |
7e33db4e | 20 | config GENERIC_HWEIGHT |
61d48c2c | 21 | def_bool y |
7e33db4e | 22 | |
c0007f1a | 23 | config GENERIC_BUG |
6f9a3c33 | 24 | def_bool y if BUG |
c0007f1a | 25 | |
52499f40 HC |
26 | config GENERIC_BUG_RELATIVE_POINTERS |
27 | def_bool y | |
28 | ||
b6b40c53 | 29 | config GENERIC_LOCKBREAK |
114b9df4 | 30 | def_bool y if PREEMPTION |
b6b40c53 | 31 | |
402b0862 | 32 | config PGSTE |
6f9a3c33 | 33 | def_bool y if KVM |
402b0862 | 34 | |
843c48fd JG |
35 | config AUDIT_ARCH |
36 | def_bool y | |
37 | ||
ce816fa8 | 38 | config NO_IOPORT_MAP |
c8717a3d JG |
39 | def_bool y |
40 | ||
41 | config PCI_QUIRKS | |
42 | def_bool n | |
43 | ||
2a0a5b22 | 44 | config ARCH_SUPPORTS_UPROBES |
5a79859a | 45 | def_bool y |
2a0a5b22 | 46 | |
5e785963 VG |
47 | config KASAN_SHADOW_OFFSET |
48 | hex | |
49 | depends on KASAN | |
9a39abb7 | 50 | default 0x1C000000000000 |
5e785963 | 51 | |
347a8dc3 | 52 | config S390 |
61d48c2c | 53 | def_bool y |
129975e7 HC |
54 | # |
55 | # Note: keep this list sorted alphabetically | |
56 | # | |
57 | imply IMA_SECURE_AND_OR_TRUSTED_BOOT | |
12700c17 | 58 | select ALTERNATE_USER_ADDRESS_SPACE |
96c0a6a7 | 59 | select ARCH_32BIT_USTAT_F_TINODE |
23fefe11 | 60 | select ARCH_BINFMT_ELF_STATE |
708b1376 | 61 | select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE |
91024b3c AK |
62 | select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM |
63 | select ARCH_ENABLE_MEMORY_HOTREMOVE | |
cebc774f | 64 | select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 |
2792d84e | 65 | select ARCH_HAS_CURRENT_STACK_POINTER |
399145f9 | 66 | select ARCH_HAS_DEBUG_VM_PGTABLE |
08c8e685 | 67 | select ARCH_HAS_DEBUG_WX |
21266be9 | 68 | select ARCH_HAS_DEVMEM_IS_ALLOWED |
2b68f6ca | 69 | select ARCH_HAS_ELF_RANDOMIZE |
129975e7 | 70 | select ARCH_HAS_FORCE_DMA_UNENCRYPTED |
79962038 | 71 | select ARCH_HAS_FORTIFY_SOURCE |
957e3fac | 72 | select ARCH_HAS_GCOV_PROFILE_ALL |
4eb0716e | 73 | select ARCH_HAS_GIGANTIC_PAGE |
907fa061 | 74 | select ARCH_HAS_KCOV |
0c9c1d56 | 75 | select ARCH_HAS_MEM_ENCRYPT |
3010a5ea | 76 | select ARCH_HAS_PTE_SPECIAL |
129975e7 | 77 | select ARCH_HAS_SCALED_CPUTIME |
d2852a22 | 78 | select ARCH_HAS_SET_MEMORY |
ad21fc4f LA |
79 | select ARCH_HAS_STRICT_KERNEL_RWX |
80 | select ARCH_HAS_STRICT_MODULE_RWX | |
aa0d6e70 | 81 | select ARCH_HAS_SYSCALL_WRAPPER |
c42d8c7d | 82 | select ARCH_HAS_UBSAN_SANITIZE_ALL |
4bff8cb5 | 83 | select ARCH_HAS_VDSO_DATA |
0e0d04a8 | 84 | select ARCH_HAVE_NMI_SAFE_CMPXCHG |
6beb0009 TG |
85 | select ARCH_INLINE_READ_LOCK |
86 | select ARCH_INLINE_READ_LOCK_BH | |
87 | select ARCH_INLINE_READ_LOCK_IRQ | |
88 | select ARCH_INLINE_READ_LOCK_IRQSAVE | |
0e0d04a8 | 89 | select ARCH_INLINE_READ_TRYLOCK |
6beb0009 TG |
90 | select ARCH_INLINE_READ_UNLOCK |
91 | select ARCH_INLINE_READ_UNLOCK_BH | |
92 | select ARCH_INLINE_READ_UNLOCK_IRQ | |
93 | select ARCH_INLINE_READ_UNLOCK_IRQRESTORE | |
0e0d04a8 HC |
94 | select ARCH_INLINE_SPIN_LOCK |
95 | select ARCH_INLINE_SPIN_LOCK_BH | |
96 | select ARCH_INLINE_SPIN_LOCK_IRQ | |
97 | select ARCH_INLINE_SPIN_LOCK_IRQSAVE | |
98 | select ARCH_INLINE_SPIN_TRYLOCK | |
99 | select ARCH_INLINE_SPIN_TRYLOCK_BH | |
100 | select ARCH_INLINE_SPIN_UNLOCK | |
101 | select ARCH_INLINE_SPIN_UNLOCK_BH | |
102 | select ARCH_INLINE_SPIN_UNLOCK_IRQ | |
103 | select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE | |
6beb0009 TG |
104 | select ARCH_INLINE_WRITE_LOCK |
105 | select ARCH_INLINE_WRITE_LOCK_BH | |
106 | select ARCH_INLINE_WRITE_LOCK_IRQ | |
107 | select ARCH_INLINE_WRITE_LOCK_IRQSAVE | |
0e0d04a8 | 108 | select ARCH_INLINE_WRITE_TRYLOCK |
6beb0009 TG |
109 | select ARCH_INLINE_WRITE_UNLOCK |
110 | select ARCH_INLINE_WRITE_UNLOCK_BH | |
111 | select ARCH_INLINE_WRITE_UNLOCK_IRQ | |
112 | select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE | |
e991e5bb | 113 | select ARCH_STACKWALK |
36e7fdaa | 114 | select ARCH_SUPPORTS_ATOMIC_RMW |
5d6ad668 | 115 | select ARCH_SUPPORTS_DEBUG_PAGEALLOC |
bb9c14ad | 116 | select ARCH_SUPPORTS_HUGETLBFS |
a763bc8b | 117 | select ARCH_SUPPORTS_NUMA_BALANCING |
295d8fa9 | 118 | select ARCH_USE_BUILTIN_BSWAP |
efc1d23b | 119 | select ARCH_USE_CMPXCHG_LOCKREF |
3f6813b9 | 120 | select ARCH_WANTS_DYNAMIC_TASK_STRUCT |
51c2ee6d | 121 | select ARCH_WANTS_NO_INSTR |
d2abfbe4 | 122 | select ARCH_WANT_DEFAULT_BPF_JIT |
c1d7e01d | 123 | select ARCH_WANT_IPC_PARSE_VERSION |
10916706 | 124 | select BUILDTIME_TABLE_SORT |
0e0d04a8 | 125 | select CLONE_BACKWARDS2 |
2f9237d4 | 126 | select DMA_OPS if PCI |
5d6a0163 | 127 | select DYNAMIC_FTRACE if FUNCTION_TRACER |
f0be87c4 | 128 | select GCC12_NO_ARRAY_BOUNDS |
129975e7 | 129 | select GENERIC_ALLOCATOR |
8f00b3e2 | 130 | select GENERIC_CPU_AUTOPROBE |
d424986f | 131 | select GENERIC_CPU_VULNERABILITIES |
56e62a73 | 132 | select GENERIC_ENTRY |
4bff8cb5 | 133 | select GENERIC_GETTIMEOFDAY |
9d719d39 | 134 | select GENERIC_PTDUMP |
e80e7813 | 135 | select GENERIC_SMP_IDLE_THREAD |
79c74ecb | 136 | select GENERIC_TIME_VSYSCALL |
eeab78b0 | 137 | select GENERIC_VDSO_TIME_NS |
0e0d04a8 | 138 | select HAVE_ALIGNED_STRUCT_PAGE if SLUB |
7a017721 | 139 | select HAVE_ARCH_AUDITSYSCALL |
5a79859a | 140 | select HAVE_ARCH_JUMP_LABEL |
13ddb52c | 141 | select HAVE_ARCH_JUMP_LABEL_RELATIVE |
42db5ed8 | 142 | select HAVE_ARCH_KASAN |
3e39ce26 | 143 | select HAVE_ARCH_KASAN_VMALLOC |
e37b3dd0 | 144 | select HAVE_ARCH_KCSAN |
e41ba111 | 145 | select HAVE_ARCH_KFENCE |
bae1cd36 | 146 | select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET |
c63cb468 | 147 | select HAVE_ARCH_SECCOMP_FILTER |
5614dd92 | 148 | select HAVE_ARCH_SOFT_DIRTY |
0e0d04a8 | 149 | select HAVE_ARCH_TRACEHOOK |
5a79859a | 150 | select HAVE_ARCH_TRANSPARENT_HUGEPAGE |
ce3dc447 | 151 | select HAVE_ARCH_VMAP_STACK |
2ff2b7ec | 152 | select HAVE_ASM_MODVERSIONS |
0e0d04a8 HC |
153 | select HAVE_CMPXCHG_DOUBLE |
154 | select HAVE_CMPXCHG_LOCAL | |
0e0d04a8 | 155 | select HAVE_DEBUG_KMEMLEAK |
e1231b0e | 156 | select HAVE_DMA_CONTIGUOUS |
5a79859a | 157 | select HAVE_DYNAMIC_FTRACE |
5740a7c7 | 158 | select HAVE_DYNAMIC_FTRACE_WITH_ARGS |
2ab3a0a9 | 159 | select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS |
5a79859a | 160 | select HAVE_DYNAMIC_FTRACE_WITH_REGS |
42b01a55 | 161 | select HAVE_EBPF_JIT if HAVE_MARCH_Z196_FEATURES |
9078a549 | 162 | select HAVE_EFFICIENT_UNALIGNED_ACCESS |
129975e7 | 163 | select HAVE_FAST_GUP |
d983c89c | 164 | select HAVE_FENTRY |
0e0d04a8 | 165 | select HAVE_FTRACE_MCOUNT_RECORD |
a30b5b03 | 166 | select HAVE_FUNCTION_ARG_ACCESS_API |
73d6eb48 | 167 | select HAVE_FUNCTION_ERROR_INJECTION |
5a79859a HC |
168 | select HAVE_FUNCTION_GRAPH_TRACER |
169 | select HAVE_FUNCTION_TRACER | |
bc00b3ec | 170 | select HAVE_GCC_PLUGINS |
4bff8cb5 | 171 | select HAVE_GENERIC_VDSO |
d460bb6c | 172 | select HAVE_IOREMAP_PROT if PCI |
0e0d04a8 HC |
173 | select HAVE_KERNEL_BZIP2 |
174 | select HAVE_KERNEL_GZIP | |
8e2872ce | 175 | select HAVE_KERNEL_LZ4 |
0e0d04a8 HC |
176 | select HAVE_KERNEL_LZMA |
177 | select HAVE_KERNEL_LZO | |
89b5202e | 178 | select HAVE_KERNEL_UNCOMPRESSED |
0e0d04a8 | 179 | select HAVE_KERNEL_XZ |
7b034d9c | 180 | select HAVE_KERNEL_ZSTD |
0e0d04a8 | 181 | select HAVE_KPROBES |
657480d9 | 182 | select HAVE_KPROBES_ON_FTRACE |
0e0d04a8 | 183 | select HAVE_KRETPROBES |
5a79859a | 184 | select HAVE_KVM |
21042d43 | 185 | select HAVE_LIVEPATCH |
50be6345 | 186 | select HAVE_MEMBLOCK_PHYS_MAP |
786d35d4 | 187 | select HAVE_MOD_ARCH_SPECIFIC |
129975e7 | 188 | select HAVE_NMI |
d983c89c | 189 | select HAVE_NOP_MCOUNT |
eb01d42a | 190 | select HAVE_PCI |
0e0d04a8 | 191 | select HAVE_PERF_EVENTS |
129975e7 HC |
192 | select HAVE_PERF_REGS |
193 | select HAVE_PERF_USER_STACK_DUMP | |
0e0d04a8 | 194 | select HAVE_REGS_AND_STACK_ACCESS_API |
aa137a6d | 195 | select HAVE_RELIABLE_STACKTRACE |
9d6d99e3 | 196 | select HAVE_RSEQ |
1254cfbc | 197 | select HAVE_SAMPLE_FTRACE_DIRECT |
890e3dc8 | 198 | select HAVE_SAMPLE_FTRACE_DIRECT_MULTI |
cd1a41ce | 199 | select HAVE_SOFTIRQ_ON_OWN_STACK |
0e0d04a8 | 200 | select HAVE_SYSCALL_TRACEPOINTS |
0e0d04a8 | 201 | select HAVE_VIRT_CPU_ACCOUNTING |
2b91ec9f | 202 | select HAVE_VIRT_CPU_ACCOUNTING_IDLE |
eb01d42a CH |
203 | select IOMMU_HELPER if PCI |
204 | select IOMMU_SUPPORT if PCI | |
129975e7 HC |
205 | select MMU_GATHER_NO_GATHER |
206 | select MMU_GATHER_RCU_TABLE_FREE | |
1e9fdf21 | 207 | select MMU_GATHER_MERGE_VMAS |
786d35d4 | 208 | select MODULES_USE_ELF_RELA |
eb01d42a CH |
209 | select NEED_DMA_MAP_STATE if PCI |
210 | select NEED_SG_DMA_LENGTH if PCI | |
7eddd99c | 211 | select OLD_SIGACTION |
93bead43 | 212 | select OLD_SIGSUSPEND3 |
2eac9c2d | 213 | select PCI_DOMAINS if PCI |
eb01d42a | 214 | select PCI_MSI if PCI |
981aa1d3 | 215 | select PCI_MSI_ARCH_FALLBACKS if PCI_MSI |
bb98f396 | 216 | select SPARSE_IRQ |
129975e7 | 217 | select SWIOTLB |
0e0d04a8 | 218 | select SYSCTL_EXCEPTION_TRACE |
d5c352cd | 219 | select THREAD_INFO_IN_TASK |
4aae683f | 220 | select TRACE_IRQFLAGS_SUPPORT |
0563416b | 221 | select TTY |
0e0d04a8 | 222 | select VIRT_CPU_ACCOUNTING |
63703f37 | 223 | select ZONE_DMA |
129975e7 | 224 | # Note: keep the above list sorted alphabetically |
1da177e4 | 225 | |
fca3e357 | 226 | config SCHED_OMIT_FRAME_POINTER |
6f9a3c33 | 227 | def_bool y |
fca3e357 | 228 | |
c81956c9 KS |
229 | config PGTABLE_LEVELS |
230 | int | |
1aea9b3f | 231 | default 5 |
c81956c9 | 232 | |
21042d43 JS |
233 | source "kernel/livepatch/Kconfig" |
234 | ||
843c48fd JG |
235 | menu "Processor type and features" |
236 | ||
843c48fd JG |
237 | config HAVE_MARCH_Z10_FEATURES |
238 | def_bool n | |
843c48fd JG |
239 | |
240 | config HAVE_MARCH_Z196_FEATURES | |
241 | def_bool n | |
242 | select HAVE_MARCH_Z10_FEATURES | |
243 | ||
991c1505 HC |
244 | config HAVE_MARCH_ZEC12_FEATURES |
245 | def_bool n | |
246 | select HAVE_MARCH_Z196_FEATURES | |
247 | ||
f8b2dcbd MS |
248 | config HAVE_MARCH_Z13_FEATURES |
249 | def_bool n | |
250 | select HAVE_MARCH_ZEC12_FEATURES | |
251 | ||
6997c323 MS |
252 | config HAVE_MARCH_Z14_FEATURES |
253 | def_bool n | |
254 | select HAVE_MARCH_Z13_FEATURES | |
255 | ||
a0e22511 MS |
256 | config HAVE_MARCH_Z15_FEATURES |
257 | def_bool n | |
258 | select HAVE_MARCH_Z14_FEATURES | |
259 | ||
e69a7ff8 HC |
260 | config HAVE_MARCH_Z16_FEATURES |
261 | def_bool n | |
262 | select HAVE_MARCH_Z15_FEATURES | |
263 | ||
843c48fd JG |
264 | choice |
265 | prompt "Processor type" | |
7072276e | 266 | default MARCH_Z196 |
1da177e4 | 267 | |
843c48fd JG |
268 | config MARCH_Z10 |
269 | bool "IBM System z10" | |
5a79859a | 270 | select HAVE_MARCH_Z10_FEATURES |
5474080a | 271 | depends on $(cc-option,-march=z10) |
843c48fd | 272 | help |
4efd417f VG |
273 | Select this to enable optimizations for IBM System z10 (2097 and 2098 |
274 | series). This is the oldest machine generation currently supported. | |
843c48fd JG |
275 | |
276 | config MARCH_Z196 | |
277 | bool "IBM zEnterprise 114 and 196" | |
5a79859a | 278 | select HAVE_MARCH_Z196_FEATURES |
5474080a | 279 | depends on $(cc-option,-march=z196) |
843c48fd JG |
280 | 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. | |
1da177e4 | 284 | |
991c1505 | 285 | config MARCH_ZEC12 |
59471227 | 286 | bool "IBM zBC12 and zEC12" |
5a79859a | 287 | select HAVE_MARCH_ZEC12_FEATURES |
5474080a | 288 | depends on $(cc-option,-march=zEC12) |
991c1505 | 289 | help |
59471227 HC |
290 | Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and |
291 | 2827 series). The kernel will be slightly faster but will not work on | |
292 | older machines. | |
991c1505 | 293 | |
f8b2dcbd | 294 | config MARCH_Z13 |
bb3aa614 | 295 | bool "IBM z13s and z13" |
5a79859a | 296 | select HAVE_MARCH_Z13_FEATURES |
5474080a | 297 | depends on $(cc-option,-march=z13) |
f8b2dcbd | 298 | help |
bb3aa614 HC |
299 | Select this to enable optimizations for IBM z13s and z13 (2965 and |
300 | 2964 series). The kernel will be slightly faster but will not work on | |
301 | older machines. | |
f8b2dcbd | 302 | |
6997c323 | 303 | config MARCH_Z14 |
451239eb | 304 | bool "IBM z14 ZR1 and z14" |
6997c323 | 305 | select HAVE_MARCH_Z14_FEATURES |
5474080a | 306 | depends on $(cc-option,-march=z14) |
6997c323 | 307 | help |
451239eb HC |
308 | Select this to enable optimizations for IBM z14 ZR1 and z14 (3907 |
309 | and 3906 series). The kernel will be slightly faster but will not | |
310 | work on older machines. | |
6997c323 | 311 | |
a0e22511 MS |
312 | config MARCH_Z15 |
313 | bool "IBM z15" | |
314 | select HAVE_MARCH_Z15_FEATURES | |
5474080a | 315 | depends on $(cc-option,-march=z15) |
a0e22511 MS |
316 | help |
317 | Select this to enable optimizations for IBM z15 (8562 | |
318 | and 8561 series). The kernel will be slightly faster but will not | |
319 | work on older machines. | |
320 | ||
e69a7ff8 HC |
321 | config MARCH_Z16 |
322 | bool "IBM z16" | |
323 | select HAVE_MARCH_Z16_FEATURES | |
324 | depends on $(cc-option,-march=z16) | |
325 | help | |
326 | Select this to enable optimizations for IBM z16 (3931 and | |
327 | 3932 series). | |
328 | ||
843c48fd | 329 | endchoice |
1da177e4 | 330 | |
1db9e051 HC |
331 | config MARCH_Z10_TUNE |
332 | def_bool TUNE_Z10 || MARCH_Z10 && TUNE_DEFAULT | |
333 | ||
334 | config MARCH_Z196_TUNE | |
335 | def_bool TUNE_Z196 || MARCH_Z196 && TUNE_DEFAULT | |
336 | ||
337 | config MARCH_ZEC12_TUNE | |
338 | def_bool TUNE_ZEC12 || MARCH_ZEC12 && TUNE_DEFAULT | |
339 | ||
f8b2dcbd MS |
340 | config MARCH_Z13_TUNE |
341 | def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT | |
342 | ||
6997c323 MS |
343 | config MARCH_Z14_TUNE |
344 | def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT | |
345 | ||
a0e22511 MS |
346 | config MARCH_Z15_TUNE |
347 | def_bool TUNE_Z15 || MARCH_Z15 && TUNE_DEFAULT | |
348 | ||
e69a7ff8 HC |
349 | config MARCH_Z16_TUNE |
350 | def_bool TUNE_Z16 || MARCH_Z16 && TUNE_DEFAULT | |
351 | ||
1db9e051 HC |
352 | choice |
353 | prompt "Tune code generation" | |
354 | default TUNE_DEFAULT | |
355 | help | |
356 | Cause the compiler to tune (-mtune) the generated code for a machine. | |
357 | This will make the code run faster on the selected machine but | |
358 | somewhat slower on other machines. | |
359 | This option only changes how the compiler emits instructions, not the | |
360 | selection of instructions itself, so the resulting kernel will run on | |
361 | all other machines. | |
362 | ||
363 | config TUNE_DEFAULT | |
364 | bool "Default" | |
365 | help | |
366 | Tune the generated code for the target processor for which the kernel | |
367 | will be compiled. | |
368 | ||
1db9e051 HC |
369 | config TUNE_Z10 |
370 | bool "IBM System z10" | |
371 | ||
372 | config TUNE_Z196 | |
373 | bool "IBM zEnterprise 114 and 196" | |
5474080a | 374 | depends on $(cc-option,-mtune=z196) |
1db9e051 HC |
375 | |
376 | config TUNE_ZEC12 | |
377 | bool "IBM zBC12 and zEC12" | |
5474080a | 378 | depends on $(cc-option,-mtune=zEC12) |
1db9e051 | 379 | |
f8b2dcbd | 380 | config TUNE_Z13 |
89d0180a | 381 | bool "IBM z13s and z13" |
5474080a | 382 | depends on $(cc-option,-mtune=z13) |
f8b2dcbd | 383 | |
6997c323 | 384 | config TUNE_Z14 |
89d0180a | 385 | bool "IBM z14 ZR1 and z14" |
5474080a | 386 | depends on $(cc-option,-mtune=z14) |
6997c323 | 387 | |
a0e22511 MS |
388 | config TUNE_Z15 |
389 | bool "IBM z15" | |
5474080a | 390 | depends on $(cc-option,-mtune=z15) |
a0e22511 | 391 | |
e69a7ff8 HC |
392 | config TUNE_Z16 |
393 | bool "IBM z16" | |
394 | depends on $(cc-option,-mtune=z16) | |
395 | ||
1db9e051 HC |
396 | endchoice |
397 | ||
347a8dc3 | 398 | config 64BIT |
6f9a3c33 | 399 | def_bool y |
d9f7a745 | 400 | |
622021cd SS |
401 | config COMMAND_LINE_SIZE |
402 | int "Maximum size of kernel command line" | |
403 | default 4096 | |
404 | range 896 1048576 | |
405 | help | |
406 | This allows you to specify the maximum length of the kernel command | |
407 | line. | |
408 | ||
843c48fd JG |
409 | config COMPAT |
410 | def_bool y | |
411 | prompt "Kernel support for 31 bit emulation" | |
843c48fd | 412 | select ARCH_WANT_OLD_COMPAT_IPC |
7eddd99c | 413 | select COMPAT_OLD_SIGACTION |
fef747ba | 414 | select HAVE_UID16 |
2813893f | 415 | depends on MULTIUSER |
779df224 | 416 | depends on !CC_IS_CLANG |
843c48fd JG |
417 | help |
418 | Select this option if you want to enable your system kernel to | |
419 | handle system-calls from ELF binaries for 31 bit ESA. This option | |
420 | (and some other stuff like libraries and such) is needed for | |
421 | executing 31 bit applications. It is safe to say "Y". | |
422 | ||
1da177e4 | 423 | config SMP |
6f9a3c33 | 424 | def_bool y |
1da177e4 LT |
425 | |
426 | config NR_CPUS | |
5c75a0da HC |
427 | int "Maximum number of CPUs (2-512)" |
428 | range 2 512 | |
5a79859a | 429 | default "64" |
1da177e4 LT |
430 | help |
431 | This allows you to specify the maximum number of CPUs which this | |
5c75a0da | 432 | kernel will support. The maximum supported value is 512 and the |
1da177e4 LT |
433 | minimum value which makes sense is 2. |
434 | ||
435 | This is purely to save memory - each supported CPU adds | |
436 | approximately sixteen kilobytes to the kernel image. | |
437 | ||
438 | config HOTPLUG_CPU | |
6f9a3c33 | 439 | def_bool y |
1da177e4 | 440 | |
3a368f74 PH |
441 | config NUMA |
442 | bool "NUMA support" | |
67626fad | 443 | depends on SCHED_TOPOLOGY |
3a368f74 PH |
444 | default n |
445 | help | |
446 | Enable NUMA support | |
447 | ||
448 | This option adds NUMA support to the kernel. | |
449 | ||
3a368f74 | 450 | config NODES_SHIFT |
701dc81e | 451 | int |
a9ee6cf5 | 452 | depends on NUMA |
701dc81e | 453 | default "1" |
9236b4dd HC |
454 | |
455 | config SCHED_SMT | |
456 | def_bool n | |
c29a7baf | 457 | |
8d11e021 | 458 | config SCHED_MC |
83a24e32 | 459 | def_bool n |
8d11e021 | 460 | |
4cb14bc8 | 461 | config SCHED_BOOK |
10ad34bc MS |
462 | def_bool n |
463 | ||
adac0f1e HC |
464 | config SCHED_DRAWER |
465 | def_bool n | |
466 | ||
10ad34bc | 467 | config SCHED_TOPOLOGY |
6f9a3c33 | 468 | def_bool y |
10ad34bc | 469 | prompt "Topology scheduler support" |
10ad34bc | 470 | select SCHED_SMT |
83a24e32 | 471 | select SCHED_MC |
10ad34bc | 472 | select SCHED_BOOK |
adac0f1e | 473 | select SCHED_DRAWER |
4cb14bc8 | 474 | help |
10ad34bc MS |
475 | Topology scheduler support improves the CPU scheduler's decision |
476 | making when dealing with machines that have multi-threading, | |
477 | multiple cores or multiple books. | |
4cb14bc8 | 478 | |
8636a1f9 | 479 | source "kernel/Kconfig.hz" |
1da177e4 | 480 | |
bdea9f6f PR |
481 | config KEXEC |
482 | def_bool y | |
483 | select KEXEC_CORE | |
484 | ||
485 | config KEXEC_FILE | |
486 | bool "kexec file based system call" | |
487 | select KEXEC_CORE | |
bdea9f6f PR |
488 | depends on CRYPTO |
489 | depends on CRYPTO_SHA256 | |
490 | depends on CRYPTO_SHA256_S390 | |
491 | help | |
492 | Enable the kexec file based system call. In contrast to the normal | |
493 | kexec system call this system call takes file descriptors for the | |
494 | kernel and initramfs as arguments. | |
495 | ||
496 | config ARCH_HAS_KEXEC_PURGATORY | |
497 | def_bool y | |
498 | depends on KEXEC_FILE | |
499 | ||
99d5cadf | 500 | config KEXEC_SIG |
e23a8020 | 501 | bool "Verify kernel signature during kexec_file_load() syscall" |
c8424e77 | 502 | depends on KEXEC_FILE && MODULE_SIG_FORMAT |
e23a8020 PR |
503 | help |
504 | This option makes kernel signature verification mandatory for | |
505 | the kexec_file_load() syscall. | |
506 | ||
507 | In addition to that option, you need to enable signature | |
508 | verification for the corresponding kernel image type being | |
509 | loaded in order for this to work. | |
510 | ||
d768bd89 MS |
511 | config KERNEL_NOBP |
512 | def_bool n | |
513 | prompt "Enable modified branch prediction for the kernel by default" | |
514 | help | |
515 | If this option is selected the kernel will switch to a modified | |
516 | branch prediction mode if the firmware interface is available. | |
517 | The modified branch prediction mode improves the behaviour in | |
518 | regard to speculative execution. | |
519 | ||
520 | With the option enabled the kernel parameter "nobp=0" or "nospec" | |
521 | can be used to run the kernel in the normal branch prediction mode. | |
522 | ||
523 | With the option disabled the modified branch prediction mode is | |
524 | enabled with the "nobp=1" kernel parameter. | |
525 | ||
526 | If unsure, say N. | |
527 | ||
f19fbd5e MS |
528 | config EXPOLINE |
529 | def_bool n | |
1d2ad084 | 530 | depends on $(cc-option,-mindirect-branch=thunk) |
f19fbd5e MS |
531 | prompt "Avoid speculative indirect branches in the kernel" |
532 | help | |
533 | Compile the kernel with the expoline compiler options to guard | |
534 | against kernel-to-user data leaks by avoiding speculative indirect | |
535 | branches. | |
536 | Requires a compiler with -mindirect-branch=thunk support for full | |
537 | protection. The kernel may run slower. | |
538 | ||
539 | If unsure, say N. | |
540 | ||
1d2ad084 VG |
541 | config EXPOLINE_EXTERN |
542 | def_bool n | |
543 | depends on EXPOLINE | |
1d2ad084 VG |
544 | depends on CC_IS_GCC && GCC_VERSION >= 110200 |
545 | depends on $(success,$(srctree)/arch/s390/tools/gcc-thunk-extern.sh $(CC)) | |
546 | prompt "Generate expolines as extern functions." | |
547 | help | |
548 | This option is required for some tooling like kpatch. The kernel is | |
549 | compiled with -mindirect-branch=thunk-extern and requires a newer | |
550 | compiler. | |
551 | ||
552 | If unsure, say N. | |
f19fbd5e MS |
553 | |
554 | choice | |
555 | prompt "Expoline default" | |
556 | depends on EXPOLINE | |
557 | default EXPOLINE_FULL | |
558 | ||
559 | config EXPOLINE_OFF | |
560 | bool "spectre_v2=off" | |
561 | ||
6e179d64 | 562 | config EXPOLINE_AUTO |
f19fbd5e MS |
563 | bool "spectre_v2=auto" |
564 | ||
565 | config EXPOLINE_FULL | |
566 | bool "spectre_v2=on" | |
567 | ||
568 | endchoice | |
569 | ||
805bc0bc GS |
570 | config RELOCATABLE |
571 | bool "Build a relocatable kernel" | |
805bc0bc GS |
572 | default y |
573 | help | |
574 | This builds a kernel image that retains relocation information | |
575 | so it can be loaded at an arbitrary address. | |
576 | The kernel is linked as a position-independent executable (PIE) | |
577 | and contains dynamic relocations which are processed early in the | |
578 | bootup process. | |
579 | The relocations make the kernel image about 15% larger (compressed | |
580 | 10%), but are discarded at runtime. | |
581 | ||
b2d24b97 GS |
582 | config RANDOMIZE_BASE |
583 | bool "Randomize the address of the kernel image (KASLR)" | |
584 | depends on RELOCATABLE | |
585 | default y | |
586 | help | |
587 | In support of Kernel Address Space Layout Randomization (KASLR), | |
588 | this randomizes the address at which the kernel image is loaded, | |
589 | as a security feature that deters exploit attempts relying on | |
590 | knowledge of the location of kernel internals. | |
591 | ||
843c48fd | 592 | endmenu |
1da177e4 | 593 | |
843c48fd | 594 | menu "Memory setup" |
1d057720 | 595 | |
843c48fd | 596 | config ARCH_SPARSEMEM_ENABLE |
6f9a3c33 | 597 | def_bool y |
843c48fd JG |
598 | select SPARSEMEM_VMEMMAP_ENABLE |
599 | select SPARSEMEM_VMEMMAP | |
e65e1fc2 | 600 | |
843c48fd JG |
601 | config ARCH_SPARSEMEM_DEFAULT |
602 | def_bool y | |
1da177e4 | 603 | |
b8402b95 HC |
604 | config MAX_PHYSMEM_BITS |
605 | int "Maximum size of supported physical memory in bits (42-53)" | |
606 | range 42 53 | |
607 | default "46" | |
608 | help | |
609 | This option specifies the maximum supported size of physical memory | |
610 | in bits. Supported is any size between 2^42 (4TB) and 2^53 (8PB). | |
611 | Increasing the number of bits also increases the kernel image size. | |
612 | By default 46 bits (64TB) are supported. | |
613 | ||
1da177e4 | 614 | config CHECK_STACK |
6f9a3c33 | 615 | def_bool y |
ce3dc447 | 616 | depends on !VMAP_STACK |
6f9a3c33 | 617 | prompt "Detect kernel stack overflow" |
1da177e4 LT |
618 | help |
619 | This option enables the compiler option -mstack-guard and | |
620 | -mstack-size if they are available. If the compiler supports them | |
621 | it will emit additional code to each function prolog to trigger | |
622 | an illegal operation if the kernel stack is about to overflow. | |
623 | ||
624 | Say N if you are unsure. | |
625 | ||
626 | config STACK_GUARD | |
627 | int "Size of the guard area (128-1024)" | |
628 | range 128 1024 | |
629 | depends on CHECK_STACK | |
630 | default "256" | |
631 | help | |
632 | This allows you to specify the size of the guard area at the lower | |
633 | end of the kernel stack. If the kernel stack points into the guard | |
634 | area on function entry an illegal operation is triggered. The size | |
635 | needs to be a power of 2. Please keep in mind that the size of an | |
636 | interrupt frame is 184 bytes for 31 bit and 328 bytes on 64 bit. | |
637 | The minimum size for the stack guard should be 256 for 31 bit and | |
638 | 512 for 64 bit. | |
639 | ||
843c48fd | 640 | endmenu |
3f22ab27 | 641 | |
843c48fd | 642 | menu "I/O subsystem" |
1da177e4 | 643 | |
1da177e4 | 644 | config QDIO |
6f9a3c33 MS |
645 | def_tristate y |
646 | prompt "QDIO support" | |
a7f7f624 | 647 | help |
8129ee16 | 648 | This driver provides the Queued Direct I/O base support for |
efca13bc | 649 | IBM System z. |
1da177e4 LT |
650 | |
651 | To compile this driver as a module, choose M here: the | |
652 | module will be called qdio. | |
653 | ||
654 | If unsure, say Y. | |
655 | ||
c8717a3d JG |
656 | if PCI |
657 | ||
658 | config PCI_NR_FUNCTIONS | |
659 | int "Maximum number of PCI functions (1-4096)" | |
660 | range 1 4096 | |
10e59217 | 661 | default "512" |
c8717a3d JG |
662 | help |
663 | This allows you to specify the maximum number of PCI functions which | |
664 | this kernel will support. | |
665 | ||
8b96d971 | 666 | endif # PCI |
c8717a3d | 667 | |
c8717a3d JG |
668 | config HAS_IOMEM |
669 | def_bool PCI | |
670 | ||
9d92a7e1 | 671 | config CHSC_SCH |
d9c11b1e | 672 | def_tristate m |
6f9a3c33 | 673 | prompt "Support for CHSC subchannels" |
9d92a7e1 CH |
674 | help |
675 | This driver allows usage of CHSC subchannels. A CHSC subchannel | |
676 | is usually present on LPAR only. | |
677 | The driver creates a device /dev/chsc, which may be used to | |
678 | obtain I/O configuration information about the machine and | |
679 | to issue asynchronous chsc commands (DANGEROUS). | |
680 | You will usually only want to use this interface on a special | |
681 | LPAR designated for system management. | |
682 | ||
683 | To compile this driver as a module, choose M here: the | |
684 | module will be called chsc_sch. | |
685 | ||
686 | If unsure, say N. | |
687 | ||
1d1c8f78 SO |
688 | config SCM_BUS |
689 | def_bool y | |
1d1c8f78 SO |
690 | prompt "SCM bus driver" |
691 | help | |
692 | Bus driver for Storage Class Memory. | |
693 | ||
eadb86ab SO |
694 | config EADM_SCH |
695 | def_tristate m | |
696 | prompt "Support for EADM subchannels" | |
697 | depends on SCM_BUS | |
698 | help | |
699 | This driver allows usage of EADM subchannels. EADM subchannels act | |
700 | as a communication vehicle for SCM increments. | |
701 | ||
702 | To compile this driver as a module, choose M here: the | |
703 | module will be called eadm_sch. | |
704 | ||
63f1934d DJS |
705 | config VFIO_CCW |
706 | def_tristate n | |
707 | prompt "Support for VFIO-CCW subchannels" | |
84cd8fc4 | 708 | depends on S390_CCW_IOMMU && VFIO_MDEV |
63f1934d DJS |
709 | help |
710 | This driver allows usage of I/O subchannels via VFIO-CCW. | |
711 | ||
712 | To compile this driver as a module, choose M here: the | |
713 | module will be called vfio_ccw. | |
714 | ||
1fde5734 TK |
715 | config VFIO_AP |
716 | def_tristate n | |
717 | prompt "VFIO support for AP devices" | |
af3ab3f9 | 718 | depends on S390_AP_IOMMU && VFIO_MDEV && KVM |
929a343b | 719 | depends on ZCRYPT |
1fde5734 | 720 | help |
4d1f2e45 JH |
721 | This driver grants access to Adjunct Processor (AP) devices |
722 | via the VFIO mediated device interface. | |
1fde5734 | 723 | |
4d1f2e45 JH |
724 | To compile this driver as a module, choose M here: the module |
725 | will be called vfio_ap. | |
1fde5734 | 726 | |
843c48fd JG |
727 | endmenu |
728 | ||
729 | menu "Dump support" | |
730 | ||
731 | config CRASH_DUMP | |
732 | bool "kernel crash dumps" | |
843c48fd JG |
733 | select KEXEC |
734 | help | |
735 | Generate crash dump after being started by kexec. | |
736 | Crash dump kernels are loaded in the main kernel with kexec-tools | |
737 | into a specially reserved region and then later executed after | |
738 | a crash by kdump/kexec. | |
8b4a503d | 739 | Refer to <file:Documentation/s390/zfcpdump.rst> for more details on this. |
bf28a597 | 740 | This option also enables s390 zfcpdump. |
8b4a503d | 741 | See also <file:Documentation/s390/zfcpdump.rst> |
843c48fd JG |
742 | |
743 | endmenu | |
744 | ||
843c48fd JG |
745 | config CCW |
746 | def_bool y | |
747 | ||
b6ef86e9 UB |
748 | config HAVE_PNETID |
749 | tristate | |
750 | default (SMC || CCWGROUP) | |
751 | ||
843c48fd | 752 | menu "Virtualization" |
684de39b | 753 | |
5abb9351 VG |
754 | config PROTECTED_VIRTUALIZATION_GUEST |
755 | def_bool n | |
756 | prompt "Protected virtualization guest support" | |
757 | help | |
758 | Select this option, if you want to be able to run this | |
759 | kernel as a protected virtualization KVM guest. | |
760 | Protected virtualization capable machines have a mini hypervisor | |
761 | located at machine level (an ultravisor). With help of the | |
762 | Ultravisor, KVM will be able to run "protected" VMs, special | |
763 | VMs whose memory and management data are unavailable to KVM. | |
764 | ||
1da177e4 | 765 | config PFAULT |
6f9a3c33 MS |
766 | def_bool y |
767 | prompt "Pseudo page fault support" | |
1da177e4 LT |
768 | help |
769 | Select this option, if you want to use PFAULT pseudo page fault | |
770 | handling under VM. If running native or in LPAR, this option | |
771 | has no effect. If your VM does not support PFAULT, PAGEEX | |
772 | pseudo page fault handling will be used. | |
773 | Note that VM 4.2 supports PFAULT but has a bug in its | |
774 | implementation that causes some problems. | |
775 | Everybody who wants to run Linux under VM != VM4.2 should select | |
776 | this option. | |
777 | ||
1da177e4 | 778 | config CMM |
6f9a3c33 MS |
779 | def_tristate n |
780 | prompt "Cooperative memory management" | |
1da177e4 LT |
781 | help |
782 | Select this option, if you want to enable the kernel interface | |
783 | to reduce the memory size of the system. This is accomplished | |
784 | by allocating pages of memory and put them "on hold". This only | |
785 | makes sense for a system running under VM where the unused pages | |
786 | will be reused by VM for other guest systems. The interface | |
787 | allows an external monitor to balance memory of many systems. | |
788 | Everybody who wants to run Linux under VM should select this | |
789 | option. | |
790 | ||
1da177e4 | 791 | config CMM_IUCV |
6f9a3c33 MS |
792 | def_bool y |
793 | prompt "IUCV special message interface to cooperative memory management" | |
1da177e4 LT |
794 | depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV) |
795 | help | |
796 | Select this option to enable the special message interface to | |
797 | the cooperative memory management. | |
798 | ||
1da177e4 | 799 | config APPLDATA_BASE |
6f9a3c33 MS |
800 | def_bool n |
801 | prompt "Linux - VM Monitor Stream, base infrastructure" | |
5d3516b3 | 802 | depends on PROC_SYSCTL |
1da177e4 LT |
803 | help |
804 | This provides a kernel interface for creating and updating z/VM APPLDATA | |
805 | monitor records. The monitor records are updated at certain time | |
806 | intervals, once the timer is started. | |
807 | Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer, | |
808 | i.e. enables or disables monitoring on the Linux side. | |
809 | A custom interval value (in seconds) can be written to | |
810 | /proc/appldata/interval. | |
811 | ||
812 | Defaults are 60 seconds interval and timer off. | |
813 | The /proc entries can also be read from, showing the current settings. | |
814 | ||
815 | config APPLDATA_MEM | |
6f9a3c33 MS |
816 | def_tristate m |
817 | prompt "Monitor memory management statistics" | |
62fb2ba3 | 818 | depends on APPLDATA_BASE && VM_EVENT_COUNTERS |
1da177e4 LT |
819 | help |
820 | This provides memory management related data to the Linux - VM Monitor | |
821 | Stream, like paging/swapping rate, memory utilisation, etc. | |
822 | Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM | |
823 | APPLDATA monitor record, i.e. enables or disables monitoring this record | |
824 | on the z/VM side. | |
825 | ||
826 | Default is disabled. | |
827 | The /proc entry can also be read from, showing the current settings. | |
828 | ||
829 | This can also be compiled as a module, which will be called | |
830 | appldata_mem.o. | |
831 | ||
832 | config APPLDATA_OS | |
6f9a3c33 MS |
833 | def_tristate m |
834 | prompt "Monitor OS statistics" | |
1da177e4 LT |
835 | depends on APPLDATA_BASE |
836 | help | |
837 | This provides OS related data to the Linux - VM Monitor Stream, like | |
838 | CPU utilisation, etc. | |
839 | Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM | |
840 | APPLDATA monitor record, i.e. enables or disables monitoring this record | |
841 | on the z/VM side. | |
842 | ||
843 | Default is disabled. | |
844 | This can also be compiled as a module, which will be called | |
845 | appldata_os.o. | |
846 | ||
847 | config APPLDATA_NET_SUM | |
6f9a3c33 MS |
848 | def_tristate m |
849 | prompt "Monitor overall network statistics" | |
70193af9 | 850 | depends on APPLDATA_BASE && NET |
1da177e4 LT |
851 | help |
852 | This provides network related data to the Linux - VM Monitor Stream, | |
853 | currently there is only a total sum of network I/O statistics, no | |
854 | per-interface data. | |
855 | Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM | |
856 | APPLDATA monitor record, i.e. enables or disables monitoring this record | |
857 | on the z/VM side. | |
858 | ||
859 | Default is disabled. | |
860 | This can also be compiled as a module, which will be called | |
861 | appldata_net_sum.o. | |
862 | ||
24bbb1fa | 863 | config S390_HYPFS_FS |
6f9a3c33 MS |
864 | def_bool y |
865 | prompt "s390 hypervisor file system support" | |
24bbb1fa | 866 | select SYS_HYPERVISOR |
24bbb1fa MH |
867 | help |
868 | This is a virtual file system intended to provide accounting | |
869 | information in an s390 hypervisor environment. | |
870 | ||
843c48fd | 871 | source "arch/s390/kvm/Kconfig" |
411ed322 | 872 | |
fa587743 | 873 | config S390_GUEST |
6f9a3c33 | 874 | def_bool y |
510cf5a6 | 875 | prompt "s390 support for virtio devices" |
79b6f7fb | 876 | select TTY |
80629b0b | 877 | select VIRTUALIZATION |
fa587743 | 878 | select VIRTIO |
fa587743 | 879 | help |
bdd1fc27 CH |
880 | Enabling this option adds support for virtio based paravirtual device |
881 | drivers on s390. | |
1da177e4 | 882 | |
20766c08 | 883 | Select this option if you want to run the kernel as a guest under |
bdd1fc27 | 884 | the KVM hypervisor. |
155af2f9 HJP |
885 | |
886 | endmenu | |
badbf397 | 887 | |
90c53187 IL |
888 | config S390_MODULES_SANITY_TEST_HELPERS |
889 | def_bool n | |
890 | ||
badbf397 IL |
891 | menu "Selftests" |
892 | ||
893 | config S390_UNWIND_SELFTEST | |
894 | def_tristate n | |
25d36a85 MD |
895 | depends on KUNIT |
896 | default KUNIT_ALL_TESTS | |
badbf397 IL |
897 | prompt "Test unwind functions" |
898 | help | |
899 | This option enables s390 specific stack unwinder testing kernel | |
900 | module. This option is not useful for distributions or general | |
901 | kernels, but only for kernel developers working on architecture code. | |
902 | ||
903 | Say N if you are unsure. | |
904 | ||
d340d28a SS |
905 | config S390_KPROBES_SANITY_TEST |
906 | def_tristate n | |
907 | prompt "Enable s390 specific kprobes tests" | |
908 | depends on KPROBES | |
909 | depends on KUNIT | |
910 | help | |
911 | This option enables an s390 specific kprobes test module. This option | |
912 | is not useful for distributions or general kernels, but only for kernel | |
913 | developers working on architecture code. | |
914 | ||
915 | Say N if you are unsure. | |
916 | ||
90c53187 IL |
917 | config S390_MODULES_SANITY_TEST |
918 | def_tristate n | |
919 | depends on KUNIT | |
920 | default KUNIT_ALL_TESTS | |
921 | prompt "Enable s390 specific modules tests" | |
922 | select S390_MODULES_SANITY_TEST_HELPERS | |
923 | help | |
924 | This option enables an s390 specific modules test. This option is | |
925 | not useful for distributions or general kernels, but only for | |
926 | kernel developers working on architecture code. | |
927 | ||
928 | Say N if you are unsure. | |
badbf397 | 929 | endmenu |