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