Kconfig 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  1. config DEFCONFIG_LIST
  2. string
  3. option defconfig_list
  4. default "arch/$ARCH/defconfig"
  5. # UML uses the generic IRQ sugsystem
  6. config GENERIC_HARDIRQS
  7. bool
  8. default y
  9. config UML
  10. bool
  11. default y
  12. config MMU
  13. bool
  14. default y
  15. mainmenu "Linux/Usermode Kernel Configuration"
  16. config ISA
  17. bool
  18. config SBUS
  19. bool
  20. config PCI
  21. bool
  22. config PCMCIA
  23. bool
  24. # Yet to do!
  25. config TRACE_IRQFLAGS_SUPPORT
  26. bool
  27. default n
  28. config LOCKDEP_SUPPORT
  29. bool
  30. default y
  31. config STACKTRACE_SUPPORT
  32. bool
  33. default y
  34. config GENERIC_CALIBRATE_DELAY
  35. bool
  36. default y
  37. config GENERIC_BUG
  38. bool
  39. default y
  40. depends on BUG
  41. # Used in kernel/irq/manage.c and include/linux/irq.h
  42. config IRQ_RELEASE_METHOD
  43. bool
  44. default y
  45. menu "UML-specific options"
  46. config MODE_TT
  47. bool "Tracing thread support (DEPRECATED)"
  48. default n
  49. depends on BROKEN
  50. help
  51. This option controls whether tracing thread support is compiled
  52. into UML. This option is largely obsolete, given that skas0 provides
  53. skas security and performance without needing to patch the host.
  54. It is safe to say 'N' here; saying 'Y' may cause additional problems
  55. with the resulting binary even if you run UML in SKAS mode, and running
  56. in TT mode is strongly *NOT RECOMMENDED*.
  57. config STATIC_LINK
  58. bool "Force a static link"
  59. default n
  60. depends on !MODE_TT
  61. help
  62. If CONFIG_MODE_TT is disabled, then this option gives you the ability
  63. to force a static link of UML. Normally, if only skas mode is built
  64. in to UML, it will be linked as a shared binary. This is inconvenient
  65. for use in a chroot jail. So, if you intend to run UML inside a
  66. chroot, and you disable CONFIG_MODE_TT, you probably want to say Y
  67. here.
  68. Additionally, this option enables using higher memory spaces (up to
  69. 2.75G) for UML - disabling CONFIG_MODE_TT and enabling this option leads
  70. to best results for this.
  71. config KERNEL_HALF_GIGS
  72. int "Kernel address space size (in .5G units)"
  73. default "1"
  74. depends on MODE_TT
  75. help
  76. This determines the amount of address space that UML will allocate for
  77. its own, measured in half Gigabyte units. The default is 1.
  78. Change this only if you need to boot UML with an unusually large amount
  79. of physical memory.
  80. config MODE_SKAS
  81. bool "Separate Kernel Address Space support" if MODE_TT
  82. default y
  83. help
  84. This option controls whether skas (separate kernel address space)
  85. support is compiled in.
  86. Unless you have specific needs to use TT mode (which applies almost only
  87. to developers), you should say Y here.
  88. SKAS mode will make use of the SKAS3 patch if it is applied on the host
  89. (and your UML will run in SKAS3 mode), but if no SKAS patch is applied
  90. on the host it will run in SKAS0 mode, which is anyway faster than TT
  91. mode.
  92. source "arch/um/Kconfig.arch"
  93. source "mm/Kconfig"
  94. config LD_SCRIPT_STATIC
  95. bool
  96. default y
  97. depends on MODE_TT || STATIC_LINK
  98. config LD_SCRIPT_DYN
  99. bool
  100. default y
  101. depends on !LD_SCRIPT_STATIC
  102. config NET
  103. bool "Networking support"
  104. help
  105. Unless you really know what you are doing, you should say Y here.
  106. The reason is that some programs need kernel networking support even
  107. when running on a stand-alone machine that isn't connected to any
  108. other computer. If you are upgrading from an older kernel, you
  109. should consider updating your networking tools too because changes
  110. in the kernel and the tools often go hand in hand. The tools are
  111. contained in the package net-tools, the location and version number
  112. of which are given in <file:Documentation/Changes>.
  113. For a general introduction to Linux networking, it is highly
  114. recommended to read the NET-HOWTO, available from
  115. <http://www.tldp.org/docs.html#howto>.
  116. source "fs/Kconfig.binfmt"
  117. config HOSTFS
  118. tristate "Host filesystem"
  119. help
  120. While the User-Mode Linux port uses its own root file system for
  121. booting and normal file access, this module lets the UML user
  122. access files stored on the host. It does not require any
  123. network connection between the Host and UML. An example use of
  124. this might be:
  125. mount none /tmp/fromhost -t hostfs -o /tmp/umlshare
  126. where /tmp/fromhost is an empty directory inside UML and
  127. /tmp/umlshare is a directory on the host with files the UML user
  128. wishes to access.
  129. For more information, see
  130. <http://user-mode-linux.sourceforge.net/hostfs.html>.
  131. If you'd like to be able to work with files stored on the host,
  132. say Y or M here; otherwise say N.
  133. config HPPFS
  134. tristate "HoneyPot ProcFS (EXPERIMENTAL)"
  135. depends on EXPERIMENTAL
  136. help
  137. hppfs (HoneyPot ProcFS) is a filesystem which allows UML /proc
  138. entries to be overridden, removed, or fabricated from the host.
  139. Its purpose is to allow a UML to appear to be a physical machine
  140. by removing or changing anything in /proc which gives away the
  141. identity of a UML.
  142. See <http://user-mode-linux.sf.net/hppfs.html> for more information.
  143. You only need this if you are setting up a UML honeypot. Otherwise,
  144. it is safe to say 'N' here.
  145. config MCONSOLE
  146. bool "Management console"
  147. default y
  148. help
  149. The user mode linux management console is a low-level interface to
  150. the kernel, somewhat like the i386 SysRq interface. Since there is
  151. a full-blown operating system running under every user mode linux
  152. instance, there is much greater flexibility possible than with the
  153. SysRq mechanism.
  154. If you answer 'Y' to this option, to use this feature, you need the
  155. mconsole client (called uml_mconsole) which is present in CVS in
  156. 2.4.5-9um and later (path /tools/mconsole), and is also in the
  157. distribution RPM package in 2.4.6 and later.
  158. It is safe to say 'Y' here.
  159. config MAGIC_SYSRQ
  160. bool "Magic SysRq key"
  161. depends on MCONSOLE
  162. ---help---
  163. If you say Y here, you will have some control over the system even
  164. if the system crashes for example during kernel debugging (e.g., you
  165. will be able to flush the buffer cache to disk, reboot the system
  166. immediately or dump some status information). A key for each of the
  167. possible requests is provided.
  168. This is the feature normally accomplished by pressing a key
  169. while holding SysRq (Alt+PrintScreen).
  170. On UML, this is accomplished by sending a "sysrq" command with
  171. mconsole, followed by the letter for the requested command.
  172. The keys are documented in <file:Documentation/sysrq.txt>. Don't say Y
  173. unless you really know what this hack does.
  174. config SMP
  175. bool "Symmetric multi-processing support (EXPERIMENTAL)"
  176. default n
  177. #SMP_BROKEN is for x86_64.
  178. depends on MODE_TT && EXPERIMENTAL && (!SMP_BROKEN || (BROKEN && SMP_BROKEN))
  179. help
  180. This option enables UML SMP support.
  181. It is NOT related to having a real SMP box. Not directly, at least.
  182. UML implements virtual SMP by allowing as many processes to run
  183. simultaneously on the host as there are virtual processors configured.
  184. Obviously, if the host is a uniprocessor, those processes will
  185. timeshare, but, inside UML, will appear to be running simultaneously.
  186. If the host is a multiprocessor, then UML processes may run
  187. simultaneously, depending on the host scheduler.
  188. This, however, is supported only in TT mode. So, if you use the SKAS
  189. patch on your host, switching to TT mode and enabling SMP usually gives
  190. you worse performances.
  191. Also, since the support for SMP has been under-developed, there could
  192. be some bugs being exposed by enabling SMP.
  193. If you don't know what to do, say N.
  194. config NR_CPUS
  195. int "Maximum number of CPUs (2-32)"
  196. range 2 32
  197. depends on SMP
  198. default "32"
  199. config NEST_LEVEL
  200. int "Nesting level"
  201. default "0"
  202. help
  203. This is set to the number of layers of UMLs that this UML will be run
  204. in. Normally, this is zero, meaning that it will run directly on the
  205. host. Setting it to one will build a UML that can run inside a UML
  206. that is running on the host. Generally, if you intend this UML to run
  207. inside another UML, set CONFIG_NEST_LEVEL to one more than the host
  208. UML.
  209. Note that if the hosting UML has its CONFIG_KERNEL_HALF_GIGS set to
  210. greater than one, then the guest UML should have its CONFIG_NEST_LEVEL
  211. set to the host's CONFIG_NEST_LEVEL + CONFIG_KERNEL_HALF_GIGS.
  212. Only change this if you are running nested UMLs.
  213. config HIGHMEM
  214. bool "Highmem support (EXPERIMENTAL)"
  215. depends on !64BIT && EXPERIMENTAL
  216. default n
  217. help
  218. This was used to allow UML to run with big amounts of memory.
  219. Currently it is unstable, so if unsure say N.
  220. To use big amounts of memory, it is recommended to disable TT mode (i.e.
  221. CONFIG_MODE_TT) and enable static linking (i.e. CONFIG_STATIC_LINK) -
  222. this should allow the guest to use up to 2.75G of memory.
  223. config KERNEL_STACK_ORDER
  224. int "Kernel stack size order"
  225. default 2
  226. help
  227. This option determines the size of UML kernel stacks. They will
  228. be 1 << order pages. The default is OK unless you're running Valgrind
  229. on UML, in which case, set this to 3.
  230. config UML_REAL_TIME_CLOCK
  231. bool "Real-time Clock"
  232. default y
  233. help
  234. This option makes UML time deltas match wall clock deltas. This should
  235. normally be enabled. The exception would be if you are debugging with
  236. UML and spend long times with UML stopped at a breakpoint. In this
  237. case, when UML is restarted, it will call the timer enough times to make
  238. up for the time spent at the breakpoint. This could result in a
  239. noticeable lag. If this is a problem, then disable this option.
  240. endmenu
  241. source "init/Kconfig"
  242. source "drivers/block/Kconfig"
  243. source "arch/um/Kconfig.char"
  244. source "drivers/base/Kconfig"
  245. source "net/Kconfig"
  246. source "arch/um/Kconfig.net"
  247. source "drivers/net/Kconfig"
  248. source "drivers/connector/Kconfig"
  249. source "fs/Kconfig"
  250. source "security/Kconfig"
  251. source "crypto/Kconfig"
  252. source "lib/Kconfig"
  253. menu "SCSI support"
  254. depends on BROKEN
  255. config SCSI
  256. tristate "SCSI support"
  257. # This gives us free_dma, which scsi.c wants.
  258. config GENERIC_ISA_DMA
  259. bool
  260. depends on SCSI
  261. default y
  262. source "arch/um/Kconfig.scsi"
  263. endmenu
  264. source "drivers/md/Kconfig"
  265. if BROKEN
  266. source "drivers/mtd/Kconfig"
  267. endif
  268. #This is just to shut up some Kconfig warnings, so no prompt.
  269. config INPUT
  270. bool
  271. default n
  272. source "arch/um/Kconfig.debug"