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