Kconfig 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. # SPDX-License-Identifier: GPL-2.0
  2. menu "UML Character Devices"
  3. config STDERR_CONSOLE
  4. bool "stderr console"
  5. default y
  6. help
  7. console driver which dumps all printk messages to stderr.
  8. config SSL
  9. bool "Virtual serial line"
  10. help
  11. The User-Mode Linux environment allows you to create virtual serial
  12. lines on the UML that are usually made to show up on the host as
  13. ttys or ptys.
  14. See <http://user-mode-linux.sourceforge.net/old/input.html> for more
  15. information and command line examples of how to use this facility.
  16. Unless you have a specific reason for disabling this, say Y.
  17. config NULL_CHAN
  18. bool "null channel support"
  19. help
  20. This option enables support for attaching UML consoles and serial
  21. lines to a device similar to /dev/null. Data written to it disappears
  22. and there is never any data to be read.
  23. config PORT_CHAN
  24. bool "port channel support"
  25. help
  26. This option enables support for attaching UML consoles and serial
  27. lines to host portals. They may be accessed with 'telnet <host>
  28. <port number>'. Any number of consoles and serial lines may be
  29. attached to a single portal, although what UML device you get when
  30. you telnet to that portal will be unpredictable.
  31. It is safe to say 'Y' here.
  32. config PTY_CHAN
  33. bool "pty channel support"
  34. help
  35. This option enables support for attaching UML consoles and serial
  36. lines to host pseudo-terminals. Access to both traditional
  37. pseudo-terminals (/dev/pty*) and pts pseudo-terminals are controlled
  38. with this option. The assignment of UML devices to host devices
  39. will be announced in the kernel message log.
  40. It is safe to say 'Y' here.
  41. config TTY_CHAN
  42. bool "tty channel support"
  43. help
  44. This option enables support for attaching UML consoles and serial
  45. lines to host terminals. Access to both virtual consoles
  46. (/dev/tty*) and the slave side of pseudo-terminals (/dev/ttyp* and
  47. /dev/pts/*) are controlled by this option.
  48. It is safe to say 'Y' here.
  49. config XTERM_CHAN
  50. bool "xterm channel support"
  51. help
  52. This option enables support for attaching UML consoles and serial
  53. lines to xterms. Each UML device so assigned will be brought up in
  54. its own xterm.
  55. It is safe to say 'Y' here.
  56. config XTERM_CHAN_DEFAULT_EMULATOR
  57. string "xterm channel default terminal emulator"
  58. depends on XTERM_CHAN
  59. default "xterm"
  60. help
  61. This option allows changing the default terminal emulator.
  62. config NOCONFIG_CHAN
  63. bool
  64. default !(XTERM_CHAN && TTY_CHAN && PTY_CHAN && PORT_CHAN && NULL_CHAN)
  65. config CON_ZERO_CHAN
  66. string "Default main console channel initialization"
  67. default "fd:0,fd:1"
  68. help
  69. This is the string describing the channel to which the main console
  70. will be attached by default. This value can be overridden from the
  71. command line. The default value is "fd:0,fd:1", which attaches the
  72. main console to stdin and stdout.
  73. It is safe to leave this unchanged.
  74. config CON_CHAN
  75. string "Default console channel initialization"
  76. default "xterm"
  77. help
  78. This is the string describing the channel to which all consoles
  79. except the main console will be attached by default. This value can
  80. be overridden from the command line. The default value is "xterm",
  81. which brings them up in xterms.
  82. It is safe to leave this unchanged, although you may wish to change
  83. this if you expect the UML that you build to be run in environments
  84. which don't have X or xterm available.
  85. config SSL_CHAN
  86. string "Default serial line channel initialization"
  87. default "pty"
  88. help
  89. This is the string describing the channel to which the serial lines
  90. will be attached by default. This value can be overridden from the
  91. command line. The default value is "pty", which attaches them to
  92. traditional pseudo-terminals.
  93. It is safe to leave this unchanged, although you may wish to change
  94. this if you expect the UML that you build to be run in environments
  95. which don't have a set of /dev/pty* devices.
  96. config UML_SOUND
  97. tristate "Sound support"
  98. depends on SOUND
  99. select SOUND_OSS_CORE
  100. help
  101. This option enables UML sound support. If enabled, it will pull in
  102. the UML hostaudio relay, which acts as a intermediary
  103. between the host's dsp and mixer devices and the UML sound system.
  104. It is safe to say 'Y' here.
  105. endmenu
  106. menu "UML Network Devices"
  107. depends on NET
  108. # UML virtual driver
  109. config UML_NET
  110. bool "Virtual network device"
  111. help
  112. While the User-Mode port cannot directly talk to any physical
  113. hardware devices, this choice and the following transport options
  114. provide one or more virtual network devices through which the UML
  115. kernels can talk to each other, the host, and with the host's help,
  116. machines on the outside world.
  117. For more information, including explanations of the networking and
  118. sample configurations, see
  119. <http://user-mode-linux.sourceforge.net/old/networking.html>.
  120. If you'd like to be able to enable networking in the User-Mode
  121. linux environment, say Y; otherwise say N. Note that you must
  122. enable at least one of the following transport options to actually
  123. make use of UML networking.
  124. config UML_NET_ETHERTAP
  125. bool "Ethertap transport (obsolete)"
  126. depends on UML_NET
  127. help
  128. The Ethertap User-Mode Linux network transport allows a single
  129. running UML to exchange packets with its host over one of the
  130. host's Ethertap devices, such as /dev/tap0. Additional running
  131. UMLs can use additional Ethertap devices, one per running UML.
  132. While the UML believes it's on a (multi-device, broadcast) virtual
  133. Ethernet network, it's in fact communicating over a point-to-point
  134. link with the host.
  135. To use this, your host kernel must have support for Ethertap
  136. devices. Also, if your host kernel is 2.4.x, it must have
  137. CONFIG_NETLINK_DEV configured as Y or M.
  138. For more information, see
  139. <http://user-mode-linux.sourceforge.net/old/networking.html> That site
  140. has examples of the UML command line to use to enable Ethertap
  141. networking.
  142. NOTE: THIS TRANSPORT IS DEPRECATED AND WILL BE REMOVED SOON!!! Please
  143. migrate to UML_NET_VECTOR.
  144. If unsure, say N.
  145. config UML_NET_TUNTAP
  146. bool "TUN/TAP transport (obsolete)"
  147. depends on UML_NET
  148. help
  149. The UML TUN/TAP network transport allows a UML instance to exchange
  150. packets with the host over a TUN/TAP device. This option will only
  151. work with a 2.4 host, unless you've applied the TUN/TAP patch to
  152. your 2.2 host kernel.
  153. To use this transport, your host kernel must have support for TUN/TAP
  154. devices, either built-in or as a module.
  155. NOTE: THIS TRANSPORT IS DEPRECATED AND WILL BE REMOVED SOON!!! Please
  156. migrate to UML_NET_VECTOR.
  157. If unsure, say N.
  158. config UML_NET_SLIP
  159. bool "SLIP transport (obsolete)"
  160. depends on UML_NET
  161. help
  162. The slip User-Mode Linux network transport allows a running UML to
  163. network with its host over a point-to-point link. Unlike Ethertap,
  164. which can carry any Ethernet frame (and hence even non-IP packets),
  165. the slip transport can only carry IP packets.
  166. To use this, your host must support slip devices.
  167. For more information, see
  168. <http://user-mode-linux.sourceforge.net/old/networking.html>.
  169. has examples of the UML command line to use to enable slip
  170. networking, and details of a few quirks with it.
  171. NOTE: THIS TRANSPORT IS DEPRECATED AND WILL BE REMOVED SOON!!! Please
  172. migrate to UML_NET_VECTOR.
  173. If unsure, say N.
  174. config UML_NET_DAEMON
  175. bool "Daemon transport (obsolete)"
  176. depends on UML_NET
  177. help
  178. This User-Mode Linux network transport allows one or more running
  179. UMLs on a single host to communicate with each other, but not to
  180. the host.
  181. To use this form of networking, you'll need to run the UML
  182. networking daemon on the host.
  183. For more information, see
  184. <http://user-mode-linux.sourceforge.net/old/networking.html> That site
  185. has examples of the UML command line to use to enable Daemon
  186. networking.
  187. NOTE: THIS TRANSPORT IS DEPRECATED AND WILL BE REMOVED SOON!!! Please
  188. migrate to UML_NET_VECTOR.
  189. If unsure, say N.
  190. config UML_NET_DAEMON_DEFAULT_SOCK
  191. string "Default socket for daemon transport"
  192. default "/tmp/uml.ctl"
  193. depends on UML_NET_DAEMON
  194. help
  195. This option allows setting the default socket for the daemon
  196. transport, normally it defaults to /tmp/uml.ctl.
  197. config UML_NET_VECTOR
  198. bool "Vector I/O high performance network devices"
  199. depends on UML_NET
  200. select MAY_HAVE_RUNTIME_DEPS
  201. help
  202. This User-Mode Linux network driver uses multi-message send
  203. and receive functions. The host running the UML guest must have
  204. a linux kernel version above 3.0 and a libc version > 2.13.
  205. This driver provides tap, raw, gre and l2tpv3 network transports
  206. with up to 4 times higher network throughput than the UML network
  207. drivers.
  208. config UML_NET_VDE
  209. bool "VDE transport (obsolete)"
  210. depends on UML_NET
  211. select MAY_HAVE_RUNTIME_DEPS
  212. help
  213. This User-Mode Linux network transport allows one or more running
  214. UMLs on a single host to communicate with each other and also
  215. with the rest of the world using Virtual Distributed Ethernet,
  216. an improved fork of uml_switch.
  217. You must have libvdeplug installed in order to build the vde
  218. transport into UML.
  219. To use this form of networking, you will need to run vde_switch
  220. on the host.
  221. For more information, see <http://wiki.virtualsquare.org/>
  222. That site has a good overview of what VDE is and also examples
  223. of the UML command line to use to enable VDE networking.
  224. NOTE: THIS TRANSPORT IS DEPRECATED AND WILL BE REMOVED SOON!!! Please
  225. migrate to UML_NET_VECTOR.
  226. If unsure, say N.
  227. config UML_NET_MCAST
  228. bool "Multicast transport (obsolete)"
  229. depends on UML_NET
  230. help
  231. This Multicast User-Mode Linux network transport allows multiple
  232. UMLs (even ones running on different host machines!) to talk to
  233. each other over a virtual ethernet network. However, it requires
  234. at least one UML with one of the other transports to act as a
  235. bridge if any of them need to be able to talk to their hosts or any
  236. other IP machines.
  237. To use this, your host kernel(s) must support IP Multicasting.
  238. For more information, see
  239. <http://user-mode-linux.sourceforge.net/old/networking.html> That site
  240. has examples of the UML command line to use to enable Multicast
  241. networking, and notes about the security of this approach.
  242. NOTE: THIS TRANSPORT IS DEPRECATED AND WILL BE REMOVED SOON!!! Please
  243. migrate to UML_NET_VECTOR.
  244. If unsure, say N.
  245. config UML_NET_PCAP
  246. bool "pcap transport (obsolete)"
  247. depends on UML_NET
  248. select MAY_HAVE_RUNTIME_DEPS
  249. help
  250. The pcap transport makes a pcap packet stream on the host look
  251. like an ethernet device inside UML. This is useful for making
  252. UML act as a network monitor for the host. You must have libcap
  253. installed in order to build the pcap transport into UML.
  254. For more information, see
  255. <http://user-mode-linux.sourceforge.net/old/networking.html> That site
  256. has examples of the UML command line to use to enable this option.
  257. NOTE: THIS TRANSPORT IS DEPRECATED AND WILL BE REMOVED SOON!!! Please
  258. migrate to UML_NET_VECTOR.
  259. If unsure, say N.
  260. config UML_NET_SLIRP
  261. bool "SLiRP transport (obsolete)"
  262. depends on UML_NET
  263. help
  264. The SLiRP User-Mode Linux network transport allows a running UML
  265. to network by invoking a program that can handle SLIP encapsulated
  266. packets. This is commonly (but not limited to) the application
  267. known as SLiRP, a program that can re-socket IP packets back onto
  268. he host on which it is run. Only IP packets are supported,
  269. unlike other network transports that can handle all Ethernet
  270. frames. In general, slirp allows the UML the same IP connectivity
  271. to the outside world that the host user is permitted, and unlike
  272. other transports, SLiRP works without the need of root level
  273. privileges, setuid binaries, or SLIP devices on the host. This
  274. also means not every type of connection is possible, but most
  275. situations can be accommodated with carefully crafted slirp
  276. commands that can be passed along as part of the network device's
  277. setup string. The effect of this transport on the UML is similar
  278. that of a host behind a firewall that masquerades all network
  279. connections passing through it (but is less secure).
  280. NOTE: THIS TRANSPORT IS DEPRECATED AND WILL BE REMOVED SOON!!! Please
  281. migrate to UML_NET_VECTOR.
  282. If unsure, say N.
  283. Startup example: "eth0=slirp,FE:FD:01:02:03:04,/usr/local/bin/slirp"
  284. endmenu
  285. config VIRTIO_UML
  286. bool "UML driver for virtio devices"
  287. select VIRTIO
  288. help
  289. This driver provides support for virtio based paravirtual device
  290. drivers over vhost-user sockets.
  291. config UML_RTC
  292. bool "UML RTC driver"
  293. depends on RTC_CLASS
  294. # there's no use in this if PM_SLEEP isn't enabled ...
  295. depends on PM_SLEEP
  296. help
  297. When PM_SLEEP is configured, it may be desirable to wake up using
  298. rtcwake, especially in time-travel mode. This driver enables that
  299. by providing a fake RTC clock that causes a wakeup at the right
  300. time.
  301. config UML_PCI_OVER_VIRTIO
  302. bool "Enable PCI over VIRTIO device simulation"
  303. # in theory, just VIRTIO is enough, but that causes recursion
  304. depends on VIRTIO_UML
  305. select FORCE_PCI
  306. select UML_IOMEM_EMULATION
  307. select UML_DMA_EMULATION
  308. select PCI_MSI
  309. select PCI_MSI_IRQ_DOMAIN
  310. select PCI_LOCKLESS_CONFIG
  311. config UML_PCI_OVER_VIRTIO_DEVICE_ID
  312. int "set the virtio device ID for PCI emulation"
  313. default -1
  314. depends on UML_PCI_OVER_VIRTIO
  315. help
  316. There's no official device ID assigned (yet), set the one you
  317. wish to use for experimentation here. The default of -1 is
  318. not valid and will cause the driver to fail at probe.