Kconfig

CONFIG_VHOST_IOTLB

  • Off
  • Module
  • Built in

Generic IOTLB implementation for vhost and vringh. This option is selected by any driver which needs to support an IOMMU in software.

CONFIG_VHOST_RING

  • Off
  • Module
  • Built in

This option is selected by any driver which needs to access the host side of a virtio ring.

CONFIG_VHOST_TASK

On
Default
  • n

CONFIG_VHOST

  • Off
  • Module
  • Built in

This option is selected by any driver which needs to access the core of vhost.

CONFIG_VHOST_MENU VHOST drivers

On
Default
  • y

If VHOST_MENU

CONFIG_VHOST_NET Host kernel accelerator for virtio net

  • Off
  • Module
  • Built in

This kernel module can be loaded in host kernel to accelerate guest networking with virtio_net. Not to be confused with virtio_net module itself which needs to be loaded in guest kernel.

To compile this driver as a module, choose M here: the module will be called vhost_net.

CONFIG_VHOST_VSOCK vhost virtio-vsock driver

  • Off
  • Module
  • Built in

This kernel module can be loaded in the host kernel to provide AF_VSOCK sockets for communicating with guests. The guests must have the virtio_transport.ko driver loaded to use the virtio-vsock device.

To compile this driver as a module, choose M here: the module will be called vhost_vsock.

CONFIG_VHOST_CROSS_ENDIAN_LEGACY Cross-endian support for vhost

On

This option allows vhost to support guests with a different byte ordering from host while using legacy virtio.

Userspace programs can control the feature using the VHOST_SET_VRING_ENDIAN and VHOST_GET_VRING_ENDIAN ioctls.

This is only useful on a few platforms (ppc64 and arm64). Since it adds some overhead, it is disabled by default.

If unsure, say "N".

CONFIG_VHOST_ENABLE_FORK_OWNER_CONTROL Enable VHOST_ENABLE_FORK_OWNER_CONTROL

On

This option enables two IOCTLs: VHOST_SET_FORK_FROM_OWNER and VHOST_GET_FORK_FROM_OWNER. These allow userspace applications to modify the vhost worker mode for vhost devices.

Also expose module parameter 'fork_from_owner_default' to allow users to configure the default mode for vhost workers.

By default, `VHOST_ENABLE_FORK_OWNER_CONTROL` is set to `y`, users can change the worker thread mode as needed. If this config is disabled (n),the related IOCTLs and parameters will be unavailable.

If unsure, say "Y".