Thomas Gleixner | ec8f24b | 2019-05-19 13:07:45 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Jason Wang | 0bbe306 | 2020-03-26 22:01:19 +0800 | [diff] [blame] | 2 | config VHOST_IOTLB |
| 3 | tristate |
| 4 | help |
| 5 | Generic IOTLB implementation for vhost and vringh. |
Michael S. Tsirkin | 3302363 | 2020-04-01 12:46:22 -0400 | [diff] [blame] | 6 | This option is selected by any driver which needs to support |
| 7 | an IOMMU in software. |
Jason Wang | 0bbe306 | 2020-03-26 22:01:19 +0800 | [diff] [blame] | 8 | |
Jason Wang | 20c384f | 2020-03-26 22:01:17 +0800 | [diff] [blame] | 9 | config VHOST_RING |
| 10 | tristate |
Jason Wang | 9ad9c49 | 2020-03-26 22:01:20 +0800 | [diff] [blame] | 11 | select VHOST_IOTLB |
Jason Wang | 20c384f | 2020-03-26 22:01:17 +0800 | [diff] [blame] | 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 | |
Michael S. Tsirkin | 3a4d5c9 | 2010-01-14 06:17:27 +0000 | [diff] [blame] | 29 | config VHOST_NET |
Kees Cook | 43893cb | 2013-01-16 18:53:56 -0800 | [diff] [blame] | 30 | tristate "Host kernel accelerator for virtio net" |
Michael S. Tsirkin | 213e772 | 2020-04-23 08:36:57 -0400 | [diff] [blame] | 31 | depends on NET && EVENTFD && (TUN || !TUN) && (TAP || !TAP) |
Asias He | 6ac1afb | 2013-05-06 16:38:21 +0800 | [diff] [blame] | 32 | select VHOST |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 33 | help |
Michael S. Tsirkin | 3a4d5c9 | 2010-01-14 06:17:27 +0000 | [diff] [blame] | 34 | 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. Tsirkin | 181c04a | 2013-05-02 03:52:59 +0300 | [diff] [blame] | 41 | config VHOST_SCSI |
| 42 | tristate "VHOST_SCSI TCM fabric driver" |
Michael S. Tsirkin | 213e772 | 2020-04-23 08:36:57 -0400 | [diff] [blame] | 43 | depends on TARGET_CORE && EVENTFD |
Asias He | 6ac1afb | 2013-05-06 16:38:21 +0800 | [diff] [blame] | 44 | select VHOST |
Michael S. Tsirkin | 181c04a | 2013-05-02 03:52:59 +0300 | [diff] [blame] | 45 | default n |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 46 | help |
Michael S. Tsirkin | 181c04a | 2013-05-02 03:52:59 +0300 | [diff] [blame] | 47 | Say M here to enable the vhost_scsi TCM fabric module |
| 48 | for use with virtio-scsi guests |
Rusty Russell | f87d0fb | 2013-03-20 13:50:14 +1030 | [diff] [blame] | 49 | |
Asias He | 304ba62 | 2016-07-28 15:36:35 +0100 | [diff] [blame] | 50 | config VHOST_VSOCK |
| 51 | tristate "vhost virtio-vsock driver" |
Michael S. Tsirkin | 213e772 | 2020-04-23 08:36:57 -0400 | [diff] [blame] | 52 | depends on VSOCKETS && EVENTFD |
Asias He | 304ba62 | 2016-07-28 15:36:35 +0100 | [diff] [blame] | 53 | select VHOST |
Jason Wang | 20c384f | 2020-03-26 22:01:17 +0800 | [diff] [blame] | 54 | select VIRTIO_VSOCKETS_COMMON |
Asias He | 304ba62 | 2016-07-28 15:36:35 +0100 | [diff] [blame] | 55 | default n |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 56 | help |
Asias He | 304ba62 | 2016-07-28 15:36:35 +0100 | [diff] [blame] | 57 | 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 Bie | 4c8cf31 | 2020-03-26 22:01:23 +0800 | [diff] [blame] | 64 | config VHOST_VDPA |
| 65 | tristate "Vhost driver for vDPA-based backend" |
Michael S. Tsirkin | 213e772 | 2020-04-23 08:36:57 -0400 | [diff] [blame] | 66 | depends on EVENTFD |
Tiwei Bie | 4c8cf31 | 2020-03-26 22:01:23 +0800 | [diff] [blame] | 67 | select VHOST |
Zhu Lingshan | 2cf1ba9 | 2020-07-31 14:55:31 +0800 | [diff] [blame] | 68 | select IRQ_BYPASS_MANAGER |
Michael S. Tsirkin | 58ad137 | 2020-04-12 04:36:55 -0400 | [diff] [blame] | 69 | depends on VDPA |
Tiwei Bie | 4c8cf31 | 2020-03-26 22:01:23 +0800 | [diff] [blame] | 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. |
| 76 | |
Greg Kurz | 2751c98 | 2015-04-24 14:27:24 +0200 | [diff] [blame] | 77 | config VHOST_CROSS_ENDIAN_LEGACY |
| 78 | bool "Cross-endian support for vhost" |
| 79 | default n |
Masahiro Yamada | a7f7f62 | 2020-06-14 01:50:22 +0900 | [diff] [blame] | 80 | help |
Greg Kurz | 2751c98 | 2015-04-24 14:27:24 +0200 | [diff] [blame] | 81 | 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 Wang | 0bbe306 | 2020-03-26 22:01:19 +0800 | [diff] [blame] | 91 | |
Jason Wang | 20c384f | 2020-03-26 22:01:17 +0800 | [diff] [blame] | 92 | endif |