Kconfig 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # SPDX-License-Identifier: GPL-2.0-only
  2. config VHOST_IOTLB
  3. tristate
  4. help
  5. Generic IOTLB implementation for vhost and vringh.
  6. This option is selected by any driver which needs to support
  7. an IOMMU in software.
  8. config VHOST_RING
  9. tristate
  10. select VHOST_IOTLB
  11. help
  12. This option is selected by any driver which needs to access
  13. the host side of a virtio ring.
  14. config VHOST_TASK
  15. bool
  16. default n
  17. config VHOST
  18. tristate
  19. select VHOST_IOTLB
  20. select VHOST_TASK
  21. help
  22. This option is selected by any driver which needs to access
  23. the core of vhost.
  24. menuconfig VHOST_MENU
  25. bool "VHOST drivers"
  26. default y
  27. if VHOST_MENU
  28. config VHOST_NET
  29. tristate "Host kernel accelerator for virtio net"
  30. depends on NET && EVENTFD && (TUN || !TUN) && (TAP || !TAP)
  31. select VHOST
  32. help
  33. This kernel module can be loaded in host kernel to accelerate
  34. guest networking with virtio_net. Not to be confused with virtio_net
  35. module itself which needs to be loaded in guest kernel.
  36. To compile this driver as a module, choose M here: the module will
  37. be called vhost_net.
  38. config VHOST_SCSI
  39. tristate "VHOST_SCSI TCM fabric driver"
  40. depends on TARGET_CORE && EVENTFD
  41. select VHOST
  42. select SG_POOL
  43. default n
  44. help
  45. Say M here to enable the vhost_scsi TCM fabric module
  46. for use with virtio-scsi guests
  47. config VHOST_VSOCK
  48. tristate "vhost virtio-vsock driver"
  49. depends on VSOCKETS && EVENTFD
  50. select VHOST
  51. select VIRTIO_VSOCKETS_COMMON
  52. default n
  53. help
  54. This kernel module can be loaded in the host kernel to provide AF_VSOCK
  55. sockets for communicating with guests. The guests must have the
  56. virtio_transport.ko driver loaded to use the virtio-vsock device.
  57. To compile this driver as a module, choose M here: the module will be called
  58. vhost_vsock.
  59. config VHOST_VDPA
  60. tristate "Vhost driver for vDPA-based backend"
  61. depends on EVENTFD
  62. select VHOST
  63. select IRQ_BYPASS_MANAGER
  64. depends on VDPA
  65. help
  66. This kernel module can be loaded in host kernel to accelerate
  67. guest virtio devices with the vDPA-based backends.
  68. To compile this driver as a module, choose M here: the module
  69. will be called vhost_vdpa.
  70. config VHOST_CROSS_ENDIAN_LEGACY
  71. bool "Cross-endian support for vhost"
  72. default n
  73. help
  74. This option allows vhost to support guests with a different byte
  75. ordering from host while using legacy virtio.
  76. Userspace programs can control the feature using the
  77. VHOST_SET_VRING_ENDIAN and VHOST_GET_VRING_ENDIAN ioctls.
  78. This is only useful on a few platforms (ppc64 and arm64). Since it
  79. adds some overhead, it is disabled by default.
  80. If unsure, say "N".
  81. config VHOST_ENABLE_FORK_OWNER_CONTROL
  82. bool "Enable VHOST_ENABLE_FORK_OWNER_CONTROL"
  83. default y
  84. help
  85. This option enables two IOCTLs: VHOST_SET_FORK_FROM_OWNER and
  86. VHOST_GET_FORK_FROM_OWNER. These allow userspace applications
  87. to modify the vhost worker mode for vhost devices.
  88. Also expose module parameter 'fork_from_owner_default' to allow users
  89. to configure the default mode for vhost workers.
  90. By default, `VHOST_ENABLE_FORK_OWNER_CONTROL` is set to `y`,
  91. users can change the worker thread mode as needed.
  92. If this config is disabled (n),the related IOCTLs and parameters will
  93. be unavailable.
  94. If unsure, say "Y".
  95. endif