summaryrefslogtreecommitdiffstats
path: root/drivers/vhost/Kconfig
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2020-03-26 15:01:19 +0100
committerMichael S. Tsirkin <mst@redhat.com>2020-04-01 18:06:26 +0200
commit0bbe30668d89ec8a309f28ced6d092c90fb23e8c (patch)
tree5d37d0d182c340f78fc7b1ea8c036e2ecf2cc1a5 /drivers/vhost/Kconfig
parentvhost: allow per device message handler (diff)
downloadlinux-0bbe30668d89ec8a309f28ced6d092c90fb23e8c.tar.xz
linux-0bbe30668d89ec8a309f28ced6d092c90fb23e8c.zip
vhost: factor out IOTLB
This patch factors out IOTLB into a dedicated module in order to be reused by other modules like vringh. User may choose to enable the automatic retiring by specifying VHOST_IOTLB_FLAG_RETIRE flag to fit for the case of vhost device IOTLB implementation. Signed-off-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20200326140125.19794-4-jasowang@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/Kconfig')
-rw-r--r--drivers/vhost/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/vhost/Kconfig b/drivers/vhost/Kconfig
index e775beddc36a..37400a1655b4 100644
--- a/drivers/vhost/Kconfig
+++ b/drivers/vhost/Kconfig
@@ -1,4 +1,9 @@
# SPDX-License-Identifier: GPL-2.0-only
+config VHOST_IOTLB
+ tristate
+ help
+ Generic IOTLB implementation for vhost and vringh.
+
config VHOST_RING
tristate
help
@@ -67,4 +72,5 @@ config VHOST_CROSS_ENDIAN_LEGACY
adds some overhead, it is disabled by default.
If unsure, say "N".
+
endif