Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Rusty Russell | ec3d41c | 2007-10-22 11:03:36 +1000 | [diff] [blame] | 2 | config VIRTIO |
Rusty Russell | c6fd470 | 2008-02-04 23:50:05 -0500 | [diff] [blame] | 3 | tristate |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 4 | help |
Rusty Russell | 387daf1 | 2012-09-28 15:05:15 +0930 | [diff] [blame] | 5 | This option is selected by any driver which implements the virtio |
Juergen Gross | ecda85e | 2017-08-16 19:31:57 +0200 | [diff] [blame] | 6 | bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG |
| 7 | or CONFIG_S390_GUEST. |
Rusty Russell | 0a8a69d | 2007-10-22 11:03:40 +1000 | [diff] [blame] | 8 | |
Vincent Legoll | 7b95fec | 2018-01-07 12:33:56 +0100 | [diff] [blame] | 9 | menuconfig VIRTIO_MENU |
| 10 | bool "Virtio drivers" |
| 11 | default y |
| 12 | |
| 13 | if VIRTIO_MENU |
Ohad Ben-Cohen | e725421 | 2011-07-05 17:06:14 +0300 | [diff] [blame] | 14 | |
Anthony Liguori | 3343660 | 2007-11-12 21:30:26 -0600 | [diff] [blame] | 15 | config VIRTIO_PCI |
Kees Cook | d72c5a8 | 2012-10-02 11:19:07 -0700 | [diff] [blame] | 16 | tristate "PCI driver for virtio devices" |
| 17 | depends on PCI |
Anthony Liguori | 3343660 | 2007-11-12 21:30:26 -0600 | [diff] [blame] | 18 | select VIRTIO |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 19 | help |
Michael S. Tsirkin | b2a6d51 | 2015-01-15 14:15:51 +0200 | [diff] [blame] | 20 | This driver provides support for virtio based paravirtual device |
Anthony Liguori | 3343660 | 2007-11-12 21:30:26 -0600 | [diff] [blame] | 21 | drivers over PCI. This requires that your VMM has appropriate PCI |
| 22 | virtio backends. Most QEMU based VMMs should support these devices |
| 23 | (like KVM or Xen). |
| 24 | |
Anthony Liguori | 3343660 | 2007-11-12 21:30:26 -0600 | [diff] [blame] | 25 | If unsure, say M. |
| 26 | |
Michael S. Tsirkin | 46506da | 2015-01-15 16:06:26 +0200 | [diff] [blame] | 27 | config VIRTIO_PCI_LEGACY |
| 28 | bool "Support for legacy virtio draft 0.9.X and older devices" |
| 29 | default y |
| 30 | depends on VIRTIO_PCI |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 31 | help |
Michael S. Tsirkin | 46506da | 2015-01-15 16:06:26 +0200 | [diff] [blame] | 32 | Virtio PCI Card 0.9.X Draft (circa 2014) and older device support. |
| 33 | |
| 34 | This option enables building a transitional driver, supporting |
| 35 | both devices conforming to Virtio 1 specification, and legacy devices. |
| 36 | If disabled, you get a slightly smaller, non-transitional driver, |
| 37 | with no legacy compatibility. |
| 38 | |
| 39 | So look out into your driveway. Do you have a flying car? If |
| 40 | so, you can happily disable this option and virtio will not |
| 41 | break. Otherwise, leave it set. Unless you're testing what |
| 42 | life will be like in The Future. |
| 43 | |
| 44 | If unsure, say Y. |
| 45 | |
Jason Wang | c043b4a | 2020-03-26 22:01:22 +0800 | [diff] [blame] | 46 | config VIRTIO_VDPA |
| 47 | tristate "vDPA driver for virtio devices" |
Michael S. Tsirkin | 58ad137 | 2020-04-12 04:36:55 -0400 | [diff] [blame] | 48 | depends on VDPA |
Jason Wang | c043b4a | 2020-03-26 22:01:22 +0800 | [diff] [blame] | 49 | select VIRTIO |
| 50 | help |
| 51 | This driver provides support for virtio based paravirtual |
| 52 | device driver over vDPA bus. For this to be useful, you need |
| 53 | an appropriate vDPA device implementation that operates on a |
| 54 | physical device to allow the datapath of virtio to be |
| 55 | offloaded to hardware. |
| 56 | |
| 57 | If unsure, say M. |
| 58 | |
Pankaj Gupta | 6e84200 | 2019-07-05 19:33:23 +0530 | [diff] [blame] | 59 | config VIRTIO_PMEM |
| 60 | tristate "Support for virtio pmem driver" |
| 61 | depends on VIRTIO |
| 62 | depends on LIBNVDIMM |
| 63 | help |
| 64 | This driver provides access to virtio-pmem devices, storage devices |
| 65 | that are mapped into the physical address space - similar to NVDIMMs |
| 66 | - with a virtio-based flushing interface. |
| 67 | |
| 68 | If unsure, say Y. |
| 69 | |
Rusty Russell | 6b35e40 | 2008-02-04 23:50:12 -0500 | [diff] [blame] | 70 | config VIRTIO_BALLOON |
Rusty Russell | 7a23eb2 | 2012-09-28 15:05:14 +0930 | [diff] [blame] | 71 | tristate "Virtio balloon driver" |
| 72 | depends on VIRTIO |
Konstantin Khlebnikov | 09316c0 | 2014-10-09 15:29:32 -0700 | [diff] [blame] | 73 | select MEMORY_BALLOON |
Alexander Duyck | b0c504f | 2020-04-06 20:05:05 -0700 | [diff] [blame] | 74 | select PAGE_REPORTING |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 75 | help |
Rusty Russell | 6b35e40 | 2008-02-04 23:50:12 -0500 | [diff] [blame] | 76 | This driver supports increasing and decreasing the amount |
| 77 | of memory within a KVM guest. |
| 78 | |
| 79 | If unsure, say M. |
| 80 | |
David Hildenbrand | 5f1f79b | 2020-05-07 16:01:25 +0200 | [diff] [blame] | 81 | config VIRTIO_MEM |
| 82 | tristate "Virtio mem driver" |
| 83 | default m |
| 84 | depends on X86_64 |
| 85 | depends on VIRTIO |
| 86 | depends on MEMORY_HOTPLUG_SPARSE |
| 87 | depends on MEMORY_HOTREMOVE |
Weilong Chen | a96b0d0 | 2020-06-19 16:03:33 +0800 | [diff] [blame] | 88 | depends on CONTIG_ALLOC |
David Hildenbrand | 5f1f79b | 2020-05-07 16:01:25 +0200 | [diff] [blame] | 89 | help |
| 90 | This driver provides access to virtio-mem paravirtualized memory |
| 91 | devices, allowing to hotplug and hotunplug memory. |
| 92 | |
| 93 | This driver was only tested under x86-64, but should theoretically |
| 94 | work on all architectures that support memory hotplug and hotremove. |
| 95 | |
| 96 | If unsure, say M. |
| 97 | |
Gerd Hoffmann | 271c865 | 2015-03-27 12:46:12 +1030 | [diff] [blame] | 98 | config VIRTIO_INPUT |
| 99 | tristate "Virtio input driver" |
| 100 | depends on VIRTIO |
| 101 | depends on INPUT |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 102 | help |
Gerd Hoffmann | 271c865 | 2015-03-27 12:46:12 +1030 | [diff] [blame] | 103 | This driver supports virtio input devices such as |
| 104 | keyboards, mice and tablets. |
| 105 | |
| 106 | If unsure, say M. |
| 107 | |
Fabrizio Castro | 6166e53 | 2019-04-03 16:04:09 +0100 | [diff] [blame] | 108 | config VIRTIO_MMIO |
Kees Cook | d72c5a8 | 2012-10-02 11:19:07 -0700 | [diff] [blame] | 109 | tristate "Platform bus driver for memory mapped virtio devices" |
Andy Lutomirski | 780bc79 | 2016-02-02 21:46:36 -0800 | [diff] [blame] | 110 | depends on HAS_IOMEM && HAS_DMA |
Fabrizio Castro | 6166e53 | 2019-04-03 16:04:09 +0100 | [diff] [blame] | 111 | select VIRTIO |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 112 | help |
Fabrizio Castro | 6166e53 | 2019-04-03 16:04:09 +0100 | [diff] [blame] | 113 | This drivers provides support for memory mapped virtio |
Pawel Moll | edfd52e | 2011-10-24 14:07:03 +0100 | [diff] [blame] | 114 | platform device driver. |
| 115 | |
| 116 | If unsure, say N. |
| 117 | |
Pawel Moll | 81a054c | 2012-05-09 18:30:16 +0100 | [diff] [blame] | 118 | config VIRTIO_MMIO_CMDLINE_DEVICES |
| 119 | bool "Memory mapped virtio devices parameter parsing" |
| 120 | depends on VIRTIO_MMIO |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 121 | help |
Pawel Moll | 81a054c | 2012-05-09 18:30:16 +0100 | [diff] [blame] | 122 | Allow virtio-mmio devices instantiation via the kernel command line |
| 123 | or module parameters. Be aware that using incorrect parameters (base |
| 124 | address in particular) can crash your system - you have been warned. |
Mauro Carvalho Chehab | 8c27ceff3 | 2016-10-18 10:12:27 -0200 | [diff] [blame] | 125 | See Documentation/admin-guide/kernel-parameters.rst for details. |
Pawel Moll | 81a054c | 2012-05-09 18:30:16 +0100 | [diff] [blame] | 126 | |
| 127 | If unsure, say 'N'. |
| 128 | |
David Stevens | 9fe2f89 | 2020-08-19 12:10:11 +0900 | [diff] [blame] | 129 | config VIRTIO_DMA_SHARED_BUFFER |
| 130 | tristate |
| 131 | depends on DMA_SHARED_BUFFER |
| 132 | help |
| 133 | This option adds a flavor of dma buffers that are backed by |
| 134 | virtio resources. |
| 135 | |
Vincent Legoll | 7b95fec | 2018-01-07 12:33:56 +0100 | [diff] [blame] | 136 | endif # VIRTIO_MENU |