1 # SPDX-License-Identifier: GPL-2.0-only
9 This option is selected by any driver which implements the virtio
10 bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG
16 Modern PCI device implementation. This module implements the
17 basic probe and control for devices which are based on modern
18 PCI device with possible vendor specific extensions. Any
19 module that selects this module must depend on PCI.
21 config VIRTIO_PCI_LIB_LEGACY
24 Legacy PCI device (Virtio PCI Card 0.9.x Draft and older device)
26 This module implements the basic probe and control for devices
27 which are based on legacy PCI device. Any module that selects this
28 module must depend on PCI.
30 menuconfig VIRTIO_MENU
36 config VIRTIO_HARDEN_NOTIFICATION
37 bool "Harden virtio notification"
39 Enable this to harden the device notifications and suppress
40 those that happen at a time where notifications are illegal.
42 Experimental: Note that several drivers still have bugs that
43 may cause crashes or hangs when correct handling of
44 notifications is enforced; depending on the subset of
45 drivers and devices you use, this may or may not work.
50 tristate "PCI driver for virtio devices"
55 This driver provides support for virtio based paravirtual device
56 drivers over PCI. This requires that your VMM has appropriate PCI
57 virtio backends. Most QEMU based VMMs should support these devices
62 config VIRTIO_PCI_LEGACY
63 bool "Support for legacy virtio draft 0.9.X and older devices"
66 select VIRTIO_PCI_LIB_LEGACY
68 Virtio PCI Card 0.9.X Draft (circa 2014) and older device support.
70 This option enables building a transitional driver, supporting
71 both devices conforming to Virtio 1 specification, and legacy devices.
72 If disabled, you get a slightly smaller, non-transitional driver,
73 with no legacy compatibility.
75 So look out into your driveway. Do you have a flying car? If
76 so, you can happily disable this option and virtio will not
77 break. Otherwise, leave it set. Unless you're testing what
78 life will be like in The Future.
83 tristate "vDPA driver for virtio devices"
87 This driver provides support for virtio based paravirtual
88 device driver over vDPA bus. For this to be useful, you need
89 an appropriate vDPA device implementation that operates on a
90 physical device to allow the datapath of virtio to be
91 offloaded to hardware.
96 tristate "Support for virtio pmem driver"
100 This driver provides access to virtio-pmem devices, storage devices
101 that are mapped into the physical address space - similar to NVDIMMs
102 - with a virtio-based flushing interface.
106 config VIRTIO_BALLOON
107 tristate "Virtio balloon driver"
109 select MEMORY_BALLOON
110 select PAGE_REPORTING
112 This driver supports increasing and decreasing the amount
113 of memory within a KVM guest.
118 tristate "Virtio mem driver"
119 depends on X86_64 || ARM64
121 depends on MEMORY_HOTPLUG
122 depends on MEMORY_HOTREMOVE
123 depends on CONTIG_ALLOC
124 depends on EXCLUSIVE_SYSTEM_RAM
126 This driver provides access to virtio-mem paravirtualized memory
127 devices, allowing to hotplug and hotunplug memory.
129 This driver was only tested under x86-64 and arm64, but should
130 theoretically work on all architectures that support memory hotplug
136 tristate "Virtio input driver"
140 This driver supports virtio input devices such as
141 keyboards, mice and tablets.
146 tristate "Platform bus driver for memory mapped virtio devices"
147 depends on HAS_IOMEM && HAS_DMA
150 This drivers provides support for memory mapped virtio
151 platform device driver.
155 config VIRTIO_MMIO_CMDLINE_DEVICES
156 bool "Memory mapped virtio devices parameter parsing"
157 depends on VIRTIO_MMIO
159 Allow virtio-mmio devices instantiation via the kernel command line
160 or module parameters. Be aware that using incorrect parameters (base
161 address in particular) can crash your system - you have been warned.
162 See Documentation/admin-guide/kernel-parameters.rst for details.
166 config VIRTIO_DMA_SHARED_BUFFER
168 depends on DMA_SHARED_BUFFER
170 This option adds a flavor of dma buffers that are backed by