hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/drivers/vhost/Kconfig
....@@ -1,8 +1,36 @@
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
+
9
+config VHOST_RING
10
+ tristate
11
+ select VHOST_IOTLB
12
+ help
13
+ This option is selected by any driver which needs to access
14
+ the host side of a virtio ring.
15
+
16
+config VHOST
17
+ tristate
18
+ select VHOST_IOTLB
19
+ help
20
+ This option is selected by any driver which needs to access
21
+ the core of vhost.
22
+
23
+menuconfig VHOST_MENU
24
+ bool "VHOST drivers"
25
+ default y
26
+
27
+if VHOST_MENU
28
+
129 config VHOST_NET
230 tristate "Host kernel accelerator for virtio net"
331 depends on NET && EVENTFD && (TUN || !TUN) && (TAP || !TAP)
432 select VHOST
5
- ---help---
33
+ help
634 This kernel module can be loaded in host kernel to accelerate
735 guest networking with virtio_net. Not to be confused with virtio_net
836 module itself which needs to be loaded in guest kernel.
....@@ -15,17 +43,17 @@
1543 depends on TARGET_CORE && EVENTFD
1644 select VHOST
1745 default n
18
- ---help---
46
+ help
1947 Say M here to enable the vhost_scsi TCM fabric module
2048 for use with virtio-scsi guests
2149
2250 config VHOST_VSOCK
2351 tristate "vhost virtio-vsock driver"
2452 depends on VSOCKETS && EVENTFD
25
- select VIRTIO_VSOCKETS_COMMON
2653 select VHOST
54
+ select VIRTIO_VSOCKETS_COMMON
2755 default n
28
- ---help---
56
+ help
2957 This kernel module can be loaded in the host kernel to provide AF_VSOCK
3058 sockets for communicating with guests. The guests must have the
3159 virtio_transport.ko driver loaded to use the virtio-vsock device.
....@@ -33,16 +61,23 @@
3361 To compile this driver as a module, choose M here: the module will be called
3462 vhost_vsock.
3563
36
-config VHOST
37
- tristate
38
- ---help---
39
- This option is selected by any driver which needs to access
40
- the core of vhost.
64
+config VHOST_VDPA
65
+ tristate "Vhost driver for vDPA-based backend"
66
+ depends on EVENTFD
67
+ select VHOST
68
+ select IRQ_BYPASS_MANAGER
69
+ depends on VDPA
70
+ help
71
+ This kernel module can be loaded in host kernel to accelerate
72
+ guest virtio devices with the vDPA-based backends.
73
+
74
+ To compile this driver as a module, choose M here: the module
75
+ will be called vhost_vdpa.
4176
4277 config VHOST_CROSS_ENDIAN_LEGACY
4378 bool "Cross-endian support for vhost"
4479 default n
45
- ---help---
80
+ help
4681 This option allows vhost to support guests with a different byte
4782 ordering from host while using legacy virtio.
4883
....@@ -53,3 +88,5 @@
5388 adds some overhead, it is disabled by default.
5489
5590 If unsure, say "N".
91
+
92
+endif