Kconfig 26 KB

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