Kconfig 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config VIRTIO_ANCHOR
  3. bool
  4. config VIRTIO
  5. tristate
  6. select VIRTIO_ANCHOR
  7. help
  8. This option is selected by any driver which implements the virtio
  9. bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG
  10. or CONFIG_S390_GUEST.
  11. config VIRTIO_PCI_LIB
  12. tristate
  13. help
  14. Modern PCI device implementation. This module implements the
  15. basic probe and control for devices which are based on modern
  16. PCI device with possible vendor specific extensions. Any
  17. module that selects this module must depend on PCI.
  18. config VIRTIO_PCI_LIB_LEGACY
  19. tristate
  20. help
  21. Legacy PCI device (Virtio PCI Card 0.9.x Draft and older device)
  22. implementation.
  23. This module implements the basic probe and control for devices
  24. which are based on legacy PCI device. Any module that selects this
  25. module must depend on PCI.
  26. menuconfig VIRTIO_MENU
  27. bool "Virtio drivers"
  28. default y
  29. if VIRTIO_MENU
  30. config VIRTIO_HARDEN_NOTIFICATION
  31. bool "Harden virtio notification"
  32. depends on BROKEN
  33. help
  34. Enable this to harden the device notifications and suppress
  35. those that happen at a time where notifications are illegal.
  36. Experimental: Note that several drivers still have issues that
  37. may cause crashes or hangs when correct handling of
  38. notifications is enforced; depending on the subset of
  39. drivers and devices you use, this may or may not work.
  40. If unsure, say N.
  41. config VIRTIO_PCI
  42. tristate "PCI driver for virtio devices"
  43. depends on PCI
  44. select VIRTIO_PCI_LIB
  45. select VIRTIO
  46. help
  47. This driver provides support for virtio based paravirtual device
  48. drivers over PCI. This requires that your VMM has appropriate PCI
  49. virtio backends. Most QEMU based VMMs should support these devices
  50. (like KVM or Xen).
  51. If unsure, say M.
  52. config VIRTIO_PCI_ADMIN_LEGACY
  53. bool
  54. depends on VIRTIO_PCI && (X86 || COMPILE_TEST)
  55. default y
  56. config VIRTIO_PCI_LEGACY
  57. bool "Support for legacy virtio draft 0.9.X and older devices"
  58. default y
  59. depends on VIRTIO_PCI
  60. select VIRTIO_PCI_LIB_LEGACY
  61. help
  62. Virtio PCI Card 0.9.X Draft (circa 2014) and older device support.
  63. This option enables building a transitional driver, supporting
  64. both devices conforming to Virtio 1 specification, and legacy devices.
  65. If disabled, you get a slightly smaller, non-transitional driver,
  66. with no legacy compatibility.
  67. So look out into your driveway. Do you have a flying car? If
  68. so, you can happily disable this option and virtio will not
  69. break. Otherwise, leave it set. Unless you're testing what
  70. life will be like in The Future.
  71. If unsure, say Y.
  72. config VIRTIO_VDPA
  73. tristate "vDPA driver for virtio devices"
  74. depends on VDPA
  75. select VIRTIO
  76. help
  77. This driver provides support for virtio based paravirtual
  78. device driver over vDPA bus. For this to be useful, you need
  79. an appropriate vDPA device implementation that operates on a
  80. physical device to allow the datapath of virtio to be
  81. offloaded to hardware.
  82. If unsure, say M.
  83. config VIRTIO_PMEM
  84. tristate "Support for virtio pmem driver"
  85. depends on VIRTIO
  86. depends on LIBNVDIMM
  87. help
  88. This driver provides access to virtio-pmem devices, storage devices
  89. that are mapped into the physical address space - similar to NVDIMMs
  90. - with a virtio-based flushing interface.
  91. If unsure, say Y.
  92. config VIRTIO_BALLOON
  93. tristate "Virtio balloon driver"
  94. depends on VIRTIO
  95. select MEMORY_BALLOON
  96. select PAGE_REPORTING
  97. help
  98. This driver supports increasing and decreasing the amount
  99. of memory within a KVM guest.
  100. If unsure, say M.
  101. config VIRTIO_MEM
  102. tristate "Virtio mem driver"
  103. depends on X86_64 || ARM64 || RISCV
  104. depends on VIRTIO
  105. depends on MEMORY_HOTPLUG
  106. depends on MEMORY_HOTREMOVE
  107. depends on CONTIG_ALLOC
  108. depends on EXCLUSIVE_SYSTEM_RAM
  109. help
  110. This driver provides access to virtio-mem paravirtualized memory
  111. devices, allowing to hotplug and hotunplug memory.
  112. This driver currently only supports x86-64 and arm64. Although it
  113. should compile on other architectures that implement memory
  114. hot(un)plug, architecture-specific and/or common
  115. code changes may be required for virtio-mem, kdump and kexec to work as
  116. expected.
  117. If unsure, say M.
  118. config VIRTIO_INPUT
  119. tristate "Virtio input driver"
  120. depends on VIRTIO
  121. depends on INPUT
  122. help
  123. This driver supports virtio input devices such as
  124. keyboards, mice and tablets.
  125. If unsure, say M.
  126. config VIRTIO_MMIO
  127. tristate "Platform bus driver for memory mapped virtio devices"
  128. depends on HAS_IOMEM && HAS_DMA
  129. select VIRTIO
  130. help
  131. This drivers provides support for memory mapped virtio
  132. platform device driver.
  133. If unsure, say N.
  134. config VIRTIO_MMIO_CMDLINE_DEVICES
  135. bool "Memory mapped virtio devices parameter parsing"
  136. depends on VIRTIO_MMIO
  137. help
  138. Allow virtio-mmio devices instantiation via the kernel command line
  139. or module parameters. Be aware that using incorrect parameters (base
  140. address in particular) can crash your system - you have been warned.
  141. See Documentation/admin-guide/kernel-parameters.rst for details.
  142. If unsure, say 'N'.
  143. config VIRTIO_DMA_SHARED_BUFFER
  144. tristate
  145. depends on DMA_SHARED_BUFFER
  146. help
  147. This option adds a flavor of dma buffers that are backed by
  148. virtio resources.
  149. config VIRTIO_DEBUG
  150. bool "Debug facilities"
  151. depends on VIRTIO
  152. help
  153. Enable this to expose debug facilities over debugfs.
  154. This allows to debug features, to see what features the device
  155. advertises and to set filter for features used by driver.
  156. If unsure, say N.
  157. endif # VIRTIO_MENU