xref: /openbmc/linux/drivers/virtio/Kconfig (revision bb0eb050)
1config VIRTIO
2	tristate
3	---help---
4	  This option is selected by any driver which implements the virtio
5	  bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_LGUEST,
6	  CONFIG_RPMSG or CONFIG_S390_GUEST.
7
8menu "Virtio drivers"
9
10config VIRTIO_PCI
11	tristate "PCI driver for virtio devices"
12	depends on PCI
13	select VIRTIO
14	---help---
15	  This driver provides support for virtio based paravirtual device
16	  drivers over PCI.  This requires that your VMM has appropriate PCI
17	  virtio backends.  Most QEMU based VMMs should support these devices
18	  (like KVM or Xen).
19
20	  If unsure, say M.
21
22config VIRTIO_PCI_LEGACY
23	bool "Support for legacy virtio draft 0.9.X and older devices"
24	default y
25	depends on VIRTIO_PCI
26	---help---
27          Virtio PCI Card 0.9.X Draft (circa 2014) and older device support.
28
29	  This option enables building a transitional driver, supporting
30	  both devices conforming to Virtio 1 specification, and legacy devices.
31	  If disabled, you get a slightly smaller, non-transitional driver,
32	  with no legacy compatibility.
33
34          So look out into your driveway.  Do you have a flying car?  If
35          so, you can happily disable this option and virtio will not
36          break.  Otherwise, leave it set.  Unless you're testing what
37          life will be like in The Future.
38
39	  If unsure, say Y.
40
41config VIRTIO_BALLOON
42	tristate "Virtio balloon driver"
43	depends on VIRTIO
44	select MEMORY_BALLOON
45	---help---
46	 This driver supports increasing and decreasing the amount
47	 of memory within a KVM guest.
48
49	 If unsure, say M.
50
51config VIRTIO_INPUT
52	tristate "Virtio input driver"
53	depends on VIRTIO
54	depends on INPUT
55	---help---
56	 This driver supports virtio input devices such as
57	 keyboards, mice and tablets.
58
59	 If unsure, say M.
60
61 config VIRTIO_MMIO
62	tristate "Platform bus driver for memory mapped virtio devices"
63	depends on HAS_IOMEM && HAS_DMA
64 	select VIRTIO
65 	---help---
66 	 This drivers provides support for memory mapped virtio
67	 platform device driver.
68
69 	 If unsure, say N.
70
71config VIRTIO_MMIO_CMDLINE_DEVICES
72	bool "Memory mapped virtio devices parameter parsing"
73	depends on VIRTIO_MMIO
74	---help---
75	 Allow virtio-mmio devices instantiation via the kernel command line
76	 or module parameters. Be aware that using incorrect parameters (base
77	 address in particular) can crash your system - you have been warned.
78	 See Documentation/admin-guide/kernel-parameters.rst for details.
79
80	 If unsure, say 'N'.
81
82endmenu
83