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