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