1# SPDX-License-Identifier: GPL-2.0 2config ARCH_HAS_MEM_ENCRYPT 3 def_bool y 4 5config MMU 6 def_bool y 7 8config ZONE_DMA 9 def_bool y 10 11config CPU_BIG_ENDIAN 12 def_bool y 13 14config LOCKDEP_SUPPORT 15 def_bool y 16 17config STACKTRACE_SUPPORT 18 def_bool y 19 20config ARCH_HAS_ILOG2_U32 21 def_bool n 22 23config ARCH_HAS_ILOG2_U64 24 def_bool n 25 26config GENERIC_HWEIGHT 27 def_bool y 28 29config GENERIC_BUG 30 def_bool y if BUG 31 32config GENERIC_BUG_RELATIVE_POINTERS 33 def_bool y 34 35config GENERIC_LOCKBREAK 36 def_bool y if PREEMPT 37 38config PGSTE 39 def_bool y if KVM 40 41config ARCH_SUPPORTS_DEBUG_PAGEALLOC 42 def_bool y 43 44config AUDIT_ARCH 45 def_bool y 46 47config NO_IOPORT_MAP 48 def_bool y 49 50config PCI_QUIRKS 51 def_bool n 52 53config ARCH_SUPPORTS_UPROBES 54 def_bool y 55 56config KASAN_SHADOW_OFFSET 57 hex 58 depends on KASAN 59 default 0x18000000000000 if KASAN_S390_4_LEVEL_PAGING 60 default 0x30000000000 61 62config S390 63 def_bool y 64 select ARCH_BINFMT_ELF_STATE 65 select ARCH_HAS_DEVMEM_IS_ALLOWED 66 select ARCH_HAS_ELF_RANDOMIZE 67 select ARCH_HAS_FORTIFY_SOURCE 68 select ARCH_HAS_GCOV_PROFILE_ALL 69 select ARCH_HAS_GIGANTIC_PAGE 70 select ARCH_HAS_KCOV 71 select ARCH_HAS_PTE_SPECIAL 72 select ARCH_HAS_SET_MEMORY 73 select ARCH_HAS_STRICT_KERNEL_RWX 74 select ARCH_HAS_STRICT_MODULE_RWX 75 select ARCH_HAS_SYSCALL_WRAPPER 76 select ARCH_HAS_UBSAN_SANITIZE_ALL 77 select ARCH_HAVE_NMI_SAFE_CMPXCHG 78 select ARCH_INLINE_READ_LOCK 79 select ARCH_INLINE_READ_LOCK_BH 80 select ARCH_INLINE_READ_LOCK_IRQ 81 select ARCH_INLINE_READ_LOCK_IRQSAVE 82 select ARCH_INLINE_READ_TRYLOCK 83 select ARCH_INLINE_READ_UNLOCK 84 select ARCH_INLINE_READ_UNLOCK_BH 85 select ARCH_INLINE_READ_UNLOCK_IRQ 86 select ARCH_INLINE_READ_UNLOCK_IRQRESTORE 87 select ARCH_INLINE_SPIN_LOCK 88 select ARCH_INLINE_SPIN_LOCK_BH 89 select ARCH_INLINE_SPIN_LOCK_IRQ 90 select ARCH_INLINE_SPIN_LOCK_IRQSAVE 91 select ARCH_INLINE_SPIN_TRYLOCK 92 select ARCH_INLINE_SPIN_TRYLOCK_BH 93 select ARCH_INLINE_SPIN_UNLOCK 94 select ARCH_INLINE_SPIN_UNLOCK_BH 95 select ARCH_INLINE_SPIN_UNLOCK_IRQ 96 select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE 97 select ARCH_INLINE_WRITE_LOCK 98 select ARCH_INLINE_WRITE_LOCK_BH 99 select ARCH_INLINE_WRITE_LOCK_IRQ 100 select ARCH_INLINE_WRITE_LOCK_IRQSAVE 101 select ARCH_INLINE_WRITE_TRYLOCK 102 select ARCH_INLINE_WRITE_UNLOCK 103 select ARCH_INLINE_WRITE_UNLOCK_BH 104 select ARCH_INLINE_WRITE_UNLOCK_IRQ 105 select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE 106 select ARCH_KEEP_MEMBLOCK 107 select ARCH_SAVE_PAGE_KEYS if HIBERNATION 108 select ARCH_STACKWALK 109 select ARCH_SUPPORTS_ATOMIC_RMW 110 select ARCH_SUPPORTS_NUMA_BALANCING 111 select ARCH_USE_BUILTIN_BSWAP 112 select ARCH_USE_CMPXCHG_LOCKREF 113 select ARCH_WANTS_DYNAMIC_TASK_STRUCT 114 select ARCH_WANT_IPC_PARSE_VERSION 115 select BUILDTIME_EXTABLE_SORT 116 select CLONE_BACKWARDS2 117 select DYNAMIC_FTRACE if FUNCTION_TRACER 118 select GENERIC_CLOCKEVENTS 119 select GENERIC_CPU_AUTOPROBE 120 select GENERIC_CPU_VULNERABILITIES 121 select GENERIC_FIND_FIRST_BIT 122 select GENERIC_SMP_IDLE_THREAD 123 select GENERIC_TIME_VSYSCALL 124 select HAVE_ALIGNED_STRUCT_PAGE if SLUB 125 select HAVE_ARCH_AUDITSYSCALL 126 select HAVE_ARCH_JUMP_LABEL 127 select HAVE_ARCH_JUMP_LABEL_RELATIVE 128 select HAVE_ARCH_KASAN 129 select CPU_NO_EFFICIENT_FFS if !HAVE_MARCH_Z9_109_FEATURES 130 select HAVE_ARCH_SECCOMP_FILTER 131 select HAVE_ARCH_SOFT_DIRTY 132 select HAVE_ARCH_TRACEHOOK 133 select HAVE_ARCH_TRANSPARENT_HUGEPAGE 134 select HAVE_ARCH_VMAP_STACK 135 select HAVE_ASM_MODVERSIONS 136 select HAVE_EBPF_JIT if PACK_STACK && HAVE_MARCH_Z196_FEATURES 137 select HAVE_CMPXCHG_DOUBLE 138 select HAVE_CMPXCHG_LOCAL 139 select HAVE_COPY_THREAD_TLS 140 select HAVE_DEBUG_KMEMLEAK 141 select HAVE_DMA_CONTIGUOUS 142 select HAVE_DYNAMIC_FTRACE 143 select HAVE_DYNAMIC_FTRACE_WITH_REGS 144 select HAVE_FAST_GUP 145 select HAVE_EFFICIENT_UNALIGNED_ACCESS 146 select HAVE_FENTRY 147 select HAVE_FTRACE_MCOUNT_RECORD 148 select HAVE_FUNCTION_GRAPH_TRACER 149 select HAVE_FUNCTION_TRACER 150 select HAVE_FUTEX_CMPXCHG if FUTEX 151 select HAVE_GCC_PLUGINS 152 select HAVE_KERNEL_BZIP2 153 select HAVE_KERNEL_GZIP 154 select HAVE_KERNEL_LZ4 155 select HAVE_KERNEL_LZMA 156 select HAVE_KERNEL_LZO 157 select HAVE_KERNEL_UNCOMPRESSED 158 select HAVE_KERNEL_XZ 159 select HAVE_KPROBES 160 select HAVE_KRETPROBES 161 select HAVE_KVM 162 select HAVE_LIVEPATCH 163 select HAVE_PERF_REGS 164 select HAVE_PERF_USER_STACK_DUMP 165 select HAVE_MEMBLOCK_NODE_MAP 166 select HAVE_MEMBLOCK_PHYS_MAP 167 select HAVE_MMU_GATHER_NO_GATHER 168 select HAVE_MOD_ARCH_SPECIFIC 169 select HAVE_NOP_MCOUNT 170 select HAVE_OPROFILE 171 select HAVE_PCI 172 select HAVE_PERF_EVENTS 173 select HAVE_RCU_TABLE_FREE 174 select HAVE_REGS_AND_STACK_ACCESS_API 175 select HAVE_RSEQ 176 select HAVE_SYSCALL_TRACEPOINTS 177 select HAVE_VIRT_CPU_ACCOUNTING 178 select IOMMU_HELPER if PCI 179 select IOMMU_SUPPORT if PCI 180 select MODULES_USE_ELF_RELA 181 select NEED_DMA_MAP_STATE if PCI 182 select NEED_SG_DMA_LENGTH if PCI 183 select OLD_SIGACTION 184 select OLD_SIGSUSPEND3 185 select PCI_DOMAINS if PCI 186 select PCI_MSI if PCI 187 select SPARSE_IRQ 188 select SYSCTL_EXCEPTION_TRACE 189 select THREAD_INFO_IN_TASK 190 select TTY 191 select VIRT_CPU_ACCOUNTING 192 select ARCH_HAS_SCALED_CPUTIME 193 select HAVE_NMI 194 select ARCH_HAS_FORCE_DMA_UNENCRYPTED 195 select SWIOTLB 196 select GENERIC_ALLOCATOR 197 198 199config SCHED_OMIT_FRAME_POINTER 200 def_bool y 201 202config PGTABLE_LEVELS 203 int 204 default 5 205 206source "kernel/livepatch/Kconfig" 207 208menu "Processor type and features" 209 210config HAVE_MARCH_Z900_FEATURES 211 def_bool n 212 213config HAVE_MARCH_Z990_FEATURES 214 def_bool n 215 select HAVE_MARCH_Z900_FEATURES 216 217config HAVE_MARCH_Z9_109_FEATURES 218 def_bool n 219 select HAVE_MARCH_Z990_FEATURES 220 221config HAVE_MARCH_Z10_FEATURES 222 def_bool n 223 select HAVE_MARCH_Z9_109_FEATURES 224 225config HAVE_MARCH_Z196_FEATURES 226 def_bool n 227 select HAVE_MARCH_Z10_FEATURES 228 229config HAVE_MARCH_ZEC12_FEATURES 230 def_bool n 231 select HAVE_MARCH_Z196_FEATURES 232 233config HAVE_MARCH_Z13_FEATURES 234 def_bool n 235 select HAVE_MARCH_ZEC12_FEATURES 236 237config HAVE_MARCH_Z14_FEATURES 238 def_bool n 239 select HAVE_MARCH_Z13_FEATURES 240 241config HAVE_MARCH_Z15_FEATURES 242 def_bool n 243 select HAVE_MARCH_Z14_FEATURES 244 245choice 246 prompt "Processor type" 247 default MARCH_Z196 248 249config MARCH_Z900 250 bool "IBM zSeries model z800 and z900" 251 depends on !CC_IS_CLANG 252 select HAVE_MARCH_Z900_FEATURES 253 help 254 Select this to enable optimizations for model z800/z900 (2064 and 255 2066 series). This will enable some optimizations that are not 256 available on older ESA/390 (31 Bit) only CPUs. 257 258config MARCH_Z990 259 bool "IBM zSeries model z890 and z990" 260 depends on !CC_IS_CLANG 261 select HAVE_MARCH_Z990_FEATURES 262 help 263 Select this to enable optimizations for model z890/z990 (2084 and 264 2086 series). The kernel will be slightly faster but will not work 265 on older machines. 266 267config MARCH_Z9_109 268 bool "IBM System z9" 269 depends on !CC_IS_CLANG 270 select HAVE_MARCH_Z9_109_FEATURES 271 help 272 Select this to enable optimizations for IBM System z9 (2094 and 273 2096 series). The kernel will be slightly faster but will not work 274 on older machines. 275 276config MARCH_Z10 277 bool "IBM System z10" 278 select HAVE_MARCH_Z10_FEATURES 279 help 280 Select this to enable optimizations for IBM System z10 (2097 and 281 2098 series). The kernel will be slightly faster but will not work 282 on older machines. 283 284config MARCH_Z196 285 bool "IBM zEnterprise 114 and 196" 286 select HAVE_MARCH_Z196_FEATURES 287 help 288 Select this to enable optimizations for IBM zEnterprise 114 and 196 289 (2818 and 2817 series). The kernel will be slightly faster but will 290 not work on older machines. 291 292config MARCH_ZEC12 293 bool "IBM zBC12 and zEC12" 294 select HAVE_MARCH_ZEC12_FEATURES 295 help 296 Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and 297 2827 series). The kernel will be slightly faster but will not work on 298 older machines. 299 300config MARCH_Z13 301 bool "IBM z13s and z13" 302 select HAVE_MARCH_Z13_FEATURES 303 help 304 Select this to enable optimizations for IBM z13s and z13 (2965 and 305 2964 series). The kernel will be slightly faster but will not work on 306 older machines. 307 308config MARCH_Z14 309 bool "IBM z14 ZR1 and z14" 310 select HAVE_MARCH_Z14_FEATURES 311 help 312 Select this to enable optimizations for IBM z14 ZR1 and z14 (3907 313 and 3906 series). The kernel will be slightly faster but will not 314 work on older machines. 315 316config MARCH_Z15 317 bool "IBM z15" 318 select HAVE_MARCH_Z15_FEATURES 319 help 320 Select this to enable optimizations for IBM z15 (8562 321 and 8561 series). The kernel will be slightly faster but will not 322 work on older machines. 323 324endchoice 325 326config MARCH_Z900_TUNE 327 def_bool TUNE_Z900 || MARCH_Z900 && TUNE_DEFAULT 328 329config MARCH_Z990_TUNE 330 def_bool TUNE_Z990 || MARCH_Z990 && TUNE_DEFAULT 331 332config MARCH_Z9_109_TUNE 333 def_bool TUNE_Z9_109 || MARCH_Z9_109 && TUNE_DEFAULT 334 335config MARCH_Z10_TUNE 336 def_bool TUNE_Z10 || MARCH_Z10 && TUNE_DEFAULT 337 338config MARCH_Z196_TUNE 339 def_bool TUNE_Z196 || MARCH_Z196 && TUNE_DEFAULT 340 341config MARCH_ZEC12_TUNE 342 def_bool TUNE_ZEC12 || MARCH_ZEC12 && TUNE_DEFAULT 343 344config MARCH_Z13_TUNE 345 def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT 346 347config MARCH_Z14_TUNE 348 def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT 349 350config MARCH_Z15_TUNE 351 def_bool TUNE_Z15 || MARCH_Z15 && TUNE_DEFAULT 352 353choice 354 prompt "Tune code generation" 355 default TUNE_DEFAULT 356 help 357 Cause the compiler to tune (-mtune) the generated code for a machine. 358 This will make the code run faster on the selected machine but 359 somewhat slower on other machines. 360 This option only changes how the compiler emits instructions, not the 361 selection of instructions itself, so the resulting kernel will run on 362 all other machines. 363 364config TUNE_DEFAULT 365 bool "Default" 366 help 367 Tune the generated code for the target processor for which the kernel 368 will be compiled. 369 370config TUNE_Z900 371 bool "IBM zSeries model z800 and z900" 372 depends on !CC_IS_CLANG 373 374config TUNE_Z990 375 bool "IBM zSeries model z890 and z990" 376 depends on !CC_IS_CLANG 377 378config TUNE_Z9_109 379 bool "IBM System z9" 380 depends on !CC_IS_CLANG 381 382config TUNE_Z10 383 bool "IBM System z10" 384 385config TUNE_Z196 386 bool "IBM zEnterprise 114 and 196" 387 388config TUNE_ZEC12 389 bool "IBM zBC12 and zEC12" 390 391config TUNE_Z13 392 bool "IBM z13" 393 394config TUNE_Z14 395 bool "IBM z14" 396 397config TUNE_Z15 398 bool "IBM z15" 399 400endchoice 401 402config 64BIT 403 def_bool y 404 405config COMPAT 406 def_bool y 407 prompt "Kernel support for 31 bit emulation" 408 select COMPAT_BINFMT_ELF if BINFMT_ELF 409 select ARCH_WANT_OLD_COMPAT_IPC 410 select COMPAT_OLD_SIGACTION 411 select HAVE_UID16 412 depends on MULTIUSER 413 help 414 Select this option if you want to enable your system kernel to 415 handle system-calls from ELF binaries for 31 bit ESA. This option 416 (and some other stuff like libraries and such) is needed for 417 executing 31 bit applications. It is safe to say "Y". 418 419config COMPAT_VDSO 420 def_bool COMPAT && !CC_IS_CLANG 421 422config SYSVIPC_COMPAT 423 def_bool y if COMPAT && SYSVIPC 424 425config SMP 426 def_bool y 427 428config NR_CPUS 429 int "Maximum number of CPUs (2-512)" 430 range 2 512 431 default "64" 432 help 433 This allows you to specify the maximum number of CPUs which this 434 kernel will support. The maximum supported value is 512 and the 435 minimum value which makes sense is 2. 436 437 This is purely to save memory - each supported CPU adds 438 approximately sixteen kilobytes to the kernel image. 439 440config HOTPLUG_CPU 441 def_bool y 442 443# Some NUMA nodes have memory ranges that span 444# other nodes. Even though a pfn is valid and 445# between a node's start and end pfns, it may not 446# reside on that node. See memmap_init_zone() 447# for details. <- They meant memory holes! 448config NODES_SPAN_OTHER_NODES 449 def_bool NUMA 450 451config NUMA 452 bool "NUMA support" 453 depends on SCHED_TOPOLOGY 454 default n 455 help 456 Enable NUMA support 457 458 This option adds NUMA support to the kernel. 459 460 An operation mode can be selected by appending 461 numa=<method> to the kernel command line. 462 463 The default behaviour is identical to appending numa=plain to 464 the command line. This will create just one node with all 465 available memory and all CPUs in it. 466 467config NODES_SHIFT 468 int "Maximum NUMA nodes (as a power of 2)" 469 range 1 10 470 depends on NUMA 471 default "4" 472 help 473 Specify the maximum number of NUMA nodes available on the target 474 system. Increases memory reserved to accommodate various tables. 475 476menu "Select NUMA modes" 477 depends on NUMA 478 479config NUMA_EMU 480 bool "NUMA emulation" 481 default y 482 help 483 Numa emulation mode will split the available system memory into 484 equal chunks which then are distributed over the configured number 485 of nodes in a round-robin manner. 486 487 The number of fake nodes is limited by the number of available memory 488 chunks (i.e. memory size / fake size) and the number of supported 489 nodes in the kernel. 490 491 The CPUs are assigned to the nodes in a way that partially respects 492 the original machine topology (if supported by the machine). 493 Fair distribution of the CPUs is not guaranteed. 494 495config EMU_SIZE 496 hex "NUMA emulation memory chunk size" 497 default 0x10000000 498 range 0x400000 0x100000000 499 depends on NUMA_EMU 500 help 501 Select the default size by which the memory is chopped and then 502 assigned to emulated NUMA nodes. 503 504 This can be overridden by specifying 505 506 emu_size=<n> 507 508 on the kernel command line where also suffixes K, M, G, and T are 509 supported. 510 511endmenu 512 513config SCHED_SMT 514 def_bool n 515 516config SCHED_MC 517 def_bool n 518 519config SCHED_BOOK 520 def_bool n 521 522config SCHED_DRAWER 523 def_bool n 524 525config SCHED_TOPOLOGY 526 def_bool y 527 prompt "Topology scheduler support" 528 select SCHED_SMT 529 select SCHED_MC 530 select SCHED_BOOK 531 select SCHED_DRAWER 532 help 533 Topology scheduler support improves the CPU scheduler's decision 534 making when dealing with machines that have multi-threading, 535 multiple cores or multiple books. 536 537source "kernel/Kconfig.hz" 538 539config KEXEC 540 def_bool y 541 select KEXEC_CORE 542 543config KEXEC_FILE 544 bool "kexec file based system call" 545 select KEXEC_CORE 546 select BUILD_BIN2C 547 depends on CRYPTO 548 depends on CRYPTO_SHA256 549 depends on CRYPTO_SHA256_S390 550 help 551 Enable the kexec file based system call. In contrast to the normal 552 kexec system call this system call takes file descriptors for the 553 kernel and initramfs as arguments. 554 555config ARCH_HAS_KEXEC_PURGATORY 556 def_bool y 557 depends on KEXEC_FILE 558 559config KEXEC_VERIFY_SIG 560 bool "Verify kernel signature during kexec_file_load() syscall" 561 depends on KEXEC_FILE && SYSTEM_DATA_VERIFICATION 562 help 563 This option makes kernel signature verification mandatory for 564 the kexec_file_load() syscall. 565 566 In addition to that option, you need to enable signature 567 verification for the corresponding kernel image type being 568 loaded in order for this to work. 569 570config ARCH_RANDOM 571 def_bool y 572 prompt "s390 architectural random number generation API" 573 help 574 Enable the s390 architectural random number generation API 575 to provide random data for all consumers within the Linux 576 kernel. 577 578 When enabled the arch_random_* functions declared in linux/random.h 579 are implemented. The implementation is based on the s390 CPACF 580 instruction subfunction TRNG which provides a real true random 581 number generator. 582 583 If unsure, say Y. 584 585config KERNEL_NOBP 586 def_bool n 587 prompt "Enable modified branch prediction for the kernel by default" 588 help 589 If this option is selected the kernel will switch to a modified 590 branch prediction mode if the firmware interface is available. 591 The modified branch prediction mode improves the behaviour in 592 regard to speculative execution. 593 594 With the option enabled the kernel parameter "nobp=0" or "nospec" 595 can be used to run the kernel in the normal branch prediction mode. 596 597 With the option disabled the modified branch prediction mode is 598 enabled with the "nobp=1" kernel parameter. 599 600 If unsure, say N. 601 602config EXPOLINE 603 def_bool n 604 prompt "Avoid speculative indirect branches in the kernel" 605 help 606 Compile the kernel with the expoline compiler options to guard 607 against kernel-to-user data leaks by avoiding speculative indirect 608 branches. 609 Requires a compiler with -mindirect-branch=thunk support for full 610 protection. The kernel may run slower. 611 612 If unsure, say N. 613 614choice 615 prompt "Expoline default" 616 depends on EXPOLINE 617 default EXPOLINE_FULL 618 619config EXPOLINE_OFF 620 bool "spectre_v2=off" 621 622config EXPOLINE_AUTO 623 bool "spectre_v2=auto" 624 625config EXPOLINE_FULL 626 bool "spectre_v2=on" 627 628endchoice 629 630config RELOCATABLE 631 bool "Build a relocatable kernel" 632 select MODULE_REL_CRCS if MODVERSIONS 633 default 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 kernel is linked as a position-independent executable (PIE) 638 and contains dynamic relocations which are processed early in the 639 bootup process. 640 The relocations make the kernel image about 15% larger (compressed 641 10%), but are discarded at runtime. 642 643config RANDOMIZE_BASE 644 bool "Randomize the address of the kernel image (KASLR)" 645 depends on RELOCATABLE 646 default y 647 help 648 In support of Kernel Address Space Layout Randomization (KASLR), 649 this randomizes the address at which the kernel image is loaded, 650 as a security feature that deters exploit attempts relying on 651 knowledge of the location of kernel internals. 652 653endmenu 654 655menu "Memory setup" 656 657config ARCH_SPARSEMEM_ENABLE 658 def_bool y 659 select SPARSEMEM_VMEMMAP_ENABLE 660 select SPARSEMEM_VMEMMAP 661 662config ARCH_SPARSEMEM_DEFAULT 663 def_bool y 664 665config ARCH_ENABLE_MEMORY_HOTPLUG 666 def_bool y if SPARSEMEM 667 668config ARCH_ENABLE_MEMORY_HOTREMOVE 669 def_bool y 670 671config ARCH_ENABLE_SPLIT_PMD_PTLOCK 672 def_bool y 673 674config FORCE_MAX_ZONEORDER 675 int 676 default "9" 677 678config MAX_PHYSMEM_BITS 679 int "Maximum size of supported physical memory in bits (42-53)" 680 range 42 53 681 default "46" 682 help 683 This option specifies the maximum supported size of physical memory 684 in bits. Supported is any size between 2^42 (4TB) and 2^53 (8PB). 685 Increasing the number of bits also increases the kernel image size. 686 By default 46 bits (64TB) are supported. 687 688config PACK_STACK 689 def_bool y 690 prompt "Pack kernel stack" 691 help 692 This option enables the compiler option -mkernel-backchain if it 693 is available. If the option is available the compiler supports 694 the new stack layout which dramatically reduces the minimum stack 695 frame size. With an old compiler a non-leaf function needs a 696 minimum of 96 bytes on 31 bit and 160 bytes on 64 bit. With 697 -mkernel-backchain the minimum size drops to 16 byte on 31 bit 698 and 24 byte on 64 bit. 699 700 Say Y if you are unsure. 701 702config CHECK_STACK 703 def_bool y 704 depends on !VMAP_STACK 705 prompt "Detect kernel stack overflow" 706 help 707 This option enables the compiler option -mstack-guard and 708 -mstack-size if they are available. If the compiler supports them 709 it will emit additional code to each function prolog to trigger 710 an illegal operation if the kernel stack is about to overflow. 711 712 Say N if you are unsure. 713 714config STACK_GUARD 715 int "Size of the guard area (128-1024)" 716 range 128 1024 717 depends on CHECK_STACK 718 default "256" 719 help 720 This allows you to specify the size of the guard area at the lower 721 end of the kernel stack. If the kernel stack points into the guard 722 area on function entry an illegal operation is triggered. The size 723 needs to be a power of 2. Please keep in mind that the size of an 724 interrupt frame is 184 bytes for 31 bit and 328 bytes on 64 bit. 725 The minimum size for the stack guard should be 256 for 31 bit and 726 512 for 64 bit. 727 728config WARN_DYNAMIC_STACK 729 def_bool n 730 prompt "Emit compiler warnings for function with dynamic stack usage" 731 help 732 This option enables the compiler option -mwarn-dynamicstack. If the 733 compiler supports this options generates warnings for functions 734 that dynamically allocate stack space using alloca. 735 736 Say N if you are unsure. 737 738endmenu 739 740menu "I/O subsystem" 741 742config QDIO 743 def_tristate y 744 prompt "QDIO support" 745 ---help--- 746 This driver provides the Queued Direct I/O base support for 747 IBM System z. 748 749 To compile this driver as a module, choose M here: the 750 module will be called qdio. 751 752 If unsure, say Y. 753 754if PCI 755 756config PCI_NR_FUNCTIONS 757 int "Maximum number of PCI functions (1-4096)" 758 range 1 4096 759 default "128" 760 help 761 This allows you to specify the maximum number of PCI functions which 762 this kernel will support. 763 764endif # PCI 765 766config HAS_IOMEM 767 def_bool PCI 768 769config CHSC_SCH 770 def_tristate m 771 prompt "Support for CHSC subchannels" 772 help 773 This driver allows usage of CHSC subchannels. A CHSC subchannel 774 is usually present on LPAR only. 775 The driver creates a device /dev/chsc, which may be used to 776 obtain I/O configuration information about the machine and 777 to issue asynchronous chsc commands (DANGEROUS). 778 You will usually only want to use this interface on a special 779 LPAR designated for system management. 780 781 To compile this driver as a module, choose M here: the 782 module will be called chsc_sch. 783 784 If unsure, say N. 785 786config SCM_BUS 787 def_bool y 788 prompt "SCM bus driver" 789 help 790 Bus driver for Storage Class Memory. 791 792config EADM_SCH 793 def_tristate m 794 prompt "Support for EADM subchannels" 795 depends on SCM_BUS 796 help 797 This driver allows usage of EADM subchannels. EADM subchannels act 798 as a communication vehicle for SCM increments. 799 800 To compile this driver as a module, choose M here: the 801 module will be called eadm_sch. 802 803config VFIO_CCW 804 def_tristate n 805 prompt "Support for VFIO-CCW subchannels" 806 depends on S390_CCW_IOMMU && VFIO_MDEV 807 help 808 This driver allows usage of I/O subchannels via VFIO-CCW. 809 810 To compile this driver as a module, choose M here: the 811 module will be called vfio_ccw. 812 813config VFIO_AP 814 def_tristate n 815 prompt "VFIO support for AP devices" 816 depends on S390_AP_IOMMU && VFIO_MDEV_DEVICE && KVM 817 help 818 This driver grants access to Adjunct Processor (AP) devices 819 via the VFIO mediated device interface. 820 821 To compile this driver as a module, choose M here: the module 822 will be called vfio_ap. 823 824endmenu 825 826menu "Dump support" 827 828config CRASH_DUMP 829 bool "kernel crash dumps" 830 select KEXEC 831 help 832 Generate crash dump after being started by kexec. 833 Crash dump kernels are loaded in the main kernel with kexec-tools 834 into a specially reserved region and then later executed after 835 a crash by kdump/kexec. 836 Refer to <file:Documentation/s390/zfcpdump.rst> for more details on this. 837 This option also enables s390 zfcpdump. 838 See also <file:Documentation/s390/zfcpdump.rst> 839 840endmenu 841 842config SECCOMP 843 def_bool y 844 prompt "Enable seccomp to safely compute untrusted bytecode" 845 depends on PROC_FS 846 help 847 This kernel feature is useful for number crunching applications 848 that may need to compute untrusted bytecode during their 849 execution. By using pipes or other transports made available to 850 the process as file descriptors supporting the read/write 851 syscalls, it's possible to isolate those applications in 852 their own address space using seccomp. Once seccomp is 853 enabled via /proc/<pid>/seccomp, it cannot be disabled 854 and the task is only allowed to execute a few safe syscalls 855 defined by each seccomp mode. 856 857 If unsure, say Y. 858 859menu "Power Management" 860 861config ARCH_HIBERNATION_POSSIBLE 862 def_bool y 863 864source "kernel/power/Kconfig" 865 866endmenu 867 868config CCW 869 def_bool y 870 871config HAVE_PNETID 872 tristate 873 default (SMC || CCWGROUP) 874 875menu "Virtualization" 876 877config PROTECTED_VIRTUALIZATION_GUEST 878 def_bool n 879 prompt "Protected virtualization guest support" 880 help 881 Select this option, if you want to be able to run this 882 kernel as a protected virtualization KVM guest. 883 Protected virtualization capable machines have a mini hypervisor 884 located at machine level (an ultravisor). With help of the 885 Ultravisor, KVM will be able to run "protected" VMs, special 886 VMs whose memory and management data are unavailable to KVM. 887 888config PFAULT 889 def_bool y 890 prompt "Pseudo page fault support" 891 help 892 Select this option, if you want to use PFAULT pseudo page fault 893 handling under VM. If running native or in LPAR, this option 894 has no effect. If your VM does not support PFAULT, PAGEEX 895 pseudo page fault handling will be used. 896 Note that VM 4.2 supports PFAULT but has a bug in its 897 implementation that causes some problems. 898 Everybody who wants to run Linux under VM != VM4.2 should select 899 this option. 900 901config CMM 902 def_tristate n 903 prompt "Cooperative memory management" 904 help 905 Select this option, if you want to enable the kernel interface 906 to reduce the memory size of the system. This is accomplished 907 by allocating pages of memory and put them "on hold". This only 908 makes sense for a system running under VM where the unused pages 909 will be reused by VM for other guest systems. The interface 910 allows an external monitor to balance memory of many systems. 911 Everybody who wants to run Linux under VM should select this 912 option. 913 914config CMM_IUCV 915 def_bool y 916 prompt "IUCV special message interface to cooperative memory management" 917 depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV) 918 help 919 Select this option to enable the special message interface to 920 the cooperative memory management. 921 922config APPLDATA_BASE 923 def_bool n 924 prompt "Linux - VM Monitor Stream, base infrastructure" 925 depends on PROC_FS 926 help 927 This provides a kernel interface for creating and updating z/VM APPLDATA 928 monitor records. The monitor records are updated at certain time 929 intervals, once the timer is started. 930 Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer, 931 i.e. enables or disables monitoring on the Linux side. 932 A custom interval value (in seconds) can be written to 933 /proc/appldata/interval. 934 935 Defaults are 60 seconds interval and timer off. 936 The /proc entries can also be read from, showing the current settings. 937 938config APPLDATA_MEM 939 def_tristate m 940 prompt "Monitor memory management statistics" 941 depends on APPLDATA_BASE && VM_EVENT_COUNTERS 942 help 943 This provides memory management related data to the Linux - VM Monitor 944 Stream, like paging/swapping rate, memory utilisation, etc. 945 Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM 946 APPLDATA monitor record, i.e. enables or disables monitoring this record 947 on the z/VM side. 948 949 Default is disabled. 950 The /proc entry can also be read from, showing the current settings. 951 952 This can also be compiled as a module, which will be called 953 appldata_mem.o. 954 955config APPLDATA_OS 956 def_tristate m 957 prompt "Monitor OS statistics" 958 depends on APPLDATA_BASE 959 help 960 This provides OS related data to the Linux - VM Monitor Stream, like 961 CPU utilisation, etc. 962 Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM 963 APPLDATA monitor record, i.e. enables or disables monitoring this record 964 on the z/VM side. 965 966 Default is disabled. 967 This can also be compiled as a module, which will be called 968 appldata_os.o. 969 970config APPLDATA_NET_SUM 971 def_tristate m 972 prompt "Monitor overall network statistics" 973 depends on APPLDATA_BASE && NET 974 help 975 This provides network related data to the Linux - VM Monitor Stream, 976 currently there is only a total sum of network I/O statistics, no 977 per-interface data. 978 Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM 979 APPLDATA monitor record, i.e. enables or disables monitoring this record 980 on the z/VM side. 981 982 Default is disabled. 983 This can also be compiled as a module, which will be called 984 appldata_net_sum.o. 985 986config S390_HYPFS_FS 987 def_bool y 988 prompt "s390 hypervisor file system support" 989 select SYS_HYPERVISOR 990 help 991 This is a virtual file system intended to provide accounting 992 information in an s390 hypervisor environment. 993 994source "arch/s390/kvm/Kconfig" 995 996config S390_GUEST 997 def_bool y 998 prompt "s390 support for virtio devices" 999 select TTY 1000 select VIRTUALIZATION 1001 select VIRTIO 1002 select VIRTIO_CONSOLE 1003 help 1004 Enabling this option adds support for virtio based paravirtual device 1005 drivers on s390. 1006 1007 Select this option if you want to run the kernel as a guest under 1008 the KVM hypervisor. 1009 1010endmenu 1011