1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21da177e4SLinus Torvaldsconfig MMU 361d48c2cSMartin Schwidefsky def_bool y 41da177e4SLinus Torvalds 52fd92273SHeiko Carstensconfig CPU_BIG_ENDIAN 62fd92273SHeiko Carstens def_bool y 72fd92273SHeiko Carstens 82b105ff9SIngo Molnarconfig LOCKDEP_SUPPORT 961d48c2cSMartin Schwidefsky def_bool y 102b105ff9SIngo Molnar 115bdc9b44SHeiko Carstensconfig STACKTRACE_SUPPORT 1261d48c2cSMartin Schwidefsky def_bool y 135bdc9b44SHeiko Carstens 14f0d1b0b3SDavid Howellsconfig ARCH_HAS_ILOG2_U32 156f9a3c33SMartin Schwidefsky def_bool n 16f0d1b0b3SDavid Howells 17f0d1b0b3SDavid Howellsconfig ARCH_HAS_ILOG2_U64 186f9a3c33SMartin Schwidefsky def_bool n 19f0d1b0b3SDavid Howells 203bb11234SAlexander Gordeevconfig ARCH_PROC_KCORE_TEXT 213bb11234SAlexander Gordeev def_bool y 223bb11234SAlexander Gordeev 237e33db4eSAkinobu Mitaconfig GENERIC_HWEIGHT 247c679286SHeiko Carstens def_bool !HAVE_MARCH_Z196_FEATURES 257e33db4eSAkinobu Mita 26c0007f1aSHeiko Carstensconfig GENERIC_BUG 276f9a3c33SMartin Schwidefsky def_bool y if BUG 28c0007f1aSHeiko Carstens 2952499f40SHeiko Carstensconfig GENERIC_BUG_RELATIVE_POINTERS 3052499f40SHeiko Carstens def_bool y 3152499f40SHeiko Carstens 32b6b40c53SMartin Schwidefskyconfig GENERIC_LOCKBREAK 33114b9df4SEric Farman def_bool y if PREEMPTION 34b6b40c53SMartin Schwidefsky 35402b0862SCarsten Otteconfig PGSTE 366f9a3c33SMartin Schwidefsky def_bool y if KVM 37402b0862SCarsten Otte 38843c48fdSJan Glauberconfig AUDIT_ARCH 39843c48fdSJan Glauber def_bool y 40843c48fdSJan Glauber 41ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP 42c8717a3dSJan Glauber def_bool y 43c8717a3dSJan Glauber 442a0a5b22SJan Willekeconfig ARCH_SUPPORTS_UPROBES 455a79859aSHeiko Carstens def_bool y 462a0a5b22SJan Willeke 475e785963SVasily Gorbikconfig KASAN_SHADOW_OFFSET 485e785963SVasily Gorbik hex 495e785963SVasily Gorbik depends on KASAN 509a39abb7SVasily Gorbik default 0x1C000000000000 515e785963SVasily Gorbik 52*6c4e0cb3SHeiko Carstensconfig CC_HAS_BUILTIN_FFS 53*6c4e0cb3SHeiko Carstens def_bool !(CC_IS_GCC && GCC_VERSION < 160000) 54*6c4e0cb3SHeiko Carstens help 55*6c4e0cb3SHeiko Carstens GCC versions before 16.0.0 generate library calls to ffs() 56*6c4e0cb3SHeiko Carstens for __builtin_ffs() even when __has_builtin(__builtin_ffs) 57*6c4e0cb3SHeiko Carstens is true. 58*6c4e0cb3SHeiko Carstens 59579a6633SHeiko Carstensconfig CC_ASM_FLAG_OUTPUT_BROKEN 60e7583c5fSHeiko Carstens def_bool CC_IS_GCC && GCC_VERSION < 140200 61e7583c5fSHeiko Carstens help 62e7583c5fSHeiko Carstens GCC versions before 14.2.0 may die with an internal 63e7583c5fSHeiko Carstens compiler error in some configurations if flag output 64e7583c5fSHeiko Carstens operands are used within inline assemblies. 65e7583c5fSHeiko Carstens 66f340d270SHeiko Carstensconfig CC_HAS_ASM_AOR_FORMAT_FLAGS 67f340d270SHeiko Carstens def_bool !(CC_IS_CLANG && CLANG_VERSION < 190100) 68f340d270SHeiko Carstens help 69f340d270SHeiko Carstens Clang versions before 19.1.0 do not support A, 70f340d270SHeiko Carstens O, and R inline assembly format flags. 71f340d270SHeiko Carstens 72347a8dc3SMartin Schwidefskyconfig CC_HAS_STACKPROTECTOR_GLOBAL 7361d48c2cSMartin Schwidefsky def_bool $(cc-option, -mstack-protector-guard=global -mstack-protector-guard-record) 74129975e7SHeiko Carstens 75129975e7SHeiko Carstensconfig S390 76129975e7SHeiko Carstens def_bool y 77129975e7SHeiko Carstens # 7812700c17SArnd Bergmann # Note: keep this list sorted alphabetically 7996c0a6a7SHeiko Carstens # 80708b1376SVasily Gorbik imply IMA_SECURE_AND_OR_TRUSTED_BOOT 8191024b3cSAnshuman Khandual select ALTERNATE_USER_ADDRESS_SPACE 8291024b3cSAnshuman Khandual select ARCH_32BIT_USTAT_F_TINODE 83cebc774fSAnshuman Khandual select ARCH_CORRECT_STACKTRACE_ON_KRETPROBE 8410dd5a00SGerald Schaefer select ARCH_ENABLE_MEMORY_HOTPLUG if SPARSEMEM 853bcc8a1aSHeiko Carstens select ARCH_ENABLE_MEMORY_HOTREMOVE 862792d84eSKees Cook select ARCH_ENABLE_SPLIT_PMD_PTLOCK if PGTABLE_LEVELS > 2 875f58bde7SHeiko Carstens select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE 88399145f9SAnshuman Khandual select ARCH_HAS_CPU_FINALIZE_INIT 8908c8e685SHeiko Carstens select ARCH_HAS_CURRENT_STACK_POINTER 9021266be9SDan Williams select ARCH_HAS_DEBUG_VIRTUAL 91de6c85bfSChristoph Hellwig select ARCH_HAS_DEBUG_VM_PGTABLE 922b68f6caSKees Cook select ARCH_HAS_DEBUG_WX 93129975e7SHeiko Carstens select ARCH_HAS_DEVMEM_IS_ALLOWED 9479962038SHeiko Carstens select ARCH_HAS_DMA_OPS if PCI 95957e3facSRiku Voipio select ARCH_HAS_ELF_RANDOMIZE 964eb0716eSAlexandre Ghiti select ARCH_HAS_FORCE_DMA_UNENCRYPTED 97907fa061SHeiko Carstens select ARCH_HAS_FORTIFY_SOURCE 98e7615c92SHeiko Carstens select ARCH_HAS_GCOV_PROFILE_ALL 990c9c1d56SThiago Jung Bauermann select ARCH_HAS_GIGANTIC_PAGE 10085bf3785SPaul E. McKenney select ARCH_HAS_KCOV 1019de3e4bfSHeiko Carstens select ARCH_HAS_MEMBARRIER_SYNC_CORE 102f9aad622SAnshuman Khandual select ARCH_HAS_MEM_ENCRYPT 1033010a5eaSLaurent Dufour select ARCH_HAS_NMI_SAFE_THIS_CPU_OPS 104129975e7SHeiko Carstens select ARCH_HAS_PREEMPT_LAZY 1050490d6d7SHeiko Carstens select ARCH_HAS_PTDUMP 106d2852a22SDaniel Borkmann select ARCH_HAS_PTE_SPECIAL 107ad21fc4fSLaura Abbott select ARCH_HAS_SCALED_CPUTIME 108ad21fc4fSLaura Abbott select ARCH_HAS_SET_DIRECT_MAP 109aa0d6e70SArnd Bergmann select ARCH_HAS_SET_MEMORY 110918327e9SKees Cook select ARCH_HAS_STRICT_KERNEL_RWX 111a812eee0SNam Cao select ARCH_HAS_STRICT_MODULE_RWX 1120e0d04a8SHeiko Carstens select ARCH_HAS_SYSCALL_WRAPPER 113ccb0aa03SSteffen Maier select ARCH_HAS_UBSAN 1146beb0009SThomas Gleixner select ARCH_HAS_VDSO_TIME_DATA 1156beb0009SThomas Gleixner select ARCH_HAVE_NMI_SAFE_CMPXCHG 1166beb0009SThomas Gleixner select ARCH_HAVE_TRACE_MMIO_ACCESS 1176beb0009SThomas Gleixner select ARCH_INLINE_READ_LOCK 1180e0d04a8SHeiko Carstens select ARCH_INLINE_READ_LOCK_BH 1196beb0009SThomas Gleixner select ARCH_INLINE_READ_LOCK_IRQ 1206beb0009SThomas Gleixner select ARCH_INLINE_READ_LOCK_IRQSAVE 1216beb0009SThomas Gleixner select ARCH_INLINE_READ_TRYLOCK 1226beb0009SThomas Gleixner select ARCH_INLINE_READ_UNLOCK 1230e0d04a8SHeiko Carstens select ARCH_INLINE_READ_UNLOCK_BH 1240e0d04a8SHeiko Carstens select ARCH_INLINE_READ_UNLOCK_IRQ 1250e0d04a8SHeiko Carstens select ARCH_INLINE_READ_UNLOCK_IRQRESTORE 1260e0d04a8SHeiko Carstens select ARCH_INLINE_SPIN_LOCK 1270e0d04a8SHeiko Carstens select ARCH_INLINE_SPIN_LOCK_BH 1280e0d04a8SHeiko Carstens select ARCH_INLINE_SPIN_LOCK_IRQ 1290e0d04a8SHeiko Carstens select ARCH_INLINE_SPIN_LOCK_IRQSAVE 1300e0d04a8SHeiko Carstens select ARCH_INLINE_SPIN_TRYLOCK 1310e0d04a8SHeiko Carstens select ARCH_INLINE_SPIN_TRYLOCK_BH 1320e0d04a8SHeiko Carstens select ARCH_INLINE_SPIN_UNLOCK 1336beb0009SThomas Gleixner select ARCH_INLINE_SPIN_UNLOCK_BH 1346beb0009SThomas Gleixner select ARCH_INLINE_SPIN_UNLOCK_IRQ 1356beb0009SThomas Gleixner select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE 1366beb0009SThomas Gleixner select ARCH_INLINE_WRITE_LOCK 1370e0d04a8SHeiko Carstens select ARCH_INLINE_WRITE_LOCK_BH 1386beb0009SThomas Gleixner select ARCH_INLINE_WRITE_LOCK_IRQ 1396beb0009SThomas Gleixner select ARCH_INLINE_WRITE_LOCK_IRQSAVE 1406beb0009SThomas Gleixner select ARCH_INLINE_WRITE_TRYLOCK 1416beb0009SThomas Gleixner select ARCH_INLINE_WRITE_UNLOCK 1429eda317cSSumanth Korikkar select ARCH_INLINE_WRITE_UNLOCK_BH 14359b5ed40SHao Ge select ARCH_INLINE_WRITE_UNLOCK_IRQ 144e991e5bbSVasily Gorbik select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE 14536e7fdaaSChristian Borntraeger select ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE 1465d6ad668SMike Rapoport select ARCH_STACKWALK 147bb9c14adSDavid Hildenbrand select ARCH_SUPPORTS_ATOMIC_RMW 148fbac266fSHeiko Carstens select ARCH_SUPPORTS_DEBUG_PAGEALLOC 14924e3f9fbSHeiko Carstens select ARCH_SUPPORTS_HUGETLBFS 150a763bc8bSPhilipp Hachtmann select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 && CC_IS_CLANG 151e06f47a1SHeiko Carstens select ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS 152295d8fa9SChristian Borntraeger select ARCH_SUPPORTS_NUMA_BALANCING 153efc1d23bSHeiko Carstens select ARCH_SUPPORTS_PER_VMA_LOCK 154ccf7c3fbSHeiko Carstens select ARCH_USE_BUILTIN_BSWAP 15551c2ee6dSNick Desaulniers select ARCH_USE_CMPXCHG_LOCKREF 156d2abfbe4SHeiko Carstens select ARCH_USE_SYM_ANNOTATIONS 1576ca6b581SHeiko Carstens select ARCH_WANTS_NO_INSTR 158fe201641SHeiko Carstens select ARCH_WANT_DEFAULT_BPF_JIT 1592f0584f3SRick Edgecombe select ARCH_WANT_IPC_PARSE_VERSION 160acb7c202SNathan Chancellor select ARCH_WANT_IRQS_OFF_ACTIVATE_MM 16110dd5a00SGerald Schaefer select ARCH_WANT_KERNEL_PMD_MKWRITE 16210916706SShile Zhang select ARCH_WANT_LD_ORPHAN_WARN 1630e0d04a8SHeiko Carstens select ARCH_WANTS_THP_SWAP 164802ba53eSHeiko Carstens select BUILDTIME_TABLE_SORT 1655d6a0163SHeiko Carstens select CLONE_BACKWARDS2 1666ef55060SHeiko Carstens select DCACHE_WORD_ACCESS if !KMSAN 1676ef55060SHeiko Carstens select DYNAMIC_FTRACE if FUNCTION_TRACER 168129975e7SHeiko Carstens select FUNCTION_ALIGNMENT_8B if CC_IS_GCC 1694a39f12eSSven Schnelle select FUNCTION_ALIGNMENT_16B if !CC_IS_GCC 1708f00b3e2SHendrik Brueckner select GENERIC_ALLOCATOR 171d424986fSMartin Schwidefsky select GENERIC_CPU_DEVICES 17256e62a73SSven Schnelle select GENERIC_CPU_AUTOPROBE 1734bff8cb5SSven Schnelle select GENERIC_CPU_VULNERABILITIES 174e80e7813SThomas Gleixner select GENERIC_ENTRY 17579c74ecbSMartin Schwidefsky select GENERIC_GETTIMEOFDAY 176b43b3fffSBaoquan He select GENERIC_SMP_IDLE_THREAD 1772a19be61SVlastimil Babka select GENERIC_TIME_VSYSCALL 1787a017721SAKASHI Takahiro select GENERIC_IOREMAP if PCI 1795a79859aSHeiko Carstens select HAVE_ALIGNED_STRUCT_PAGE 18013ddb52cSHeiko Carstens select HAVE_ARCH_AUDITSYSCALL 18142db5ed8SVasily Gorbik select HAVE_ARCH_JUMP_LABEL 1823e39ce26SVasily Gorbik select HAVE_ARCH_JUMP_LABEL_RELATIVE 183e37b3dd0SIlya Leoshkevich select HAVE_ARCH_KASAN 1843a8f6f3bSIlya Leoshkevich select HAVE_ARCH_KASAN_VMALLOC 185e41ba111SSven Schnelle select HAVE_ARCH_KCSAN 18657fbad15SKees Cook select HAVE_ARCH_KMSAN 187bae1cd36SSven Schnelle select HAVE_ARCH_KFENCE 188c63cb468SHeiko Carstens select HAVE_ARCH_KSTACK_ERASE 1895614dd92SMartin Schwidefsky select HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET 1900e0d04a8SHeiko Carstens select HAVE_ARCH_SECCOMP_FILTER 1915a79859aSHeiko Carstens select HAVE_ARCH_SOFT_DIRTY 192ce3dc447SMartin Schwidefsky select HAVE_ARCH_TRACEHOOK 1932ff2b7ecSMasahiro Yamada select HAVE_ARCH_TRANSPARENT_HUGEPAGE 194fa151887SHeiko Carstens select HAVE_ARCH_VMAP_STACK 1950e0d04a8SHeiko Carstens select HAVE_ASM_MODVERSIONS 1960e0d04a8SHeiko Carstens select HAVE_BUILDTIME_MCOUNT_SORT 1970e0d04a8SHeiko Carstens select HAVE_CMPXCHG_DOUBLE 198e1231b0eSHeiko Carstens select HAVE_CMPXCHG_LOCAL 1995a79859aSHeiko Carstens select HAVE_DEBUG_KMEMLEAK 2005740a7c7SHeiko Carstens select HAVE_DMA_CONTIGUOUS 201762abbc0SMasami Hiramatsu (Google) select HAVE_DYNAMIC_FTRACE 2022ab3a0a9SHeiko Carstens select HAVE_DYNAMIC_FTRACE_WITH_ARGS 2035a79859aSHeiko Carstens select HAVE_FTRACE_REGS_HAVING_PT_REGS 20442b01a55SVasily Gorbik select HAVE_DYNAMIC_FTRACE_WITH_DIRECT_CALLS 2059078a549SChristian Borntraeger select HAVE_DYNAMIC_FTRACE_WITH_REGS 20606e5b728SThomas Gleixner select HAVE_EBPF_JIT if HAVE_MARCH_Z196_FEATURES 20725176ad0SDavid Hildenbrand select HAVE_EFFICIENT_UNALIGNED_ACCESS 208d983c89cSVasily Gorbik select HAVE_GENERIC_TIF_BITS 2097495e179SSven Schnelle select HAVE_GUP_FAST 210a30b5b03SHeiko Carstens select HAVE_FENTRY 21173d6eb48SIlya Leoshkevich select HAVE_FTRACE_GRAPH_FUNC 212a3ed4157SMasami Hiramatsu (Google) select HAVE_FUNCTION_ARG_ACCESS_API 2135a79859aSHeiko Carstens select HAVE_FUNCTION_ERROR_INJECTION 2145a79859aSHeiko Carstens select HAVE_FUNCTION_GRAPH_FREGS 215bc00b3ecSHeiko Carstens select HAVE_FUNCTION_GRAPH_TRACER 2164bff8cb5SSven Schnelle select HAVE_FUNCTION_TRACER 217d460bb6cSNiklas Schnelle select HAVE_GCC_PLUGINS 2180e0d04a8SHeiko Carstens select HAVE_GENERIC_VDSO 2190e0d04a8SHeiko Carstens select HAVE_IOREMAP_PROT if PCI 2208e2872ceSHeiko Carstens select HAVE_KERNEL_BZIP2 2210e0d04a8SHeiko Carstens select HAVE_KERNEL_GZIP 2220e0d04a8SHeiko Carstens select HAVE_KERNEL_LZ4 22389b5202eSVasily Gorbik select HAVE_KERNEL_LZMA 2240e0d04a8SHeiko Carstens select HAVE_KERNEL_LZO 2257b034d9cSDimitri John Ledkov select HAVE_KERNEL_UNCOMPRESSED 2260e0d04a8SHeiko Carstens select HAVE_KERNEL_XZ 227657480d9SSven Schnelle select HAVE_KERNEL_ZSTD 2280e0d04a8SHeiko Carstens select HAVE_KPROBES 22921042d43SJiri Slaby select HAVE_KPROBES_ON_FTRACE 23050be6345SPhilipp Hachtmann select HAVE_KRETPROBES 231786d35d4SDavid Howells select HAVE_LIVEPATCH 232129975e7SHeiko Carstens select HAVE_MEMBLOCK_PHYS_MAP 233d983c89cSVasily Gorbik select HAVE_MOD_ARCH_SPECIFIC 2345394f1e9SArnd Bergmann select HAVE_NMI 235eb01d42aSChristoph Hellwig select HAVE_NOP_MCOUNT 2360e0d04a8SHeiko Carstens select HAVE_PAGE_SIZE_4KB 237129975e7SHeiko Carstens select HAVE_PCI 238129975e7SHeiko Carstens select HAVE_PERF_EVENTS 239b5f46348SHeiko Carstens select HAVE_PERF_REGS 2400e0d04a8SHeiko Carstens select HAVE_PERF_USER_STACK_DUMP 241aa137a6dSMiroslav Benes select HAVE_PREEMPT_DYNAMIC_KEY 2426ca6b581SHeiko Carstens select HAVE_REGS_AND_STACK_ACCESS_API 2439d6d99e3SHeiko Carstens select HAVE_RELIABLE_STACKTRACE 2441254cfbcSHeiko Carstens select HAVE_RETHOOK 245890e3dc8SHeiko Carstens select HAVE_RSEQ 246254b2fd0SHeiko Carstens select HAVE_SAMPLE_FTRACE_DIRECT 247cd1a41ceSThomas Gleixner select HAVE_SAMPLE_FTRACE_DIRECT_MULTI 2480e0d04a8SHeiko Carstens select HAVE_SETUP_PER_CPU_AREA 2490e0d04a8SHeiko Carstens select HAVE_SOFTIRQ_ON_OWN_STACK 2502b91ec9fSFrederic Weisbecker select HAVE_STACKPROTECTOR if CC_HAS_STACKPROTECTOR_GLOBAL 2511018424aSHeiko Carstens select HAVE_SYSCALL_TRACEPOINTS 252eb01d42aSChristoph Hellwig select HAVE_VIRT_CPU_ACCOUNTING 253eb01d42aSChristoph Hellwig select HAVE_VIRT_CPU_ACCOUNTING_IDLE 254e7256acaSHeiko Carstens select HOTPLUG_SMT 25557d1da4fSHeiko Carstens select IOMMU_HELPER if PCI 2566ca6b581SHeiko Carstens select IOMMU_SUPPORT if PCI 257129975e7SHeiko Carstens select KASAN_VMALLOC if KASAN 258129975e7SHeiko Carstens select LOCK_MM_AND_FIND_VMA 259786d35d4SDavid Howells select MMU_GATHER_MERGE_VMAS 260eb01d42aSChristoph Hellwig select MMU_GATHER_NO_GATHER 261254b2fd0SHeiko Carstens select MMU_GATHER_RCU_TABLE_FREE 262212c3a85SDavid Hildenbrand select MODULES_USE_ELF_RELA 263eb01d42aSChristoph Hellwig select NEED_DMA_MAP_STATE if PCI 2647eddd99cSAl Viro select NEED_PER_CPU_EMBED_FIRST_CHUNK 26593bead43SHeiko Carstens select NEED_PROC_VMCORE_DEVICE_RAM if PROC_VMCORE 2662eac9c2dSChristoph Hellwig select NEED_SG_DMA_LENGTH if PCI 267eb01d42aSChristoph Hellwig select OLD_SIGACTION 268981aa1d3SThomas Gleixner select OLD_SIGSUSPEND3 269aa9f168dSNiklas Schnelle select PCI_DOMAINS if PCI 270bb98f396SSebastian Ott select PCI_MSI if PCI 271129975e7SHeiko Carstens select PCI_MSI_ARCH_FALLBACKS if PCI_MSI 2720e0d04a8SHeiko Carstens select PCI_QUIRKS if PCI 273d5c352cdSHeiko Carstens select SPARSE_IRQ 2744aae683fSMasahiro Yamada select SWIOTLB 2750563416bSJosh Triplett select SYSCTL_EXCEPTION_TRACE 276aa44433aSHeiko Carstens select THREAD_INFO_IN_TASK 277b920aa77SHeiko Carstens select TRACE_IRQFLAGS_SUPPORT 2780e0d04a8SHeiko Carstens select TTY 27927939d6cSHeiko Carstens select USER_STACKTRACE_SUPPORT 28063703f37SKefeng Wang select VDSO_GETRANDOM 281129975e7SHeiko Carstens select VIRT_CPU_ACCOUNTING 2821da177e4SLinus Torvalds select VMAP_STACK 283fca3e357SMartin Schwidefsky select ZONE_DMA 2846f9a3c33SMartin Schwidefsky # Note: keep the above list sorted alphabetically 285fca3e357SMartin Schwidefsky 286c81956c9SKirill A. Shutemovconfig SCHED_OMIT_FRAME_POINTER 287c81956c9SKirill A. Shutemov def_bool y 2881aea9b3fSMartin Schwidefsky 289c81956c9SKirill A. Shutemovconfig PGTABLE_LEVELS 29021042d43SJiri Slaby int 29121042d43SJiri Slaby default 5 29275239cf7SEric DeVolder 29375239cf7SEric DeVoldersource "kernel/livepatch/Kconfig" 29475239cf7SEric DeVolder 29575239cf7SEric DeVolderconfig ARCH_SUPPORTS_KEXEC 296c1ad12eeSArnd Bergmann def_bool y 29775239cf7SEric DeVolder 29875239cf7SEric DeVolderconfig ARCH_SUPPORTS_KEXEC_FILE 29975239cf7SEric DeVolder def_bool y 30075239cf7SEric DeVolder 301e6265fe7SEric DeVolderconfig ARCH_SUPPORTS_KEXEC_SIG 302c1ad12eeSArnd Bergmann def_bool MODULE_SIG_FORMAT 30375239cf7SEric DeVolder 30475239cf7SEric DeVolderconfig ARCH_SUPPORTS_KEXEC_PURGATORY 30575239cf7SEric DeVolder def_bool y 30675239cf7SEric DeVolder 307d68b4b6fSLinus Torvaldsconfig ARCH_SUPPORTS_CRASH_DUMP 30875239cf7SEric DeVolder def_bool y 309d68b4b6fSLinus Torvalds help 31075239cf7SEric DeVolder Refer to <file:Documentation/arch/s390/zfcpdump.rst> for more details on this. 31131daa343SDave Vasilevsky This option also enables s390 zfcpdump. 31231daa343SDave Vasilevsky See also <file:Documentation/arch/s390/zfcpdump.rst> 31331daa343SDave Vasilevsky 314843c48fdSJan Glauberconfig ARCH_DEFAULT_CRASH_DUMP 3151da177e4SLinus Torvalds def_bool y 316843c48fdSJan Glauber 317843c48fdSJan Glaubermenu "Processor type and features" 318843c48fdSJan Glauber 319843c48fdSJan Glauberconfig HAVE_MARCH_Z10_FEATURES 320843c48fdSJan Glauber def_bool n 321843c48fdSJan Glauber 322843c48fdSJan Glauberconfig HAVE_MARCH_Z196_FEATURES 323991c1505SHeiko Carstens def_bool n 324991c1505SHeiko Carstens select HAVE_MARCH_Z10_FEATURES 325991c1505SHeiko Carstens 326991c1505SHeiko Carstensconfig HAVE_MARCH_ZEC12_FEATURES 327f8b2dcbdSMartin Schwidefsky def_bool n 328f8b2dcbdSMartin Schwidefsky select HAVE_MARCH_Z196_FEATURES 329f8b2dcbdSMartin Schwidefsky 330f8b2dcbdSMartin Schwidefskyconfig HAVE_MARCH_Z13_FEATURES 3316997c323SMartin Schwidefsky def_bool n 3326997c323SMartin Schwidefsky select HAVE_MARCH_ZEC12_FEATURES 3336997c323SMartin Schwidefsky 3346997c323SMartin Schwidefskyconfig HAVE_MARCH_Z14_FEATURES 335a0e22511SMartin Schwidefsky def_bool n 336a0e22511SMartin Schwidefsky select HAVE_MARCH_Z13_FEATURES 337a0e22511SMartin Schwidefsky 338a0e22511SMartin Schwidefskyconfig HAVE_MARCH_Z15_FEATURES 339e69a7ff8SHeiko Carstens def_bool n 340e69a7ff8SHeiko Carstens select HAVE_MARCH_Z14_FEATURES 341e69a7ff8SHeiko Carstens 342e69a7ff8SHeiko Carstensconfig HAVE_MARCH_Z16_FEATURES 343c51ea988SVasily Gorbik def_bool n 344c51ea988SVasily Gorbik select HAVE_MARCH_Z15_FEATURES 345c51ea988SVasily Gorbik 346c51ea988SVasily Gorbikconfig HAVE_MARCH_Z17_FEATURES 347843c48fdSJan Glauber def_bool n 348843c48fdSJan Glauber select HAVE_MARCH_Z16_FEATURES 3497072276eSMartin Schwidefsky 350843c48fdSJan Glauberchoice 351843c48fdSJan Glauber prompt "Processor type" 352843c48fdSJan Glauber default MARCH_Z196 3535a79859aSHeiko Carstens 3545474080aSHeiko Carstensconfig MARCH_Z10 355843c48fdSJan Glauber bool "IBM System z10" 3564efd417fSVasily Gorbik select HAVE_MARCH_Z10_FEATURES 3574efd417fSVasily Gorbik depends on $(cc-option,-march=z10) 358843c48fdSJan Glauber help 359843c48fdSJan Glauber Select this to enable optimizations for IBM System z10 (2097 and 2098 360843c48fdSJan Glauber series). This is the oldest machine generation currently supported. 3615a79859aSHeiko Carstens 3625474080aSHeiko Carstensconfig MARCH_Z196 363843c48fdSJan Glauber bool "IBM zEnterprise 114 and 196" 364843c48fdSJan Glauber select HAVE_MARCH_Z196_FEATURES 365843c48fdSJan Glauber depends on $(cc-option,-march=z196) 366843c48fdSJan Glauber help 367843c48fdSJan Glauber Select this to enable optimizations for IBM zEnterprise 114 and 196 368991c1505SHeiko Carstens (2818 and 2817 series). The kernel will be slightly faster but will 36959471227SHeiko Carstens not work on older machines. 3705a79859aSHeiko Carstens 3715474080aSHeiko Carstensconfig MARCH_ZEC12 372991c1505SHeiko Carstens bool "IBM zBC12 and zEC12" 37359471227SHeiko Carstens select HAVE_MARCH_ZEC12_FEATURES 37459471227SHeiko Carstens depends on $(cc-option,-march=zEC12) 37559471227SHeiko Carstens help 376991c1505SHeiko Carstens Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and 377f8b2dcbdSMartin Schwidefsky 2827 series). The kernel will be slightly faster but will not work on 378bb3aa614SHeiko Carstens older machines. 3795a79859aSHeiko Carstens 3805474080aSHeiko Carstensconfig MARCH_Z13 381f8b2dcbdSMartin Schwidefsky bool "IBM z13s and z13" 382bb3aa614SHeiko Carstens select HAVE_MARCH_Z13_FEATURES 383bb3aa614SHeiko Carstens depends on $(cc-option,-march=z13) 384bb3aa614SHeiko Carstens help 385f8b2dcbdSMartin Schwidefsky Select this to enable optimizations for IBM z13s and z13 (2965 and 3866997c323SMartin Schwidefsky 2964 series). The kernel will be slightly faster but will not work on 387451239ebSHeiko Carstens older machines. 3886997c323SMartin Schwidefsky 3895474080aSHeiko Carstensconfig MARCH_Z14 3906997c323SMartin Schwidefsky bool "IBM z14 ZR1 and z14" 391451239ebSHeiko Carstens select HAVE_MARCH_Z14_FEATURES 392451239ebSHeiko Carstens depends on $(cc-option,-march=z14) 393451239ebSHeiko Carstens help 3946997c323SMartin Schwidefsky Select this to enable optimizations for IBM z14 ZR1 and z14 (3907 395a0e22511SMartin Schwidefsky and 3906 series). The kernel will be slightly faster but will not 396a0e22511SMartin Schwidefsky work on older machines. 397a0e22511SMartin Schwidefsky 3985474080aSHeiko Carstensconfig MARCH_Z15 399a0e22511SMartin Schwidefsky bool "IBM z15" 400a0e22511SMartin Schwidefsky select HAVE_MARCH_Z15_FEATURES 401a0e22511SMartin Schwidefsky depends on $(cc-option,-march=z15) 402a0e22511SMartin Schwidefsky help 403a0e22511SMartin Schwidefsky Select this to enable optimizations for IBM z15 (8562 404e69a7ff8SHeiko Carstens and 8561 series). The kernel will be slightly faster but will not 405e69a7ff8SHeiko Carstens work on older machines. 406e69a7ff8SHeiko Carstens 407e69a7ff8SHeiko Carstensconfig MARCH_Z16 408e69a7ff8SHeiko Carstens bool "IBM z16" 409e69a7ff8SHeiko Carstens select HAVE_MARCH_Z16_FEATURES 410e69a7ff8SHeiko Carstens depends on $(cc-option,-march=z16) 411e69a7ff8SHeiko Carstens help 412c51ea988SVasily Gorbik Select this to enable optimizations for IBM z16 (3931 and 413c51ea988SVasily Gorbik 3932 series). 414c51ea988SVasily Gorbik 415c51ea988SVasily Gorbikconfig MARCH_Z17 416c51ea988SVasily Gorbik bool "IBM z17" 417c51ea988SVasily Gorbik select HAVE_MARCH_Z17_FEATURES 418c51ea988SVasily Gorbik depends on $(cc-option,-march=z17) 419c51ea988SVasily Gorbik help 420843c48fdSJan Glauber Select this to enable optimizations for IBM z17 (9175 and 4211da177e4SLinus Torvalds 9176 series). 4221db9e051SHeiko Carstens 4231db9e051SHeiko Carstensendchoice 4241db9e051SHeiko Carstens 4251db9e051SHeiko Carstensconfig MARCH_Z10_TUNE 4261db9e051SHeiko Carstens def_bool TUNE_Z10 || MARCH_Z10 && TUNE_DEFAULT 4271db9e051SHeiko Carstens 4281db9e051SHeiko Carstensconfig MARCH_Z196_TUNE 4291db9e051SHeiko Carstens def_bool TUNE_Z196 || MARCH_Z196 && TUNE_DEFAULT 4301db9e051SHeiko Carstens 431f8b2dcbdSMartin Schwidefskyconfig MARCH_ZEC12_TUNE 432f8b2dcbdSMartin Schwidefsky def_bool TUNE_ZEC12 || MARCH_ZEC12 && TUNE_DEFAULT 433f8b2dcbdSMartin Schwidefsky 4346997c323SMartin Schwidefskyconfig MARCH_Z13_TUNE 4356997c323SMartin Schwidefsky def_bool TUNE_Z13 || MARCH_Z13 && TUNE_DEFAULT 4366997c323SMartin Schwidefsky 437a0e22511SMartin Schwidefskyconfig MARCH_Z14_TUNE 438a0e22511SMartin Schwidefsky def_bool TUNE_Z14 || MARCH_Z14 && TUNE_DEFAULT 439a0e22511SMartin Schwidefsky 440e69a7ff8SHeiko Carstensconfig MARCH_Z15_TUNE 441e69a7ff8SHeiko Carstens def_bool TUNE_Z15 || MARCH_Z15 && TUNE_DEFAULT 442e69a7ff8SHeiko Carstens 443c51ea988SVasily Gorbikconfig MARCH_Z16_TUNE 444c51ea988SVasily Gorbik def_bool TUNE_Z16 || MARCH_Z16 && TUNE_DEFAULT 445c51ea988SVasily Gorbik 4461db9e051SHeiko Carstensconfig MARCH_Z17_TUNE 4471db9e051SHeiko Carstens def_bool TUNE_Z17 || MARCH_Z17 && TUNE_DEFAULT 4481db9e051SHeiko Carstens 4491db9e051SHeiko Carstenschoice 4501db9e051SHeiko Carstens prompt "Tune code generation" 4511db9e051SHeiko Carstens default TUNE_DEFAULT 4521db9e051SHeiko Carstens help 4531db9e051SHeiko Carstens Cause the compiler to tune (-mtune) the generated code for a machine. 4541db9e051SHeiko Carstens This will make the code run faster on the selected machine but 4551db9e051SHeiko Carstens somewhat slower on other machines. 4561db9e051SHeiko Carstens This option only changes how the compiler emits instructions, not the 4571db9e051SHeiko Carstens selection of instructions itself, so the resulting kernel will run on 4581db9e051SHeiko Carstens all other machines. 4591db9e051SHeiko Carstens 4601db9e051SHeiko Carstensconfig TUNE_DEFAULT 4611db9e051SHeiko Carstens bool "Default" 4621db9e051SHeiko Carstens help 4631db9e051SHeiko Carstens Tune the generated code for the target processor for which the kernel 4641db9e051SHeiko Carstens will be compiled. 4651db9e051SHeiko Carstens 4661db9e051SHeiko Carstensconfig TUNE_Z10 4671db9e051SHeiko Carstens bool "IBM System z10" 4685474080aSHeiko Carstens 4691db9e051SHeiko Carstensconfig TUNE_Z196 4701db9e051SHeiko Carstens bool "IBM zEnterprise 114 and 196" 4711db9e051SHeiko Carstens depends on $(cc-option,-mtune=z196) 4725474080aSHeiko Carstens 4731db9e051SHeiko Carstensconfig TUNE_ZEC12 474f8b2dcbdSMartin Schwidefsky bool "IBM zBC12 and zEC12" 47589d0180aSHeiko Carstens depends on $(cc-option,-mtune=zEC12) 4765474080aSHeiko Carstens 477f8b2dcbdSMartin Schwidefskyconfig TUNE_Z13 4786997c323SMartin Schwidefsky bool "IBM z13s and z13" 47989d0180aSHeiko Carstens depends on $(cc-option,-mtune=z13) 4805474080aSHeiko Carstens 4816997c323SMartin Schwidefskyconfig TUNE_Z14 482a0e22511SMartin Schwidefsky bool "IBM z14 ZR1 and z14" 483a0e22511SMartin Schwidefsky depends on $(cc-option,-mtune=z14) 4845474080aSHeiko Carstens 485a0e22511SMartin Schwidefskyconfig TUNE_Z15 486e69a7ff8SHeiko Carstens bool "IBM z15" 487e69a7ff8SHeiko Carstens depends on $(cc-option,-mtune=z15) 488e69a7ff8SHeiko Carstens 489e69a7ff8SHeiko Carstensconfig TUNE_Z16 490c51ea988SVasily Gorbik bool "IBM z16" 491c51ea988SVasily Gorbik depends on $(cc-option,-mtune=z16) 492c51ea988SVasily Gorbik 493c51ea988SVasily Gorbikconfig TUNE_Z17 4941db9e051SHeiko Carstens bool "IBM z17" 4951db9e051SHeiko Carstens depends on $(cc-option,-mtune=z17) 496347a8dc3SMartin Schwidefsky 4976f9a3c33SMartin Schwidefskyendchoice 498d9f7a745SMartin Schwidefsky 499622021cdSSven Schnelleconfig 64BIT 500622021cdSSven Schnelle def_bool y 501622021cdSSven Schnelle 502622021cdSSven Schnelleconfig COMMAND_LINE_SIZE 503622021cdSSven Schnelle int "Maximum size of kernel command line" 504622021cdSSven Schnelle default 4096 505622021cdSSven Schnelle range 896 1048576 506622021cdSSven Schnelle help 507843c48fdSJan Glauber This allows you to specify the maximum length of the kernel command 50877ed045eSHeiko Carstens line. 509843c48fdSJan Glauber 510843c48fdSJan Glauberconfig SMP 5117eddd99cSAl Viro def_bool y 512fef747baSArnd Bergmann 5132813893fSIulia Mandaconfig NR_CPUS 514b20ea29aSNathan Chancellor int "Maximum number of CPUs (2-512)" 515843c48fdSJan Glauber range 2 512 516843c48fdSJan Glauber default "64" 517843c48fdSJan Glauber help 518843c48fdSJan Glauber This allows you to specify the maximum number of CPUs which this 51977ed045eSHeiko Carstens kernel will support. The maximum supported value is 512 and the 52077ed045eSHeiko Carstens minimum value which makes sense is 2. 52177ed045eSHeiko Carstens 522843c48fdSJan Glauber This is purely to save memory - each supported CPU adds 5231da177e4SLinus Torvalds approximately sixteen kilobytes to the kernel image. 5246f9a3c33SMartin Schwidefsky 5251da177e4SLinus Torvaldsconfig HOTPLUG_CPU 5261da177e4SLinus Torvalds def_bool y 5275c75a0daSHeiko Carstens 5285c75a0daSHeiko Carstensconfig NUMA 5295a79859aSHeiko Carstens bool "NUMA support" 5301da177e4SLinus Torvalds depends on SCHED_TOPOLOGY 5311da177e4SLinus Torvalds default n 5325c75a0daSHeiko Carstens help 5331da177e4SLinus Torvalds Enable NUMA support 5341da177e4SLinus Torvalds 5351da177e4SLinus Torvalds This option adds NUMA support to the kernel. 5361da177e4SLinus Torvalds 5371da177e4SLinus Torvaldsconfig NODES_SHIFT 5381da177e4SLinus Torvalds int 5396f9a3c33SMartin Schwidefsky depends on NUMA 5401da177e4SLinus Torvalds default "1" 5413a368f74SPhilipp Hachtmann 5423a368f74SPhilipp Hachtmannconfig SCHED_TOPOLOGY 54367626fadSHeiko Carstens def_bool y 5443a368f74SPhilipp Hachtmann prompt "Topology scheduler support" 5453a368f74SPhilipp Hachtmann select ARCH_SUPPORTS_SCHED_SMT 5463a368f74SPhilipp Hachtmann select ARCH_SUPPORTS_SCHED_MC 5473a368f74SPhilipp Hachtmann select SCHED_SMT 5483a368f74SPhilipp Hachtmann select SCHED_MC 5493a368f74SPhilipp Hachtmann help 5503a368f74SPhilipp Hachtmann Topology scheduler support improves the CPU scheduler's decision 551701dc81eSHeiko Carstens making when dealing with machines that have multi-threading, 552a9ee6cf5SMike Rapoport multiple cores or multiple books. 553701dc81eSHeiko Carstens 554c29a7bafSMichael Holzheuconfig SCHED_TOPOLOGY_VERTICAL 55510ad34bcSMartin Schwidefsky def_bool y 5566f9a3c33SMartin Schwidefsky bool "Use vertical CPU polarization by default" 55710ad34bcSMartin Schwidefsky depends on SCHED_TOPOLOGY 5587bd291abSPeter Zijlstra help 5597bd291abSPeter Zijlstra Use vertical CPU polarization by default if available. 56010ad34bcSMartin Schwidefsky The default CPU polarization is horizontal. 56183a24e32SHeiko Carstens 5624cb14bc8SHeiko Carstensconfig HIPERDISPATCH_ON 56310ad34bcSMartin Schwidefsky def_bool y 56410ad34bcSMartin Schwidefsky bool "Use hiperdispatch on vertical polarization by default" 56510ad34bcSMartin Schwidefsky depends on SCHED_TOPOLOGY 5664cb14bc8SHeiko Carstens depends on PROC_SYSCTL 5677e627f81STobias Huschle help 5687e627f81STobias Huschle Hiperdispatch aims to improve the CPU scheduler's decision 5697e627f81STobias Huschle making when using vertical polarization by adjusting CPU 5707e627f81STobias Huschle capacities dynamically. Set this option to use hiperdispatch 5717e627f81STobias Huschle on vertical polarization by default. This can be overwritten 5727e627f81STobias Huschle by sysctl's s390.hiperdispatch attribute later on. 5737e627f81STobias Huschle 5747e627f81STobias Huschlesource "kernel/Kconfig.hz" 575b9271a53SMete Durlu 576b9271a53SMete Durluconfig CERT_STORE 577b9271a53SMete Durlu bool "Get user certificates via DIAG320" 578b9271a53SMete Durlu depends on KEYS 579b9271a53SMete Durlu select CRYPTO_LIB_SHA256 580b9271a53SMete Durlu help 581b9271a53SMete Durlu Enable this option if you want to access user-provided secure boot 582b9271a53SMete Durlu certificates via DIAG 0x320. 583b9271a53SMete Durlu 584b9271a53SMete Durlu These certificates will be made available via the keyring named 585b9271a53SMete Durlu 'cert_store'. 586b9271a53SMete Durlu 5878636a1f9SMasahiro Yamadaconfig KERNEL_NOBP 588843c48fdSJan Glauber def_bool n 5898cf57d72SAnastasia Eskova prompt "Enable modified branch prediction for the kernel by default" 5908cf57d72SAnastasia Eskova help 5918cf57d72SAnastasia Eskova If this option is selected the kernel will switch to a modified 592481daa50SSven Schnelle branch prediction mode if the firmware interface is available. 5938cf57d72SAnastasia Eskova The modified branch prediction mode improves the behaviour in 5948cf57d72SAnastasia Eskova regard to speculative execution. 5958cf57d72SAnastasia Eskova 5968cf57d72SAnastasia Eskova With the option enabled the kernel parameter "nobp=0" or "nospec" 5978cf57d72SAnastasia Eskova can be used to run the kernel in the normal branch prediction mode. 5988cf57d72SAnastasia Eskova 5998cf57d72SAnastasia Eskova With the option disabled the modified branch prediction mode is 600d768bd89SMartin Schwidefsky enabled with the "nobp=1" kernel parameter. 601d768bd89SMartin Schwidefsky 602d768bd89SMartin Schwidefsky If unsure, say N. 603d768bd89SMartin Schwidefsky 604d768bd89SMartin Schwidefskyconfig EXPOLINE 605d768bd89SMartin Schwidefsky def_bool n 606d768bd89SMartin Schwidefsky depends on $(cc-option,-mindirect-branch=thunk) 607d768bd89SMartin Schwidefsky prompt "Avoid speculative indirect branches in the kernel" 608d768bd89SMartin Schwidefsky help 609d768bd89SMartin Schwidefsky Compile the kernel with the expoline compiler options to guard 610d768bd89SMartin Schwidefsky against kernel-to-user data leaks by avoiding speculative indirect 611d768bd89SMartin Schwidefsky branches. 612d768bd89SMartin Schwidefsky Requires a compiler with -mindirect-branch=thunk support for full 613d768bd89SMartin Schwidefsky protection. The kernel may run slower. 614d768bd89SMartin Schwidefsky 615d768bd89SMartin Schwidefsky If unsure, say N. 616d768bd89SMartin Schwidefsky 617f19fbd5eSMartin Schwidefskyconfig EXPOLINE_EXTERN 618f19fbd5eSMartin Schwidefsky def_bool EXPOLINE && CC_IS_GCC && GCC_VERSION >= 110200 && \ 6191d2ad084SVasily Gorbik $(success,$(srctree)/arch/s390/tools/gcc-thunk-extern.sh $(CC)) 620f19fbd5eSMartin Schwidefsky help 621f19fbd5eSMartin Schwidefsky Generate expolines as external functions if the compiler supports it. 622f19fbd5eSMartin Schwidefsky This option is required for some tooling like kpatch, if expolines 623f19fbd5eSMartin Schwidefsky are enabled. The kernel is compiled with 624f19fbd5eSMartin Schwidefsky -mindirect-branch=thunk-extern, which requires a newer compiler. 625f19fbd5eSMartin Schwidefsky 626f19fbd5eSMartin Schwidefskychoice 627f19fbd5eSMartin Schwidefsky prompt "Expoline default" 628f19fbd5eSMartin Schwidefsky depends on EXPOLINE 629f19fbd5eSMartin Schwidefsky default EXPOLINE_FULL 6301d2ad084SVasily Gorbik 6314eac37ffSVasily Gorbikconfig EXPOLINE_OFF 6324eac37ffSVasily Gorbik bool "spectre_v2=off" 6331d2ad084SVasily Gorbik 6344eac37ffSVasily Gorbikconfig EXPOLINE_AUTO 6354eac37ffSVasily Gorbik bool "spectre_v2=auto" 6364eac37ffSVasily Gorbik 6374eac37ffSVasily Gorbikconfig EXPOLINE_FULL 6381d2ad084SVasily Gorbik bool "spectre_v2=on" 639f19fbd5eSMartin Schwidefsky 640f19fbd5eSMartin Schwidefskyendchoice 641f19fbd5eSMartin Schwidefsky 642f19fbd5eSMartin Schwidefskyconfig RELOCATABLE 643f19fbd5eSMartin Schwidefsky def_bool y 644f19fbd5eSMartin Schwidefsky select ARCH_VMLINUX_NEEDS_RELOCS 645f19fbd5eSMartin Schwidefsky help 646f19fbd5eSMartin Schwidefsky This builds a kernel image that retains relocation information 6476e179d64SMartin Schwidefsky so it can be loaded at an arbitrary address. 648f19fbd5eSMartin Schwidefsky The relocations make the kernel image about 15% larger (compressed 649f19fbd5eSMartin Schwidefsky 10%), but are discarded at runtime. 650f19fbd5eSMartin Schwidefsky Note: this option exists only for documentation purposes, please do 651f19fbd5eSMartin Schwidefsky not remove it. 652f19fbd5eSMartin Schwidefsky 653f19fbd5eSMartin Schwidefskyconfig RANDOMIZE_BASE 654f19fbd5eSMartin Schwidefsky bool "Randomize the address of the kernel image (KASLR)" 655805bc0bcSGerald Schaefer default y 65680ddf5ceSHeiko Carstens help 6579b400d17SArd Biesheuvel In support of Kernel Address Space Layout Randomization (KASLR), 658805bc0bcSGerald Schaefer this randomizes the address at which the kernel image is loaded, 659805bc0bcSGerald Schaefer as a security feature that deters exploit attempts relying on 660805bc0bcSGerald Schaefer knowledge of the location of kernel internals. 661805bc0bcSGerald Schaefer 662805bc0bcSGerald Schaeferconfig RANDOMIZE_IDENTITY_BASE 66380ddf5ceSHeiko Carstens bool "Randomize the address of the identity mapping base" 66480ddf5ceSHeiko Carstens depends on RANDOMIZE_BASE 665805bc0bcSGerald Schaefer default DEBUG_VM 666b2d24b97SGerald Schaefer help 667b2d24b97SGerald Schaefer The identity mapping base address is pinned to zero by default. 668b2d24b97SGerald Schaefer Allow randomization of that base to expose otherwise missed 669b2d24b97SGerald Schaefer notion of physical and virtual addresses of data structures. 670b2d24b97SGerald Schaefer That does not have any impact on the base address at which the 671b2d24b97SGerald Schaefer kernel image is loaded. 672b2d24b97SGerald Schaefer 673b2d24b97SGerald Schaefer If unsure, say N 674b2d24b97SGerald Schaefer 67532db4019SAlexander Gordeevconfig KERNEL_IMAGE_BASE 67632db4019SAlexander Gordeev hex "Kernel image base address" 67732db4019SAlexander Gordeev range 0x100000 0x1FFFFFE0000000 if !KASAN 67832db4019SAlexander Gordeev range 0x100000 0x1BFFFFE0000000 if KASAN 67932db4019SAlexander Gordeev default 0x3FFE0000000 if !KASAN 68032db4019SAlexander Gordeev default 0x7FFFE0000000 if KASAN 68132db4019SAlexander Gordeev help 68232db4019SAlexander Gordeev This is the address at which the kernel image is loaded in case 68332db4019SAlexander Gordeev Kernel Address Space Layout Randomization (KASLR) is disabled. 68432db4019SAlexander Gordeev 68532db4019SAlexander Gordeev In case the Protected virtualization guest support is enabled the 68632db4019SAlexander Gordeev Ultravisor imposes a virtual address limit. If the value of this 68732db4019SAlexander Gordeev option leads to the kernel image exceeding the Ultravisor limit, 68854f2ecc3SAlexander Gordeev this option is ignored and the image is loaded below the limit. 68954f2ecc3SAlexander Gordeev 69054f2ecc3SAlexander Gordeev If the value of this option leads to the kernel image overlapping 69154f2ecc3SAlexander Gordeev the virtual memory where other data structures are located, this 69254f2ecc3SAlexander Gordeev option is ignored and the image is loaded above the structures. 69354f2ecc3SAlexander Gordeev 69454f2ecc3SAlexander Gordeevendmenu 69554f2ecc3SAlexander Gordeev 69654f2ecc3SAlexander Gordeevmenu "Memory setup" 69754f2ecc3SAlexander Gordeev 69854f2ecc3SAlexander Gordeevconfig ARCH_SPARSEMEM_ENABLE 69954f2ecc3SAlexander Gordeev def_bool y 70054f2ecc3SAlexander Gordeev select SPARSEMEM_VMEMMAP_ENABLE 70154f2ecc3SAlexander Gordeev 70254f2ecc3SAlexander Gordeevconfig ARCH_SPARSEMEM_DEFAULT 70354f2ecc3SAlexander Gordeev def_bool y 70454f2ecc3SAlexander Gordeev 70554f2ecc3SAlexander Gordeevconfig MAX_PHYSMEM_BITS 70654f2ecc3SAlexander Gordeev int "Maximum size of supported physical memory in bits (42-53)" 707843c48fdSJan Glauber range 42 53 708843c48fdSJan Glauber default "46" 709843c48fdSJan Glauber help 710843c48fdSJan Glauber This option specifies the maximum supported size of physical memory 711843c48fdSJan Glauber in bits. Supported is any size between 2^42 (4TB) and 2^53 (8PB). 7126f9a3c33SMartin Schwidefsky Increasing the number of bits also increases the kernel image size. 713843c48fdSJan Glauber By default 46 bits (64TB) are supported. 7141da177e4SLinus Torvalds 715843c48fdSJan Glauberendmenu 7166f9a3c33SMartin Schwidefsky 717e65e1fc2SAl Viromenu "I/O subsystem" 718b8402b95SHeiko Carstens 719b8402b95SHeiko Carstensconfig QDIO 720b8402b95SHeiko Carstens def_tristate y 721b8402b95SHeiko Carstens prompt "QDIO support" 722b8402b95SHeiko Carstens help 723b8402b95SHeiko Carstens This driver provides the Queued Direct I/O base support for 724b8402b95SHeiko Carstens IBM System z. 725b8402b95SHeiko Carstens 726b8402b95SHeiko Carstens To compile this driver as a module, choose M here: the 727b8402b95SHeiko Carstens module will be called qdio. 728843c48fdSJan Glauber 72961d48c2cSMartin Schwidefsky If unsure, say Y. 730843c48fdSJan Glauber 7311da177e4SLinus Torvaldsif PCI 7321da177e4SLinus Torvalds 7336f9a3c33SMartin Schwidefskyconfig PCI_NR_FUNCTIONS 7346f9a3c33SMartin Schwidefsky int "Maximum number of PCI functions (1-4096)" 735a7f7f624SMasahiro Yamada range 1 4096 7368129ee16SFrank Pavlic default "512" 737efca13bcSUrsula Braun help 7381da177e4SLinus Torvalds This allows you to specify the maximum number of PCI functions which 7391da177e4SLinus Torvalds this kernel will support. 7401da177e4SLinus Torvalds 7411da177e4SLinus Torvaldsendif # PCI 7421da177e4SLinus Torvalds 7431da177e4SLinus Torvaldsconfig HAS_IOMEM 744c8717a3dSJan Glauber def_bool PCI 745c8717a3dSJan Glauber 746c8717a3dSJan Glauberconfig CHSC_SCH 747c8717a3dSJan Glauber def_tristate m 748c8717a3dSJan Glauber prompt "Support for CHSC subchannels" 74910e59217SNiklas Schnelle help 750c8717a3dSJan Glauber This driver allows usage of CHSC subchannels. A CHSC subchannel 751c8717a3dSJan Glauber is usually present on LPAR only. 752c8717a3dSJan Glauber The driver creates a device /dev/chsc, which may be used to 753c8717a3dSJan Glauber obtain I/O configuration information about the machine and 754c8717a3dSJan Glauber to issue asynchronous chsc commands (DANGEROUS). 755c8717a3dSJan Glauber You will usually only want to use this interface on a special 756c8717a3dSJan Glauber LPAR designated for system management. 757c8717a3dSJan Glauber 758c8717a3dSJan Glauber To compile this driver as a module, choose M here: the 7599d92a7e1SCornelia Huck module will be called chsc_sch. 760d9c11b1eSSebastian Ott 7616f9a3c33SMartin Schwidefsky If unsure, say N. 7629d92a7e1SCornelia Huck 7639d92a7e1SCornelia Huckconfig SCM_BUS 7649d92a7e1SCornelia Huck def_bool y 7659d92a7e1SCornelia Huck prompt "SCM bus driver" 7669d92a7e1SCornelia Huck help 7679d92a7e1SCornelia Huck Bus driver for Storage Class Memory. 7689d92a7e1SCornelia Huck 7699d92a7e1SCornelia Huckconfig EADM_SCH 7709d92a7e1SCornelia Huck def_tristate m 7719d92a7e1SCornelia Huck prompt "Support for EADM subchannels" 7729d92a7e1SCornelia Huck depends on SCM_BUS 7739d92a7e1SCornelia Huck help 7749d92a7e1SCornelia Huck This driver allows usage of EADM subchannels. EADM subchannels act 7759d92a7e1SCornelia Huck as a communication vehicle for SCM increments. 7761d1c8f78SSebastian Ott 7771d1c8f78SSebastian Ott To compile this driver as a module, choose M here: the 7781d1c8f78SSebastian Ott module will be called eadm_sch. 7791d1c8f78SSebastian Ott 7801d1c8f78SSebastian Ottconfig AP 7811d1c8f78SSebastian Ott def_tristate y 782eadb86abSSebastian Ott prompt "Support for Adjunct Processors (ap)" 783eadb86abSSebastian Ott help 784eadb86abSSebastian Ott This driver allows usage to Adjunct Processor (AP) devices via 785eadb86abSSebastian Ott the ap bus, cards and queues. Supported Adjunct Processors are 786eadb86abSSebastian Ott the CryptoExpress Cards (CEX). 787eadb86abSSebastian Ott 788eadb86abSSebastian Ott To compile this driver as a module, choose M here: the 789eadb86abSSebastian Ott module will be called ap. 790eadb86abSSebastian Ott 791eadb86abSSebastian Ott If unsure, say Y (default). 792eadb86abSSebastian Ott 79312376084SHolger Denglerconfig AP_DEBUG 79412376084SHolger Dengler def_bool n 79512376084SHolger Dengler prompt "Enable debug features for Adjunct Processor (ap) devices" 79612376084SHolger Dengler depends on AP 79712376084SHolger Dengler help 79812376084SHolger Dengler Say 'Y' here to enable some additional debug features for Adjunct 79912376084SHolger Dengler Processor (ap) devices. 80012376084SHolger Dengler 80112376084SHolger Dengler There will be some more sysfs attributes displayed for ap queues. 80212376084SHolger Dengler 80312376084SHolger Dengler Do not enable on production level kernel build. 80412376084SHolger Dengler 80512376084SHolger Dengler If unsure, say N. 806b3840c8bSHolger Dengler 807b3840c8bSHolger Denglerconfig VFIO_CCW 808b3840c8bSHolger Dengler def_tristate n 809b3840c8bSHolger Dengler prompt "Support for VFIO-CCW subchannels" 810b3840c8bSHolger Dengler depends on VFIO 811b3840c8bSHolger Dengler select VFIO_MDEV 812b3840c8bSHolger Dengler help 813b3840c8bSHolger Dengler This driver allows usage of I/O subchannels via VFIO-CCW. 814b3840c8bSHolger Dengler 815b3840c8bSHolger Dengler To compile this driver as a module, choose M here: the 816b3840c8bSHolger Dengler module will be called vfio_ccw. 817b3840c8bSHolger Dengler 818b3840c8bSHolger Denglerconfig VFIO_AP 819b3840c8bSHolger Dengler def_tristate n 82063f1934dSDong Jia Shi prompt "VFIO support for AP devices" 82163f1934dSDong Jia Shi depends on KVM 82263f1934dSDong Jia Shi depends on VFIO 823de858a05SArnd Bergmann depends on AP 8248bf8c5eeSChristoph Hellwig select VFIO_MDEV 82563f1934dSDong Jia Shi help 82663f1934dSDong Jia Shi This driver grants access to Adjunct Processor (AP) devices 82763f1934dSDong Jia Shi via the VFIO mediated device interface. 82863f1934dSDong Jia Shi 82963f1934dSDong Jia Shi To compile this driver as a module, choose M here: the module 83063f1934dSDong Jia Shi will be called vfio_ap. 8311fde5734STony Krowiak 8321fde5734STony Krowiakendmenu 8331fde5734STony Krowiak 8340f1cbf94SJason Gunthorpeconfig CCW 835de858a05SArnd Bergmann def_bool y 83612376084SHolger Dengler 837de858a05SArnd Bergmannconfig HAVE_PNETID 8381fde5734STony Krowiak tristate 8391fde5734STony Krowiak default (SMC || CCWGROUP) 8401fde5734STony Krowiak 8411fde5734STony Krowiakmenu "Virtualization" 8421fde5734STony Krowiak 8431fde5734STony Krowiakconfig PFAULT 8441fde5734STony Krowiak def_bool y 845843c48fdSJan Glauber prompt "Pseudo page fault support" 846843c48fdSJan Glauber help 847843c48fdSJan Glauber Select this option, if you want to use PFAULT pseudo page fault 848843c48fdSJan Glauber handling under VM. If running native or in LPAR, this option 849843c48fdSJan Glauber has no effect. If your VM does not support PFAULT, PAGEEX 850b6ef86e9SUrsula Braun pseudo page fault handling will be used. 851b6ef86e9SUrsula Braun Note that VM 4.2 supports PFAULT but has a bug in its 852b6ef86e9SUrsula Braun implementation that causes some problems. 853b6ef86e9SUrsula Braun Everybody who wants to run Linux under VM != VM4.2 should select 854843c48fdSJan Glauber this option. 855684de39bSHeiko Carstens 8561da177e4SLinus Torvaldsconfig CMM 8576f9a3c33SMartin Schwidefsky def_tristate n 8586f9a3c33SMartin Schwidefsky prompt "Cooperative memory management" 8591da177e4SLinus Torvalds help 8601da177e4SLinus Torvalds Select this option, if you want to enable the kernel interface 8611da177e4SLinus Torvalds to reduce the memory size of the system. This is accomplished 8621da177e4SLinus Torvalds by allocating pages of memory and put them "on hold". This only 8631da177e4SLinus Torvalds makes sense for a system running under VM where the unused pages 8641da177e4SLinus Torvalds will be reused by VM for other guest systems. The interface 8651da177e4SLinus Torvalds allows an external monitor to balance memory of many systems. 8661da177e4SLinus Torvalds Everybody who wants to run Linux under VM should select this 8671da177e4SLinus Torvalds option. 8681da177e4SLinus Torvalds 8691da177e4SLinus Torvaldsconfig CMM_IUCV 8706f9a3c33SMartin Schwidefsky def_bool y 8716f9a3c33SMartin Schwidefsky prompt "IUCV special message interface to cooperative memory management" 8721da177e4SLinus Torvalds depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV) 8731da177e4SLinus Torvalds help 8741da177e4SLinus Torvalds Select this option to enable the special message interface to 8751da177e4SLinus Torvalds the cooperative memory management. 8761da177e4SLinus Torvalds 8771da177e4SLinus Torvaldsconfig APPLDATA_BASE 8781da177e4SLinus Torvalds def_bool n 8791da177e4SLinus Torvalds prompt "Linux - VM Monitor Stream, base infrastructure" 8801da177e4SLinus Torvalds depends on PROC_SYSCTL 8811da177e4SLinus Torvalds help 8821da177e4SLinus Torvalds This provides a kernel interface for creating and updating z/VM APPLDATA 8836f9a3c33SMartin Schwidefsky monitor records. The monitor records are updated at certain time 8846f9a3c33SMartin Schwidefsky intervals, once the timer is started. 8851da177e4SLinus Torvalds Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer, 8861da177e4SLinus Torvalds i.e. enables or disables monitoring on the Linux side. 8871da177e4SLinus Torvalds A custom interval value (in seconds) can be written to 8881da177e4SLinus Torvalds /proc/appldata/interval. 8891da177e4SLinus Torvalds 8901da177e4SLinus Torvalds Defaults are 60 seconds interval and timer off. 8916f9a3c33SMartin Schwidefsky The /proc entries can also be read from, showing the current settings. 8926f9a3c33SMartin Schwidefsky 8935d3516b3SRandy Dunlapconfig APPLDATA_MEM 8941da177e4SLinus Torvalds def_tristate m 8951da177e4SLinus Torvalds prompt "Monitor memory management statistics" 8961da177e4SLinus Torvalds depends on APPLDATA_BASE && VM_EVENT_COUNTERS 8971da177e4SLinus Torvalds help 8981da177e4SLinus Torvalds This provides memory management related data to the Linux - VM Monitor 8991da177e4SLinus Torvalds Stream, like paging/swapping rate, memory utilisation, etc. 9001da177e4SLinus Torvalds Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM 9011da177e4SLinus Torvalds APPLDATA monitor record, i.e. enables or disables monitoring this record 9021da177e4SLinus Torvalds on the z/VM side. 9031da177e4SLinus Torvalds 9041da177e4SLinus Torvalds Default is disabled. 9051da177e4SLinus Torvalds The /proc entry can also be read from, showing the current settings. 9061da177e4SLinus Torvalds 9076f9a3c33SMartin Schwidefsky This can also be compiled as a module, which will be called 9086f9a3c33SMartin Schwidefsky appldata_mem.o. 90962fb2ba3SAl Viro 9101da177e4SLinus Torvaldsconfig APPLDATA_OS 9111da177e4SLinus Torvalds def_tristate m 9121da177e4SLinus Torvalds prompt "Monitor OS statistics" 9131da177e4SLinus Torvalds depends on APPLDATA_BASE 9141da177e4SLinus Torvalds help 9151da177e4SLinus Torvalds This provides OS related data to the Linux - VM Monitor Stream, like 9161da177e4SLinus Torvalds CPU utilisation, etc. 9171da177e4SLinus Torvalds Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM 9181da177e4SLinus Torvalds APPLDATA monitor record, i.e. enables or disables monitoring this record 9191da177e4SLinus Torvalds on the z/VM side. 9201da177e4SLinus Torvalds 9211da177e4SLinus Torvalds Default is disabled. 9221da177e4SLinus Torvalds This can also be compiled as a module, which will be called 9231da177e4SLinus Torvalds appldata_os.o. 9246f9a3c33SMartin Schwidefsky 9256f9a3c33SMartin Schwidefskyconfig APPLDATA_NET_SUM 9261da177e4SLinus Torvalds def_tristate m 9271da177e4SLinus Torvalds prompt "Monitor overall network statistics" 9281da177e4SLinus Torvalds depends on APPLDATA_BASE && NET 9291da177e4SLinus Torvalds help 9301da177e4SLinus Torvalds This provides network related data to the Linux - VM Monitor Stream, 9311da177e4SLinus Torvalds currently there is only a total sum of network I/O statistics, no 9321da177e4SLinus Torvalds per-interface data. 9331da177e4SLinus Torvalds Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM 9341da177e4SLinus Torvalds APPLDATA monitor record, i.e. enables or disables monitoring this record 9351da177e4SLinus Torvalds on the z/VM side. 9361da177e4SLinus Torvalds 9371da177e4SLinus Torvalds Default is disabled. 9381da177e4SLinus Torvalds This can also be compiled as a module, which will be called 9396f9a3c33SMartin Schwidefsky appldata_net_sum.o. 9406f9a3c33SMartin Schwidefsky 94170193af9SSachin Santconfig S390_HYPFS 9421da177e4SLinus Torvalds def_bool y 9431da177e4SLinus Torvalds prompt "s390 hypervisor information" 9441da177e4SLinus Torvalds help 9451da177e4SLinus Torvalds This provides several binary files at (debugfs)/s390_hypfs/ to 9461da177e4SLinus Torvalds provide accounting information in an s390 hypervisor environment. 9471da177e4SLinus Torvalds 9481da177e4SLinus Torvaldsconfig S390_HYPFS_FS 9491da177e4SLinus Torvalds def_bool n 9501da177e4SLinus Torvalds prompt "s390 hypervisor file system support" 9511da177e4SLinus Torvalds select SYS_HYPERVISOR 9521da177e4SLinus Torvalds depends on S390_HYPFS 9531da177e4SLinus Torvalds help 9543325b4d8SHeiko Carstens This is a virtual file system intended to provide accounting 9556f9a3c33SMartin Schwidefsky information in an s390 hypervisor environment. This file system 9563325b4d8SHeiko Carstens is deprecated and should not be used. 9573325b4d8SHeiko Carstens 9583325b4d8SHeiko Carstens Say N if you are unsure. 9593325b4d8SHeiko Carstens 9603325b4d8SHeiko Carstenssource "arch/s390/kvm/Kconfig" 9613325b4d8SHeiko Carstens 9623325b4d8SHeiko Carstensconfig S390_GUEST 9636f9a3c33SMartin Schwidefsky def_bool y 96424bbb1faSMichael Holzheu prompt "s390 support for virtio devices" 9653325b4d8SHeiko Carstens select TTY 96624bbb1faSMichael Holzheu select VIRTUALIZATION 96724bbb1faSMichael Holzheu select VIRTIO 9683325b4d8SHeiko Carstens help 9693325b4d8SHeiko Carstens Enabling this option adds support for virtio based paravirtual device 9703325b4d8SHeiko Carstens drivers on s390. 9713325b4d8SHeiko Carstens 97224bbb1faSMichael Holzheu Select this option if you want to run the kernel as a guest under 973843c48fdSJan Glauber the KVM hypervisor. 974411ed322SMichael Holzheu 975fa587743SCarsten Otteendmenu 9766f9a3c33SMartin Schwidefsky 977510cf5a6SKees Cookconfig S390_MODULES_SANITY_TEST_HELPERS 97879b6f7fbSChen Gang def_bool n 97980629b0bSChristian Borntraeger 980fa587743SCarsten Ottemenu "Selftests" 981fa587743SCarsten Otte 982bdd1fc27SCornelia Huckconfig S390_UNWIND_SELFTEST 983bdd1fc27SCornelia Huck def_tristate n 984bdd1fc27SCornelia Huck depends on KUNIT 98520766c08SChristian Borntraeger default KUNIT_ALL_TESTS 986bdd1fc27SCornelia Huck prompt "Test unwind functions" 987bcf5cef7SHeiko Carstens help 9881da177e4SLinus Torvalds This option enables s390 specific stack unwinder testing kernel 989badbf397SIlya Leoshkevich module. This option is not useful for distributions or general 99090c53187SIlya Leoshkevich kernels, but only for kernel developers working on architecture code. 99190c53187SIlya Leoshkevich 99290c53187SIlya Leoshkevich Say N if you are unsure. 993badbf397SIlya Leoshkevich 994badbf397SIlya Leoshkevichconfig S390_KPROBES_SANITY_TEST 995badbf397SIlya Leoshkevich def_tristate n 996badbf397SIlya Leoshkevich prompt "Enable s390 specific kprobes tests" 99725d36a85SMete Durlu depends on KPROBES 99825d36a85SMete Durlu depends on KUNIT 999badbf397SIlya Leoshkevich help 1000badbf397SIlya Leoshkevich This option enables an s390 specific kprobes test module. This option 1001badbf397SIlya Leoshkevich is not useful for distributions or general kernels, but only for kernel 1002badbf397SIlya Leoshkevich developers working on architecture code. 1003badbf397SIlya Leoshkevich 1004badbf397SIlya Leoshkevich Say N if you are unsure. 1005badbf397SIlya Leoshkevich 1006badbf397SIlya Leoshkevichconfig S390_MODULES_SANITY_TEST 1007d340d28aSSven Schnelle def_tristate n 1008d340d28aSSven Schnelle depends on KUNIT 1009d340d28aSSven Schnelle default KUNIT_ALL_TESTS 1010d340d28aSSven Schnelle prompt "Enable s390 specific modules tests" 1011d340d28aSSven Schnelle select S390_MODULES_SANITY_TEST_HELPERS 1012d340d28aSSven Schnelle help 1013d340d28aSSven Schnelle This option enables an s390 specific modules test. This option is 1014d340d28aSSven Schnelle not useful for distributions or general kernels, but only for 1015d340d28aSSven Schnelle kernel developers working on architecture code. 1016d340d28aSSven Schnelle 1017d340d28aSSven Schnelle Say N if you are unsure. 1018d340d28aSSven Schnelleendmenu 101990c53187SIlya Leoshkevich