xref: /linux/drivers/vhost/Kconfig (revision 9ad9c49cfe970b053bb0ef323b682dd1b4d4f8a0)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
20bbe3066SJason Wangconfig VHOST_IOTLB
30bbe3066SJason Wang	tristate
40bbe3066SJason Wang	help
50bbe3066SJason Wang	  Generic IOTLB implementation for vhost and vringh.
60bbe3066SJason Wang
720c384f1SJason Wangconfig VHOST_RING
820c384f1SJason Wang	tristate
9*9ad9c49cSJason Wang	select VHOST_IOTLB
1020c384f1SJason Wang	help
1120c384f1SJason Wang	  This option is selected by any driver which needs to access
1220c384f1SJason Wang	  the host side of a virtio ring.
1320c384f1SJason Wang
1420c384f1SJason Wangconfig VHOST
1520c384f1SJason Wang	tristate
1620c384f1SJason Wang	select VHOST_IOTLB
1720c384f1SJason Wang	help
1820c384f1SJason Wang	  This option is selected by any driver which needs to access
1920c384f1SJason Wang	  the core of vhost.
2020c384f1SJason Wang
2120c384f1SJason Wangmenuconfig VHOST_MENU
2220c384f1SJason Wang	bool "VHOST drivers"
2320c384f1SJason Wang	default y
2420c384f1SJason Wang
2520c384f1SJason Wangif VHOST_MENU
2620c384f1SJason Wang
273a4d5c94SMichael S. Tsirkinconfig VHOST_NET
2843893cbeSKees Cook	tristate "Host kernel accelerator for virtio net"
299a393b5dSSainath Grandhi	depends on NET && EVENTFD && (TUN || !TUN) && (TAP || !TAP)
306ac1afbfSAsias He	select VHOST
313a4d5c94SMichael S. Tsirkin	---help---
323a4d5c94SMichael S. Tsirkin	  This kernel module can be loaded in host kernel to accelerate
333a4d5c94SMichael S. Tsirkin	  guest networking with virtio_net. Not to be confused with virtio_net
343a4d5c94SMichael S. Tsirkin	  module itself which needs to be loaded in guest kernel.
353a4d5c94SMichael S. Tsirkin
363a4d5c94SMichael S. Tsirkin	  To compile this driver as a module, choose M here: the module will
373a4d5c94SMichael S. Tsirkin	  be called vhost_net.
383a4d5c94SMichael S. Tsirkin
39181c04a3SMichael S. Tsirkinconfig VHOST_SCSI
40181c04a3SMichael S. Tsirkin	tristate "VHOST_SCSI TCM fabric driver"
4184f3396bSGreg Edwards	depends on TARGET_CORE && EVENTFD
426ac1afbfSAsias He	select VHOST
43181c04a3SMichael S. Tsirkin	default n
44181c04a3SMichael S. Tsirkin	---help---
45181c04a3SMichael S. Tsirkin	Say M here to enable the vhost_scsi TCM fabric module
46181c04a3SMichael S. Tsirkin	for use with virtio-scsi guests
47f87d0fbbSRusty Russell
48304ba62fSAsias Heconfig VHOST_VSOCK
49304ba62fSAsias He	tristate "vhost virtio-vsock driver"
50304ba62fSAsias He	depends on VSOCKETS && EVENTFD
51304ba62fSAsias He	select VHOST
5220c384f1SJason Wang	select VIRTIO_VSOCKETS_COMMON
53304ba62fSAsias He	default n
54304ba62fSAsias He	---help---
55304ba62fSAsias He	This kernel module can be loaded in the host kernel to provide AF_VSOCK
56304ba62fSAsias He	sockets for communicating with guests.  The guests must have the
57304ba62fSAsias He	virtio_transport.ko driver loaded to use the virtio-vsock device.
58304ba62fSAsias He
59304ba62fSAsias He	To compile this driver as a module, choose M here: the module will be called
60304ba62fSAsias He	vhost_vsock.
61304ba62fSAsias He
622751c988SGreg Kurzconfig VHOST_CROSS_ENDIAN_LEGACY
632751c988SGreg Kurz	bool "Cross-endian support for vhost"
642751c988SGreg Kurz	default n
652751c988SGreg Kurz	---help---
662751c988SGreg Kurz	  This option allows vhost to support guests with a different byte
672751c988SGreg Kurz	  ordering from host while using legacy virtio.
682751c988SGreg Kurz
692751c988SGreg Kurz	  Userspace programs can control the feature using the
702751c988SGreg Kurz	  VHOST_SET_VRING_ENDIAN and VHOST_GET_VRING_ENDIAN ioctls.
712751c988SGreg Kurz
722751c988SGreg Kurz	  This is only useful on a few platforms (ppc64 and arm64). Since it
732751c988SGreg Kurz	  adds some overhead, it is disabled by default.
742751c988SGreg Kurz
752751c988SGreg Kurz	  If unsure, say "N".
760bbe3066SJason Wang
7720c384f1SJason Wangendif
78