xref: /linux/drivers/vhost/Kconfig (revision 2cf1ba9a4d15cb78b96ea97f727b93382c3f9a60)
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"
31213e7721SMichael S. Tsirkin	depends on NET && EVENTFD && (TUN || !TUN) && (TAP || !TAP)
326ac1afbfSAsias He	select VHOST
33a7f7f624SMasahiro Yamada	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"
43213e7721SMichael S. Tsirkin	depends on TARGET_CORE && EVENTFD
446ac1afbfSAsias He	select VHOST
45181c04a3SMichael S. Tsirkin	default n
46a7f7f624SMasahiro Yamada	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"
52213e7721SMichael S. Tsirkin	depends on VSOCKETS && EVENTFD
53304ba62fSAsias He	select VHOST
5420c384f1SJason Wang	select VIRTIO_VSOCKETS_COMMON
55304ba62fSAsias He	default n
56a7f7f624SMasahiro Yamada	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"
66213e7721SMichael S. Tsirkin	depends on EVENTFD
674c8cf318STiwei Bie	select VHOST
68*2cf1ba9aSZhu Lingshan	select IRQ_BYPASS_MANAGER
6958ad1372SMichael S. Tsirkin	depends on VDPA
704c8cf318STiwei Bie	help
714c8cf318STiwei Bie	  This kernel module can be loaded in host kernel to accelerate
724c8cf318STiwei Bie	  guest virtio devices with the vDPA-based backends.
734c8cf318STiwei Bie
744c8cf318STiwei Bie	  To compile this driver as a module, choose M here: the module
754c8cf318STiwei Bie	  will be called vhost_vdpa.
764c8cf318STiwei Bie
772751c988SGreg Kurzconfig VHOST_CROSS_ENDIAN_LEGACY
782751c988SGreg Kurz	bool "Cross-endian support for vhost"
792751c988SGreg Kurz	default n
80a7f7f624SMasahiro Yamada	help
812751c988SGreg Kurz	  This option allows vhost to support guests with a different byte
822751c988SGreg Kurz	  ordering from host while using legacy virtio.
832751c988SGreg Kurz
842751c988SGreg Kurz	  Userspace programs can control the feature using the
852751c988SGreg Kurz	  VHOST_SET_VRING_ENDIAN and VHOST_GET_VRING_ENDIAN ioctls.
862751c988SGreg Kurz
872751c988SGreg Kurz	  This is only useful on a few platforms (ppc64 and arm64). Since it
882751c988SGreg Kurz	  adds some overhead, it is disabled by default.
892751c988SGreg Kurz
902751c988SGreg Kurz	  If unsure, say "N".
910bbe3066SJason Wang
9220c384f1SJason Wangendif
93