blob: 587fbae0618213ea5399a2cf0bf7f55cd8ed558b [file] [log] [blame]
Thomas Gleixnerec8f24b2019-05-19 13:07:45 +01001# SPDX-License-Identifier: GPL-2.0-only
Jason Wang0bbe3062020-03-26 22:01:19 +08002config VHOST_IOTLB
3 tristate
4 help
5 Generic IOTLB implementation for vhost and vringh.
Michael S. Tsirkin33023632020-04-01 12:46:22 -04006 This option is selected by any driver which needs to support
7 an IOMMU in software.
Jason Wang0bbe3062020-03-26 22:01:19 +08008
Jason Wang20c384f2020-03-26 22:01:17 +08009config VHOST_RING
10 tristate
Jason Wang9ad9c492020-03-26 22:01:20 +080011 select VHOST_IOTLB
Jason Wang20c384f2020-03-26 22:01:17 +080012 help
13 This option is selected by any driver which needs to access
14 the host side of a virtio ring.
15
16config 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
23menuconfig VHOST_MENU
24 bool "VHOST drivers"
25 default y
26
27if VHOST_MENU
28
Michael S. Tsirkin3a4d5c92010-01-14 06:17:27 +000029config VHOST_NET
Kees Cook43893cb2013-01-16 18:53:56 -080030 tristate "Host kernel accelerator for virtio net"
Michael S. Tsirkin213e7722020-04-23 08:36:57 -040031 depends on NET && EVENTFD && (TUN || !TUN) && (TAP || !TAP)
Asias He6ac1afb2013-05-06 16:38:21 +080032 select VHOST
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090033 help
Michael S. Tsirkin3a4d5c92010-01-14 06:17:27 +000034 This kernel module can be loaded in host kernel to accelerate
35 guest networking with virtio_net. Not to be confused with virtio_net
36 module itself which needs to be loaded in guest kernel.
37
38 To compile this driver as a module, choose M here: the module will
39 be called vhost_net.
40
Michael S. Tsirkin181c04a2013-05-02 03:52:59 +030041config VHOST_SCSI
42 tristate "VHOST_SCSI TCM fabric driver"
Michael S. Tsirkin213e7722020-04-23 08:36:57 -040043 depends on TARGET_CORE && EVENTFD
Asias He6ac1afb2013-05-06 16:38:21 +080044 select VHOST
Michael S. Tsirkin181c04a2013-05-02 03:52:59 +030045 default n
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090046 help
Michael S. Tsirkin181c04a2013-05-02 03:52:59 +030047 Say M here to enable the vhost_scsi TCM fabric module
48 for use with virtio-scsi guests
Rusty Russellf87d0fb2013-03-20 13:50:14 +103049
Asias He304ba622016-07-28 15:36:35 +010050config VHOST_VSOCK
51 tristate "vhost virtio-vsock driver"
Michael S. Tsirkin213e7722020-04-23 08:36:57 -040052 depends on VSOCKETS && EVENTFD
Asias He304ba622016-07-28 15:36:35 +010053 select VHOST
Jason Wang20c384f2020-03-26 22:01:17 +080054 select VIRTIO_VSOCKETS_COMMON
Asias He304ba622016-07-28 15:36:35 +010055 default n
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090056 help
Asias He304ba622016-07-28 15:36:35 +010057 This kernel module can be loaded in the host kernel to provide AF_VSOCK
58 sockets for communicating with guests. The guests must have the
59 virtio_transport.ko driver loaded to use the virtio-vsock device.
60
61 To compile this driver as a module, choose M here: the module will be called
62 vhost_vsock.
63
Tiwei Bie4c8cf312020-03-26 22:01:23 +080064config VHOST_VDPA
65 tristate "Vhost driver for vDPA-based backend"
Michael S. Tsirkin213e7722020-04-23 08:36:57 -040066 depends on EVENTFD
Tiwei Bie4c8cf312020-03-26 22:01:23 +080067 select VHOST
Zhu Lingshan2cf1ba92020-07-31 14:55:31 +080068 select IRQ_BYPASS_MANAGER
Michael S. Tsirkin58ad1372020-04-12 04:36:55 -040069 depends on VDPA
Tiwei Bie4c8cf312020-03-26 22:01:23 +080070 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.
76
Greg Kurz2751c982015-04-24 14:27:24 +020077config VHOST_CROSS_ENDIAN_LEGACY
78 bool "Cross-endian support for vhost"
79 default n
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090080 help
Greg Kurz2751c982015-04-24 14:27:24 +020081 This option allows vhost to support guests with a different byte
82 ordering from host while using legacy virtio.
83
84 Userspace programs can control the feature using the
85 VHOST_SET_VRING_ENDIAN and VHOST_GET_VRING_ENDIAN ioctls.
86
87 This is only useful on a few platforms (ppc64 and arm64). Since it
88 adds some overhead, it is disabled by default.
89
90 If unsure, say "N".
Jason Wang0bbe3062020-03-26 22:01:19 +080091
Jason Wang20c384f2020-03-26 22:01:17 +080092endif