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