Kconfig 27 KB

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