Kconfig 25 KB

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