Kconfig 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  1. config MMU
  2. def_bool y
  3. config ZONE_DMA
  4. def_bool y
  5. config LOCKDEP_SUPPORT
  6. def_bool y
  7. config STACKTRACE_SUPPORT
  8. def_bool y
  9. config HAVE_LATENCYTOP_SUPPORT
  10. def_bool y
  11. config RWSEM_GENERIC_SPINLOCK
  12. bool
  13. config RWSEM_XCHGADD_ALGORITHM
  14. def_bool y
  15. config ARCH_HAS_ILOG2_U32
  16. def_bool n
  17. config ARCH_HAS_ILOG2_U64
  18. def_bool n
  19. config GENERIC_HWEIGHT
  20. def_bool y
  21. config GENERIC_BUG
  22. def_bool y if BUG
  23. config GENERIC_BUG_RELATIVE_POINTERS
  24. def_bool y
  25. config NO_IOMEM
  26. def_bool y
  27. config NO_DMA
  28. def_bool y
  29. config ARCH_DMA_ADDR_T_64BIT
  30. def_bool 64BIT
  31. config GENERIC_LOCKBREAK
  32. def_bool y if SMP && PREEMPT
  33. config PGSTE
  34. def_bool y if KVM
  35. config VIRT_CPU_ACCOUNTING
  36. def_bool y
  37. config ARCH_SUPPORTS_DEBUG_PAGEALLOC
  38. def_bool y
  39. config KEXEC
  40. def_bool y
  41. config AUDIT_ARCH
  42. def_bool y
  43. config S390
  44. def_bool y
  45. select USE_GENERIC_SMP_HELPERS if SMP
  46. select GENERIC_CPU_DEVICES if !SMP
  47. select HAVE_SYSCALL_WRAPPERS
  48. select HAVE_FUNCTION_TRACER
  49. select HAVE_FUNCTION_TRACE_MCOUNT_TEST
  50. select HAVE_FTRACE_MCOUNT_RECORD
  51. select HAVE_C_RECORDMCOUNT
  52. select HAVE_SYSCALL_TRACEPOINTS
  53. select HAVE_DYNAMIC_FTRACE
  54. select HAVE_FUNCTION_GRAPH_TRACER
  55. select HAVE_REGS_AND_STACK_ACCESS_API
  56. select HAVE_OPROFILE
  57. select HAVE_KPROBES
  58. select HAVE_KRETPROBES
  59. select HAVE_KVM if 64BIT
  60. select HAVE_ARCH_TRACEHOOK
  61. select INIT_ALL_POSSIBLE
  62. select HAVE_IRQ_WORK
  63. select HAVE_PERF_EVENTS
  64. select ARCH_HAVE_NMI_SAFE_CMPXCHG
  65. select HAVE_KERNEL_GZIP
  66. select HAVE_KERNEL_BZIP2
  67. select HAVE_KERNEL_LZMA
  68. select HAVE_KERNEL_LZO
  69. select HAVE_KERNEL_XZ
  70. select HAVE_ARCH_MUTEX_CPU_RELAX
  71. select HAVE_ARCH_JUMP_LABEL if !MARCH_G5
  72. select HAVE_BPF_JIT if 64BIT && PACK_STACK
  73. select ARCH_SAVE_PAGE_KEYS if HIBERNATION
  74. select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
  75. select HAVE_MEMBLOCK
  76. select HAVE_MEMBLOCK_NODE_MAP
  77. select HAVE_CMPXCHG_LOCAL
  78. select ARCH_DISCARD_MEMBLOCK
  79. select BUILDTIME_EXTABLE_SORT
  80. select ARCH_INLINE_SPIN_TRYLOCK
  81. select ARCH_INLINE_SPIN_TRYLOCK_BH
  82. select ARCH_INLINE_SPIN_LOCK
  83. select ARCH_INLINE_SPIN_LOCK_BH
  84. select ARCH_INLINE_SPIN_LOCK_IRQ
  85. select ARCH_INLINE_SPIN_LOCK_IRQSAVE
  86. select ARCH_INLINE_SPIN_UNLOCK
  87. select ARCH_INLINE_SPIN_UNLOCK_BH
  88. select ARCH_INLINE_SPIN_UNLOCK_IRQ
  89. select ARCH_INLINE_SPIN_UNLOCK_IRQRESTORE
  90. select ARCH_INLINE_READ_TRYLOCK
  91. select ARCH_INLINE_READ_LOCK
  92. select ARCH_INLINE_READ_LOCK_BH
  93. select ARCH_INLINE_READ_LOCK_IRQ
  94. select ARCH_INLINE_READ_LOCK_IRQSAVE
  95. select ARCH_INLINE_READ_UNLOCK
  96. select ARCH_INLINE_READ_UNLOCK_BH
  97. select ARCH_INLINE_READ_UNLOCK_IRQ
  98. select ARCH_INLINE_READ_UNLOCK_IRQRESTORE
  99. select ARCH_INLINE_WRITE_TRYLOCK
  100. select ARCH_INLINE_WRITE_LOCK
  101. select ARCH_INLINE_WRITE_LOCK_BH
  102. select ARCH_INLINE_WRITE_LOCK_IRQ
  103. select ARCH_INLINE_WRITE_LOCK_IRQSAVE
  104. select ARCH_INLINE_WRITE_UNLOCK
  105. select ARCH_INLINE_WRITE_UNLOCK_BH
  106. select ARCH_INLINE_WRITE_UNLOCK_IRQ
  107. select ARCH_INLINE_WRITE_UNLOCK_IRQRESTORE
  108. select ARCH_WANT_IPC_PARSE_VERSION
  109. select GENERIC_SMP_IDLE_THREAD
  110. select GENERIC_TIME_VSYSCALL
  111. select GENERIC_CLOCKEVENTS
  112. select KTIME_SCALAR if 32BIT
  113. select HAVE_ARCH_SECCOMP_FILTER
  114. config SCHED_OMIT_FRAME_POINTER
  115. def_bool y
  116. source "init/Kconfig"
  117. source "kernel/Kconfig.freezer"
  118. menu "Processor type and features"
  119. config HAVE_MARCH_Z900_FEATURES
  120. def_bool n
  121. config HAVE_MARCH_Z990_FEATURES
  122. def_bool n
  123. select HAVE_MARCH_Z900_FEATURES
  124. config HAVE_MARCH_Z9_109_FEATURES
  125. def_bool n
  126. select HAVE_MARCH_Z990_FEATURES
  127. config HAVE_MARCH_Z10_FEATURES
  128. def_bool n
  129. select HAVE_MARCH_Z9_109_FEATURES
  130. config HAVE_MARCH_Z196_FEATURES
  131. def_bool n
  132. select HAVE_MARCH_Z10_FEATURES
  133. choice
  134. prompt "Processor type"
  135. default MARCH_G5
  136. config MARCH_G5
  137. bool "System/390 model G5 and G6"
  138. depends on !64BIT
  139. help
  140. Select this to build a 31 bit kernel that works
  141. on all ESA/390 and z/Architecture machines.
  142. config MARCH_Z900
  143. bool "IBM zSeries model z800 and z900"
  144. select HAVE_MARCH_Z900_FEATURES if 64BIT
  145. help
  146. Select this to enable optimizations for model z800/z900 (2064 and
  147. 2066 series). This will enable some optimizations that are not
  148. available on older ESA/390 (31 Bit) only CPUs.
  149. config MARCH_Z990
  150. bool "IBM zSeries model z890 and z990"
  151. select HAVE_MARCH_Z990_FEATURES if 64BIT
  152. help
  153. Select this to enable optimizations for model z890/z990 (2084 and
  154. 2086 series). The kernel will be slightly faster but will not work
  155. on older machines.
  156. config MARCH_Z9_109
  157. bool "IBM System z9"
  158. select HAVE_MARCH_Z9_109_FEATURES if 64BIT
  159. help
  160. Select this to enable optimizations for IBM System z9 (2094 and
  161. 2096 series). The kernel will be slightly faster but will not work
  162. on older machines.
  163. config MARCH_Z10
  164. bool "IBM System z10"
  165. select HAVE_MARCH_Z10_FEATURES if 64BIT
  166. help
  167. Select this to enable optimizations for IBM System z10 (2097 and
  168. 2098 series). The kernel will be slightly faster but will not work
  169. on older machines.
  170. config MARCH_Z196
  171. bool "IBM zEnterprise 114 and 196"
  172. select HAVE_MARCH_Z196_FEATURES if 64BIT
  173. help
  174. Select this to enable optimizations for IBM zEnterprise 114 and 196
  175. (2818 and 2817 series). The kernel will be slightly faster but will
  176. not work on older machines.
  177. endchoice
  178. config 64BIT
  179. def_bool y
  180. prompt "64 bit kernel"
  181. help
  182. Select this option if you have an IBM z/Architecture machine
  183. and want to use the 64 bit addressing mode.
  184. config 32BIT
  185. def_bool y if !64BIT
  186. config COMPAT
  187. def_bool y
  188. prompt "Kernel support for 31 bit emulation"
  189. depends on 64BIT
  190. select COMPAT_BINFMT_ELF if BINFMT_ELF
  191. select ARCH_WANT_OLD_COMPAT_IPC
  192. help
  193. Select this option if you want to enable your system kernel to
  194. handle system-calls from ELF binaries for 31 bit ESA. This option
  195. (and some other stuff like libraries and such) is needed for
  196. executing 31 bit applications. It is safe to say "Y".
  197. config SYSVIPC_COMPAT
  198. def_bool y if COMPAT && SYSVIPC
  199. config KEYS_COMPAT
  200. def_bool y if COMPAT && KEYS
  201. config SMP
  202. def_bool y
  203. prompt "Symmetric multi-processing support"
  204. ---help---
  205. This enables support for systems with more than one CPU. If you have
  206. a system with only one CPU, like most personal computers, say N. If
  207. you have a system with more than one CPU, say Y.
  208. If you say N here, the kernel will run on single and multiprocessor
  209. machines, but will use only one CPU of a multiprocessor machine. If
  210. you say Y here, the kernel will run on many, but not all,
  211. singleprocessor machines. On a singleprocessor machine, the kernel
  212. will run faster if you say N here.
  213. See also the SMP-HOWTO available at
  214. <http://www.tldp.org/docs.html#howto>.
  215. Even if you don't know what to do here, say Y.
  216. config NR_CPUS
  217. int "Maximum number of CPUs (2-64)"
  218. range 2 64
  219. depends on SMP
  220. default "32" if !64BIT
  221. default "64" if 64BIT
  222. help
  223. This allows you to specify the maximum number of CPUs which this
  224. kernel will support. The maximum supported value is 64 and the
  225. minimum value which makes sense is 2.
  226. This is purely to save memory - each supported CPU adds
  227. approximately sixteen kilobytes to the kernel image.
  228. config HOTPLUG_CPU
  229. def_bool y
  230. prompt "Support for hot-pluggable CPUs"
  231. depends on SMP
  232. select HOTPLUG
  233. help
  234. Say Y here to be able to turn CPUs off and on. CPUs
  235. can be controlled through /sys/devices/system/cpu/cpu#.
  236. Say N if you want to disable CPU hotplug.
  237. config SCHED_MC
  238. def_bool n
  239. config SCHED_BOOK
  240. def_bool y
  241. prompt "Book scheduler support"
  242. depends on SMP
  243. select SCHED_MC
  244. help
  245. Book scheduler support improves the CPU scheduler's decision making
  246. when dealing with machines that have several books.
  247. source kernel/Kconfig.preempt
  248. config MATHEMU
  249. def_bool y
  250. prompt "IEEE FPU emulation"
  251. depends on MARCH_G5
  252. help
  253. This option is required for IEEE compliant floating point arithmetic
  254. on older ESA/390 machines. Say Y unless you know your machine doesn't
  255. need this.
  256. source kernel/Kconfig.hz
  257. endmenu
  258. menu "Memory setup"
  259. config ARCH_SPARSEMEM_ENABLE
  260. def_bool y
  261. select SPARSEMEM_VMEMMAP_ENABLE
  262. select SPARSEMEM_VMEMMAP
  263. select SPARSEMEM_STATIC if !64BIT
  264. config ARCH_SPARSEMEM_DEFAULT
  265. def_bool y
  266. config ARCH_SELECT_MEMORY_MODEL
  267. def_bool y
  268. config ARCH_ENABLE_MEMORY_HOTPLUG
  269. def_bool y if SPARSEMEM
  270. config ARCH_ENABLE_MEMORY_HOTREMOVE
  271. def_bool y
  272. config FORCE_MAX_ZONEORDER
  273. int
  274. default "9"
  275. source "mm/Kconfig"
  276. config PACK_STACK
  277. def_bool y
  278. prompt "Pack kernel stack"
  279. help
  280. This option enables the compiler option -mkernel-backchain if it
  281. is available. If the option is available the compiler supports
  282. the new stack layout which dramatically reduces the minimum stack
  283. frame size. With an old compiler a non-leaf function needs a
  284. minimum of 96 bytes on 31 bit and 160 bytes on 64 bit. With
  285. -mkernel-backchain the minimum size drops to 16 byte on 31 bit
  286. and 24 byte on 64 bit.
  287. Say Y if you are unsure.
  288. config SMALL_STACK
  289. def_bool n
  290. prompt "Use 8kb for kernel stack instead of 16kb"
  291. depends on PACK_STACK && 64BIT && !LOCKDEP
  292. help
  293. If you say Y here and the compiler supports the -mkernel-backchain
  294. option the kernel will use a smaller kernel stack size. The reduced
  295. size is 8kb instead of 16kb. This allows to run more threads on a
  296. system and reduces the pressure on the memory management for higher
  297. order page allocations.
  298. Say N if you are unsure.
  299. config CHECK_STACK
  300. def_bool y
  301. prompt "Detect kernel stack overflow"
  302. help
  303. This option enables the compiler option -mstack-guard and
  304. -mstack-size if they are available. If the compiler supports them
  305. it will emit additional code to each function prolog to trigger
  306. an illegal operation if the kernel stack is about to overflow.
  307. Say N if you are unsure.
  308. config STACK_GUARD
  309. int "Size of the guard area (128-1024)"
  310. range 128 1024
  311. depends on CHECK_STACK
  312. default "256"
  313. help
  314. This allows you to specify the size of the guard area at the lower
  315. end of the kernel stack. If the kernel stack points into the guard
  316. area on function entry an illegal operation is triggered. The size
  317. needs to be a power of 2. Please keep in mind that the size of an
  318. interrupt frame is 184 bytes for 31 bit and 328 bytes on 64 bit.
  319. The minimum size for the stack guard should be 256 for 31 bit and
  320. 512 for 64 bit.
  321. config WARN_DYNAMIC_STACK
  322. def_bool n
  323. prompt "Emit compiler warnings for function with dynamic stack usage"
  324. help
  325. This option enables the compiler option -mwarn-dynamicstack. If the
  326. compiler supports this options generates warnings for functions
  327. that dynamically allocate stack space using alloca.
  328. Say N if you are unsure.
  329. endmenu
  330. menu "I/O subsystem"
  331. config QDIO
  332. def_tristate y
  333. prompt "QDIO support"
  334. ---help---
  335. This driver provides the Queued Direct I/O base support for
  336. IBM System z.
  337. To compile this driver as a module, choose M here: the
  338. module will be called qdio.
  339. If unsure, say Y.
  340. config CHSC_SCH
  341. def_tristate m
  342. prompt "Support for CHSC subchannels"
  343. help
  344. This driver allows usage of CHSC subchannels. A CHSC subchannel
  345. is usually present on LPAR only.
  346. The driver creates a device /dev/chsc, which may be used to
  347. obtain I/O configuration information about the machine and
  348. to issue asynchronous chsc commands (DANGEROUS).
  349. You will usually only want to use this interface on a special
  350. LPAR designated for system management.
  351. To compile this driver as a module, choose M here: the
  352. module will be called chsc_sch.
  353. If unsure, say N.
  354. endmenu
  355. menu "Dump support"
  356. config CRASH_DUMP
  357. bool "kernel crash dumps"
  358. depends on 64BIT && SMP
  359. select KEXEC
  360. help
  361. Generate crash dump after being started by kexec.
  362. Crash dump kernels are loaded in the main kernel with kexec-tools
  363. into a specially reserved region and then later executed after
  364. a crash by kdump/kexec.
  365. For more details see Documentation/kdump/kdump.txt
  366. config ZFCPDUMP
  367. def_bool n
  368. prompt "zfcpdump support"
  369. select SMP
  370. help
  371. Select this option if you want to build an zfcpdump enabled kernel.
  372. Refer to <file:Documentation/s390/zfcpdump.txt> for more details on this.
  373. endmenu
  374. menu "Executable file formats / Emulations"
  375. source "fs/Kconfig.binfmt"
  376. config SECCOMP
  377. def_bool y
  378. prompt "Enable seccomp to safely compute untrusted bytecode"
  379. depends on PROC_FS
  380. help
  381. This kernel feature is useful for number crunching applications
  382. that may need to compute untrusted bytecode during their
  383. execution. By using pipes or other transports made available to
  384. the process as file descriptors supporting the read/write
  385. syscalls, it's possible to isolate those applications in
  386. their own address space using seccomp. Once seccomp is
  387. enabled via /proc/<pid>/seccomp, it cannot be disabled
  388. and the task is only allowed to execute a few safe syscalls
  389. defined by each seccomp mode.
  390. If unsure, say Y.
  391. endmenu
  392. menu "Power Management"
  393. config ARCH_HIBERNATION_POSSIBLE
  394. def_bool y if 64BIT
  395. source "kernel/power/Kconfig"
  396. endmenu
  397. source "net/Kconfig"
  398. config PCMCIA
  399. def_bool n
  400. config CCW
  401. def_bool y
  402. source "drivers/Kconfig"
  403. source "fs/Kconfig"
  404. source "arch/s390/Kconfig.debug"
  405. source "security/Kconfig"
  406. source "crypto/Kconfig"
  407. source "lib/Kconfig"
  408. menu "Virtualization"
  409. config PFAULT
  410. def_bool y
  411. prompt "Pseudo page fault support"
  412. help
  413. Select this option, if you want to use PFAULT pseudo page fault
  414. handling under VM. If running native or in LPAR, this option
  415. has no effect. If your VM does not support PFAULT, PAGEEX
  416. pseudo page fault handling will be used.
  417. Note that VM 4.2 supports PFAULT but has a bug in its
  418. implementation that causes some problems.
  419. Everybody who wants to run Linux under VM != VM4.2 should select
  420. this option.
  421. config SHARED_KERNEL
  422. def_bool y
  423. prompt "VM shared kernel support"
  424. help
  425. Select this option, if you want to share the text segment of the
  426. Linux kernel between different VM guests. This reduces memory
  427. usage with lots of guests but greatly increases kernel size.
  428. Also if a kernel was IPL'ed from a shared segment the kexec system
  429. call will not work.
  430. You should only select this option if you know what you are
  431. doing and want to exploit this feature.
  432. config CMM
  433. def_tristate n
  434. prompt "Cooperative memory management"
  435. help
  436. Select this option, if you want to enable the kernel interface
  437. to reduce the memory size of the system. This is accomplished
  438. by allocating pages of memory and put them "on hold". This only
  439. makes sense for a system running under VM where the unused pages
  440. will be reused by VM for other guest systems. The interface
  441. allows an external monitor to balance memory of many systems.
  442. Everybody who wants to run Linux under VM should select this
  443. option.
  444. config CMM_IUCV
  445. def_bool y
  446. prompt "IUCV special message interface to cooperative memory management"
  447. depends on CMM && (SMSGIUCV=y || CMM=SMSGIUCV)
  448. help
  449. Select this option to enable the special message interface to
  450. the cooperative memory management.
  451. config APPLDATA_BASE
  452. def_bool n
  453. prompt "Linux - VM Monitor Stream, base infrastructure"
  454. depends on PROC_FS
  455. help
  456. This provides a kernel interface for creating and updating z/VM APPLDATA
  457. monitor records. The monitor records are updated at certain time
  458. intervals, once the timer is started.
  459. Writing 1 or 0 to /proc/appldata/timer starts(1) or stops(0) the timer,
  460. i.e. enables or disables monitoring on the Linux side.
  461. A custom interval value (in seconds) can be written to
  462. /proc/appldata/interval.
  463. Defaults are 60 seconds interval and timer off.
  464. The /proc entries can also be read from, showing the current settings.
  465. config APPLDATA_MEM
  466. def_tristate m
  467. prompt "Monitor memory management statistics"
  468. depends on APPLDATA_BASE && VM_EVENT_COUNTERS
  469. help
  470. This provides memory management related data to the Linux - VM Monitor
  471. Stream, like paging/swapping rate, memory utilisation, etc.
  472. Writing 1 or 0 to /proc/appldata/memory creates(1) or removes(0) a z/VM
  473. APPLDATA monitor record, i.e. enables or disables monitoring this record
  474. on the z/VM side.
  475. Default is disabled.
  476. The /proc entry can also be read from, showing the current settings.
  477. This can also be compiled as a module, which will be called
  478. appldata_mem.o.
  479. config APPLDATA_OS
  480. def_tristate m
  481. prompt "Monitor OS statistics"
  482. depends on APPLDATA_BASE
  483. help
  484. This provides OS related data to the Linux - VM Monitor Stream, like
  485. CPU utilisation, etc.
  486. Writing 1 or 0 to /proc/appldata/os creates(1) or removes(0) a z/VM
  487. APPLDATA monitor record, i.e. enables or disables monitoring this record
  488. on the z/VM side.
  489. Default is disabled.
  490. This can also be compiled as a module, which will be called
  491. appldata_os.o.
  492. config APPLDATA_NET_SUM
  493. def_tristate m
  494. prompt "Monitor overall network statistics"
  495. depends on APPLDATA_BASE && NET
  496. help
  497. This provides network related data to the Linux - VM Monitor Stream,
  498. currently there is only a total sum of network I/O statistics, no
  499. per-interface data.
  500. Writing 1 or 0 to /proc/appldata/net_sum creates(1) or removes(0) a z/VM
  501. APPLDATA monitor record, i.e. enables or disables monitoring this record
  502. on the z/VM side.
  503. Default is disabled.
  504. This can also be compiled as a module, which will be called
  505. appldata_net_sum.o.
  506. config S390_HYPFS_FS
  507. def_bool y
  508. prompt "s390 hypervisor file system support"
  509. select SYS_HYPERVISOR
  510. help
  511. This is a virtual file system intended to provide accounting
  512. information in an s390 hypervisor environment.
  513. source "arch/s390/kvm/Kconfig"
  514. config S390_GUEST
  515. def_bool y
  516. prompt "s390 support for virtio devices (EXPERIMENTAL)"
  517. depends on 64BIT && EXPERIMENTAL
  518. select VIRTUALIZATION
  519. select VIRTIO
  520. select VIRTIO_RING
  521. select VIRTIO_CONSOLE
  522. help
  523. Enabling this option adds support for virtio based paravirtual device
  524. drivers on s390.
  525. Select this option if you want to run the kernel as a guest under
  526. the KVM hypervisor.
  527. endmenu