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