Kconfig 25 KB

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