xref: /linux/drivers/vhost/Kconfig (revision 58ad13729a8a3e0a354de46eaf9969f9116d4763)
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.
63302363aSMichael S. Tsirkin	  This option is selected by any driver which needs to support
73302363aSMichael S. Tsirkin	  an IOMMU in software.
80bbe3066SJason Wang
920c384f1SJason Wangconfig VHOST_RING
1020c384f1SJason Wang	tristate
119ad9c49cSJason Wang	select VHOST_IOTLB
1220c384f1SJason Wang	help
1320c384f1SJason Wang	  This option is selected by any driver which needs to access
1420c384f1SJason Wang	  the host side of a virtio ring.
1520c384f1SJason Wang
1620c384f1SJason Wangconfig VHOST
1720c384f1SJason Wang	tristate
1820c384f1SJason Wang	select VHOST_IOTLB
1920c384f1SJason Wang	help
2020c384f1SJason Wang	  This option is selected by any driver which needs to access
2120c384f1SJason Wang	  the core of vhost.
2220c384f1SJason Wang
2320c384f1SJason Wangmenuconfig VHOST_MENU
2420c384f1SJason Wang	bool "VHOST drivers"
2520c384f1SJason Wang	default y
2620c384f1SJason Wang
2720c384f1SJason Wangif VHOST_MENU
2820c384f1SJason Wang
293a4d5c94SMichael S. Tsirkinconfig VHOST_NET
3043893cbeSKees Cook	tristate "Host kernel accelerator for virtio net"
319a393b5dSSainath Grandhi	depends on NET && EVENTFD && (TUN || !TUN) && (TAP || !TAP)
326ac1afbfSAsias He	select VHOST
333a4d5c94SMichael S. Tsirkin	---help---
343a4d5c94SMichael S. Tsirkin	  This kernel module can be loaded in host kernel to accelerate
353a4d5c94SMichael S. Tsirkin	  guest networking with virtio_net. Not to be confused with virtio_net
363a4d5c94SMichael S. Tsirkin	  module itself which needs to be loaded in guest kernel.
373a4d5c94SMichael S. Tsirkin
383a4d5c94SMichael S. Tsirkin	  To compile this driver as a module, choose M here: the module will
393a4d5c94SMichael S. Tsirkin	  be called vhost_net.
403a4d5c94SMichael S. Tsirkin
41181c04a3SMichael S. Tsirkinconfig VHOST_SCSI
42181c04a3SMichael S. Tsirkin	tristate "VHOST_SCSI TCM fabric driver"
4384f3396bSGreg Edwards	depends on TARGET_CORE && EVENTFD
446ac1afbfSAsias He	select VHOST
45181c04a3SMichael S. Tsirkin	default n
46181c04a3SMichael S. Tsirkin	---help---
47181c04a3SMichael S. Tsirkin	Say M here to enable the vhost_scsi TCM fabric module
48181c04a3SMichael S. Tsirkin	for use with virtio-scsi guests
49f87d0fbbSRusty Russell
50304ba62fSAsias Heconfig VHOST_VSOCK
51304ba62fSAsias He	tristate "vhost virtio-vsock driver"
52304ba62fSAsias He	depends on VSOCKETS && EVENTFD
53304ba62fSAsias He	select VHOST
5420c384f1SJason Wang	select VIRTIO_VSOCKETS_COMMON
55304ba62fSAsias He	default n
56304ba62fSAsias He	---help---
57304ba62fSAsias He	This kernel module can be loaded in the host kernel to provide AF_VSOCK
58304ba62fSAsias He	sockets for communicating with guests.  The guests must have the
59304ba62fSAsias He	virtio_transport.ko driver loaded to use the virtio-vsock device.
60304ba62fSAsias He
61304ba62fSAsias He	To compile this driver as a module, choose M here: the module will be called
62304ba62fSAsias He	vhost_vsock.
63304ba62fSAsias He
644c8cf318STiwei Bieconfig VHOST_VDPA
654c8cf318STiwei Bie	tristate "Vhost driver for vDPA-based backend"
664c8cf318STiwei Bie	depends on EVENTFD
674c8cf318STiwei Bie	select VHOST
68*58ad1372SMichael S. Tsirkin	depends on VDPA
694c8cf318STiwei Bie	help
704c8cf318STiwei Bie	  This kernel module can be loaded in host kernel to accelerate
714c8cf318STiwei Bie	  guest virtio devices with the vDPA-based backends.
724c8cf318STiwei Bie
734c8cf318STiwei Bie	  To compile this driver as a module, choose M here: the module
744c8cf318STiwei Bie	  will be called vhost_vdpa.
754c8cf318STiwei Bie
762751c988SGreg Kurzconfig VHOST_CROSS_ENDIAN_LEGACY
772751c988SGreg Kurz	bool "Cross-endian support for vhost"
782751c988SGreg Kurz	default n
792751c988SGreg Kurz	---help---
802751c988SGreg Kurz	  This option allows vhost to support guests with a different byte
812751c988SGreg Kurz	  ordering from host while using legacy virtio.
822751c988SGreg Kurz
832751c988SGreg Kurz	  Userspace programs can control the feature using the
842751c988SGreg Kurz	  VHOST_SET_VRING_ENDIAN and VHOST_GET_VRING_ENDIAN ioctls.
852751c988SGreg Kurz
862751c988SGreg Kurz	  This is only useful on a few platforms (ppc64 and arm64). Since it
872751c988SGreg Kurz	  adds some overhead, it is disabled by default.
882751c988SGreg Kurz
892751c988SGreg Kurz	  If unsure, say "N".
900bbe3066SJason Wang
9120c384f1SJason Wangendif
92