xref: /linux/drivers/vhost/Kconfig (revision 20c384f1ea1a0bc7320bc445c72dd02d2970d594)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2*20c384f1SJason Wangconfig VHOST_RING
3*20c384f1SJason Wang	tristate
4*20c384f1SJason Wang	help
5*20c384f1SJason Wang	  This option is selected by any driver which needs to access
6*20c384f1SJason Wang	  the host side of a virtio ring.
7*20c384f1SJason Wang
8*20c384f1SJason Wangconfig VHOST
9*20c384f1SJason Wang	tristate
10*20c384f1SJason Wang	select VHOST_IOTLB
11*20c384f1SJason Wang	help
12*20c384f1SJason Wang	  This option is selected by any driver which needs to access
13*20c384f1SJason Wang	  the core of vhost.
14*20c384f1SJason Wang
15*20c384f1SJason Wangmenuconfig VHOST_MENU
16*20c384f1SJason Wang	bool "VHOST drivers"
17*20c384f1SJason Wang	default y
18*20c384f1SJason Wang
19*20c384f1SJason Wangif VHOST_MENU
20*20c384f1SJason Wang
213a4d5c94SMichael S. Tsirkinconfig VHOST_NET
2243893cbeSKees Cook	tristate "Host kernel accelerator for virtio net"
239a393b5dSSainath Grandhi	depends on NET && EVENTFD && (TUN || !TUN) && (TAP || !TAP)
246ac1afbfSAsias He	select VHOST
253a4d5c94SMichael S. Tsirkin	---help---
263a4d5c94SMichael S. Tsirkin	  This kernel module can be loaded in host kernel to accelerate
273a4d5c94SMichael S. Tsirkin	  guest networking with virtio_net. Not to be confused with virtio_net
283a4d5c94SMichael S. Tsirkin	  module itself which needs to be loaded in guest kernel.
293a4d5c94SMichael S. Tsirkin
303a4d5c94SMichael S. Tsirkin	  To compile this driver as a module, choose M here: the module will
313a4d5c94SMichael S. Tsirkin	  be called vhost_net.
323a4d5c94SMichael S. Tsirkin
33181c04a3SMichael S. Tsirkinconfig VHOST_SCSI
34181c04a3SMichael S. Tsirkin	tristate "VHOST_SCSI TCM fabric driver"
3584f3396bSGreg Edwards	depends on TARGET_CORE && EVENTFD
366ac1afbfSAsias He	select VHOST
37181c04a3SMichael S. Tsirkin	default n
38181c04a3SMichael S. Tsirkin	---help---
39181c04a3SMichael S. Tsirkin	Say M here to enable the vhost_scsi TCM fabric module
40181c04a3SMichael S. Tsirkin	for use with virtio-scsi guests
41f87d0fbbSRusty Russell
42304ba62fSAsias Heconfig VHOST_VSOCK
43304ba62fSAsias He	tristate "vhost virtio-vsock driver"
44304ba62fSAsias He	depends on VSOCKETS && EVENTFD
45304ba62fSAsias He	select VHOST
46*20c384f1SJason Wang	select VIRTIO_VSOCKETS_COMMON
47304ba62fSAsias He	default n
48304ba62fSAsias He	---help---
49304ba62fSAsias He	This kernel module can be loaded in the host kernel to provide AF_VSOCK
50304ba62fSAsias He	sockets for communicating with guests.  The guests must have the
51304ba62fSAsias He	virtio_transport.ko driver loaded to use the virtio-vsock device.
52304ba62fSAsias He
53304ba62fSAsias He	To compile this driver as a module, choose M here: the module will be called
54304ba62fSAsias He	vhost_vsock.
55304ba62fSAsias He
562751c988SGreg Kurzconfig VHOST_CROSS_ENDIAN_LEGACY
572751c988SGreg Kurz	bool "Cross-endian support for vhost"
582751c988SGreg Kurz	default n
592751c988SGreg Kurz	---help---
602751c988SGreg Kurz	  This option allows vhost to support guests with a different byte
612751c988SGreg Kurz	  ordering from host while using legacy virtio.
622751c988SGreg Kurz
632751c988SGreg Kurz	  Userspace programs can control the feature using the
642751c988SGreg Kurz	  VHOST_SET_VRING_ENDIAN and VHOST_GET_VRING_ENDIAN ioctls.
652751c988SGreg Kurz
662751c988SGreg Kurz	  This is only useful on a few platforms (ppc64 and arm64). Since it
672751c988SGreg Kurz	  adds some overhead, it is disabled by default.
682751c988SGreg Kurz
692751c988SGreg Kurz	  If unsure, say "N".
70*20c384f1SJason Wangendif
71