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