Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Juergen Gross | a603002 | 2022-06-22 08:38:36 +0200 | [diff] [blame] | 2 | config VIRTIO_ANCHOR |
| 3 | bool |
| 4 | |
Rusty Russell | ec3d41c | 2007-10-22 11:03:36 +1000 | [diff] [blame] | 5 | config VIRTIO |
Rusty Russell | c6fd470 | 2008-02-04 23:50:05 -0500 | [diff] [blame] | 6 | tristate |
Juergen Gross | a603002 | 2022-06-22 08:38:36 +0200 | [diff] [blame] | 7 | select VIRTIO_ANCHOR |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 8 | help |
Rusty Russell | 387daf1 | 2012-09-28 15:05:15 +0930 | [diff] [blame] | 9 | This option is selected by any driver which implements the virtio |
Juergen Gross | ecda85e | 2017-08-16 19:31:57 +0200 | [diff] [blame] | 10 | bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG |
| 11 | or CONFIG_S390_GUEST. |
Rusty Russell | 0a8a69d | 2007-10-22 11:03:40 +1000 | [diff] [blame] | 12 | |
Jason Wang | fd50272 | 2021-01-04 14:55:00 +0800 | [diff] [blame] | 13 | config VIRTIO_PCI_LIB |
| 14 | tristate |
| 15 | help |
| 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. |
| 20 | |
Wu Zongyong | d89c8169 | 2021-10-29 17:14:42 +0800 | [diff] [blame] | 21 | config VIRTIO_PCI_LIB_LEGACY |
| 22 | tristate |
| 23 | help |
| 24 | Legacy PCI device (Virtio PCI Card 0.9.x Draft and older device) |
| 25 | implementation. |
| 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. |
| 29 | |
Vincent Legoll | 7b95fec | 2018-01-07 12:33:56 +0100 | [diff] [blame] | 30 | menuconfig VIRTIO_MENU |
| 31 | bool "Virtio drivers" |
| 32 | default y |
| 33 | |
| 34 | if VIRTIO_MENU |
Ohad Ben-Cohen | e725421 | 2011-07-05 17:06:14 +0300 | [diff] [blame] | 35 | |
Jason Wang | c346dae | 2022-06-22 09:29:40 +0800 | [diff] [blame] | 36 | config VIRTIO_HARDEN_NOTIFICATION |
| 37 | bool "Harden virtio notification" |
Michael S. Tsirkin | ebe797f | 2022-06-30 15:10:57 -0400 | [diff] [blame] | 38 | depends on BROKEN |
Jason Wang | c346dae | 2022-06-22 09:29:40 +0800 | [diff] [blame] | 39 | help |
| 40 | Enable this to harden the device notifications and suppress |
| 41 | those that happen at a time where notifications are illegal. |
| 42 | |
Michael S. Tsirkin | ebe797f | 2022-06-30 15:10:57 -0400 | [diff] [blame] | 43 | Experimental: Note that several drivers still have issues that |
Jason Wang | c346dae | 2022-06-22 09:29:40 +0800 | [diff] [blame] | 44 | may cause crashes or hangs when correct handling of |
| 45 | notifications is enforced; depending on the subset of |
| 46 | drivers and devices you use, this may or may not work. |
| 47 | |
| 48 | If unsure, say N. |
| 49 | |
Anthony Liguori | 3343660 | 2007-11-12 21:30:26 -0600 | [diff] [blame] | 50 | config VIRTIO_PCI |
Kees Cook | d72c5a8 | 2012-10-02 11:19:07 -0700 | [diff] [blame] | 51 | tristate "PCI driver for virtio devices" |
| 52 | depends on PCI |
Jason Wang | fd50272 | 2021-01-04 14:55:00 +0800 | [diff] [blame] | 53 | select VIRTIO_PCI_LIB |
Anthony Liguori | 3343660 | 2007-11-12 21:30:26 -0600 | [diff] [blame] | 54 | select VIRTIO |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 55 | help |
Michael S. Tsirkin | b2a6d51 | 2015-01-15 14:15:51 +0200 | [diff] [blame] | 56 | This driver provides support for virtio based paravirtual device |
Anthony Liguori | 3343660 | 2007-11-12 21:30:26 -0600 | [diff] [blame] | 57 | drivers over PCI. This requires that your VMM has appropriate PCI |
| 58 | virtio backends. Most QEMU based VMMs should support these devices |
| 59 | (like KVM or Xen). |
| 60 | |
Anthony Liguori | 3343660 | 2007-11-12 21:30:26 -0600 | [diff] [blame] | 61 | If unsure, say M. |
| 62 | |
Yishai Hadas | f51e146 | 2023-12-19 11:32:43 +0200 | [diff] [blame] | 63 | config VIRTIO_PCI_ADMIN_LEGACY |
| 64 | bool |
| 65 | depends on VIRTIO_PCI && (X86 || COMPILE_TEST) |
| 66 | default y |
| 67 | |
Michael S. Tsirkin | 46506da | 2015-01-15 16:06:26 +0200 | [diff] [blame] | 68 | config VIRTIO_PCI_LEGACY |
| 69 | bool "Support for legacy virtio draft 0.9.X and older devices" |
| 70 | default y |
| 71 | depends on VIRTIO_PCI |
Wu Zongyong | d89c8169 | 2021-10-29 17:14:42 +0800 | [diff] [blame] | 72 | select VIRTIO_PCI_LIB_LEGACY |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 73 | help |
Michael S. Tsirkin | 46506da | 2015-01-15 16:06:26 +0200 | [diff] [blame] | 74 | Virtio PCI Card 0.9.X Draft (circa 2014) and older device support. |
| 75 | |
| 76 | This option enables building a transitional driver, supporting |
| 77 | both devices conforming to Virtio 1 specification, and legacy devices. |
| 78 | If disabled, you get a slightly smaller, non-transitional driver, |
| 79 | with no legacy compatibility. |
| 80 | |
| 81 | So look out into your driveway. Do you have a flying car? If |
| 82 | so, you can happily disable this option and virtio will not |
| 83 | break. Otherwise, leave it set. Unless you're testing what |
| 84 | life will be like in The Future. |
| 85 | |
| 86 | If unsure, say Y. |
| 87 | |
Jason Wang | c043b4a | 2020-03-26 22:01:22 +0800 | [diff] [blame] | 88 | config VIRTIO_VDPA |
| 89 | tristate "vDPA driver for virtio devices" |
Michael S. Tsirkin | 58ad137 | 2020-04-12 04:36:55 -0400 | [diff] [blame] | 90 | depends on VDPA |
Jason Wang | c043b4a | 2020-03-26 22:01:22 +0800 | [diff] [blame] | 91 | select VIRTIO |
| 92 | help |
| 93 | This driver provides support for virtio based paravirtual |
| 94 | device driver over vDPA bus. For this to be useful, you need |
| 95 | an appropriate vDPA device implementation that operates on a |
| 96 | physical device to allow the datapath of virtio to be |
| 97 | offloaded to hardware. |
| 98 | |
| 99 | If unsure, say M. |
| 100 | |
Pankaj Gupta | 6e84200 | 2019-07-05 19:33:23 +0530 | [diff] [blame] | 101 | config VIRTIO_PMEM |
| 102 | tristate "Support for virtio pmem driver" |
| 103 | depends on VIRTIO |
| 104 | depends on LIBNVDIMM |
| 105 | help |
| 106 | This driver provides access to virtio-pmem devices, storage devices |
| 107 | that are mapped into the physical address space - similar to NVDIMMs |
| 108 | - with a virtio-based flushing interface. |
| 109 | |
| 110 | If unsure, say Y. |
| 111 | |
Rusty Russell | 6b35e40 | 2008-02-04 23:50:12 -0500 | [diff] [blame] | 112 | config VIRTIO_BALLOON |
Rusty Russell | 7a23eb2 | 2012-09-28 15:05:14 +0930 | [diff] [blame] | 113 | tristate "Virtio balloon driver" |
| 114 | depends on VIRTIO |
Konstantin Khlebnikov | 09316c0 | 2014-10-09 15:29:32 -0700 | [diff] [blame] | 115 | select MEMORY_BALLOON |
Alexander Duyck | b0c504f | 2020-04-06 20:05:05 -0700 | [diff] [blame] | 116 | select PAGE_REPORTING |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 117 | help |
Rusty Russell | 6b35e40 | 2008-02-04 23:50:12 -0500 | [diff] [blame] | 118 | This driver supports increasing and decreasing the amount |
| 119 | of memory within a KVM guest. |
| 120 | |
| 121 | If unsure, say M. |
| 122 | |
David Hildenbrand | 5f1f79b | 2020-05-07 16:01:25 +0200 | [diff] [blame] | 123 | config VIRTIO_MEM |
| 124 | tristate "Virtio mem driver" |
Björn Töpel | 0546d70 | 2024-06-05 13:40:52 +0200 | [diff] [blame] | 125 | depends on X86_64 || ARM64 || RISCV |
David Hildenbrand | 5f1f79b | 2020-05-07 16:01:25 +0200 | [diff] [blame] | 126 | depends on VIRTIO |
David Hildenbrand | 50f9481 | 2021-11-05 13:44:24 -0700 | [diff] [blame] | 127 | depends on MEMORY_HOTPLUG |
David Hildenbrand | 5f1f79b | 2020-05-07 16:01:25 +0200 | [diff] [blame] | 128 | depends on MEMORY_HOTREMOVE |
Weilong Chen | a96b0d0 | 2020-06-19 16:03:33 +0800 | [diff] [blame] | 129 | depends on CONTIG_ALLOC |
David Hildenbrand | 2128f4e | 2021-11-08 18:35:53 -0800 | [diff] [blame] | 130 | depends on EXCLUSIVE_SYSTEM_RAM |
David Hildenbrand | 5f1f79b | 2020-05-07 16:01:25 +0200 | [diff] [blame] | 131 | help |
| 132 | This driver provides access to virtio-mem paravirtualized memory |
| 133 | devices, allowing to hotplug and hotunplug memory. |
| 134 | |
David Hildenbrand | 0b6fd46 | 2022-06-10 11:47:37 +0200 | [diff] [blame] | 135 | This driver currently only supports x86-64 and arm64. Although it |
| 136 | should compile on other architectures that implement memory |
| 137 | hot(un)plug, architecture-specific and/or common |
| 138 | code changes may be required for virtio-mem, kdump and kexec to work as |
| 139 | expected. |
David Hildenbrand | 5f1f79b | 2020-05-07 16:01:25 +0200 | [diff] [blame] | 140 | |
| 141 | If unsure, say M. |
| 142 | |
Gerd Hoffmann | 271c865 | 2015-03-27 12:46:12 +1030 | [diff] [blame] | 143 | config VIRTIO_INPUT |
| 144 | tristate "Virtio input driver" |
| 145 | depends on VIRTIO |
| 146 | depends on INPUT |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 147 | help |
Gerd Hoffmann | 271c865 | 2015-03-27 12:46:12 +1030 | [diff] [blame] | 148 | This driver supports virtio input devices such as |
| 149 | keyboards, mice and tablets. |
| 150 | |
| 151 | If unsure, say M. |
| 152 | |
Fabrizio Castro | 6166e53 | 2019-04-03 16:04:09 +0100 | [diff] [blame] | 153 | config VIRTIO_MMIO |
Kees Cook | d72c5a8 | 2012-10-02 11:19:07 -0700 | [diff] [blame] | 154 | tristate "Platform bus driver for memory mapped virtio devices" |
Andy Lutomirski | 780bc79 | 2016-02-02 21:46:36 -0800 | [diff] [blame] | 155 | depends on HAS_IOMEM && HAS_DMA |
Fabrizio Castro | 6166e53 | 2019-04-03 16:04:09 +0100 | [diff] [blame] | 156 | select VIRTIO |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 157 | help |
Fabrizio Castro | 6166e53 | 2019-04-03 16:04:09 +0100 | [diff] [blame] | 158 | This drivers provides support for memory mapped virtio |
Pawel Moll | edfd52e | 2011-10-24 14:07:03 +0100 | [diff] [blame] | 159 | platform device driver. |
| 160 | |
| 161 | If unsure, say N. |
| 162 | |
Pawel Moll | 81a054c | 2012-05-09 18:30:16 +0100 | [diff] [blame] | 163 | config VIRTIO_MMIO_CMDLINE_DEVICES |
| 164 | bool "Memory mapped virtio devices parameter parsing" |
| 165 | depends on VIRTIO_MMIO |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 166 | help |
Pawel Moll | 81a054c | 2012-05-09 18:30:16 +0100 | [diff] [blame] | 167 | Allow virtio-mmio devices instantiation via the kernel command line |
| 168 | or module parameters. Be aware that using incorrect parameters (base |
| 169 | address in particular) can crash your system - you have been warned. |
Mauro Carvalho Chehab | 8c27ceff3 | 2016-10-18 10:12:27 -0200 | [diff] [blame] | 170 | See Documentation/admin-guide/kernel-parameters.rst for details. |
Pawel Moll | 81a054c | 2012-05-09 18:30:16 +0100 | [diff] [blame] | 171 | |
| 172 | If unsure, say 'N'. |
| 173 | |
David Stevens | 9fe2f89 | 2020-08-19 12:10:11 +0900 | [diff] [blame] | 174 | config VIRTIO_DMA_SHARED_BUFFER |
| 175 | tristate |
| 176 | depends on DMA_SHARED_BUFFER |
| 177 | help |
| 178 | This option adds a flavor of dma buffers that are backed by |
| 179 | virtio resources. |
| 180 | |
Jiri Pirko | 96a8326 | 2024-04-24 12:40:45 +0200 | [diff] [blame] | 181 | config VIRTIO_DEBUG |
| 182 | bool "Debug facilities" |
| 183 | depends on VIRTIO |
| 184 | help |
| 185 | Enable this to expose debug facilities over debugfs. |
| 186 | This allows to debug features, to see what features the device |
| 187 | advertises and to set filter for features used by driver. |
| 188 | |
| 189 | If unsure, say N. |
| 190 | |
Vincent Legoll | 7b95fec | 2018-01-07 12:33:56 +0100 | [diff] [blame] | 191 | endif # VIRTIO_MENU |