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