Kconfig

CONFIG_VIRTIO_ANCHOR

On

CONFIG_VIRTIO

  • Off
  • Module
  • Built in

This option is selected by any driver which implements the virtio bus, such as CONFIG_VIRTIO_PCI, CONFIG_VIRTIO_MMIO, CONFIG_RPMSG or CONFIG_S390_GUEST.

CONFIG_VIRTIO_PCI_LIB

  • Off
  • Module
  • Built in

Modern PCI device implementation. This module implements the basic probe and control for devices which are based on modern PCI device with possible vendor specific extensions. Any module that selects this module must depend on PCI.

CONFIG_VIRTIO_PCI_LIB_LEGACY

  • Off
  • Module
  • Built in

Legacy PCI device (Virtio PCI Card 0.9.x Draft and older device) implementation. This module implements the basic probe and control for devices which are based on legacy PCI device. Any module that selects this module must depend on PCI.

CONFIG_VIRTIO_MENU Virtio drivers

On
Default
  • y

If VIRTIO_MENU

CONFIG_VIRTIO_HARDEN_NOTIFICATION Harden virtio notification

Unknown

Enable this to harden the device notifications and suppress those that happen at a time where notifications are illegal.

Experimental: Note that several drivers still have issues that may cause crashes or hangs when correct handling of notifications is enforced; depending on the subset of drivers and devices you use, this may or may not work.

If unsure, say N.

CONFIG_VIRTIO_PCI PCI driver for virtio devices

  • Off
  • Module
  • Built in

This driver provides support for virtio based paravirtual device drivers over PCI. This requires that your VMM has appropriate PCI virtio backends. Most QEMU based VMMs should support these devices (like KVM or Xen).

If unsure, say M.

If VIRTIO_PCI

CONFIG_VIRTIO_PCI_LEGACY Support for legacy virtio draft 0.9.X and older devices

On

Virtio PCI Card 0.9.X Draft (circa 2014) and older device support.

This option enables building a transitional driver, supporting both devices conforming to Virtio 1 specification, and legacy devices. If disabled, you get a slightly smaller, non-transitional driver, with no legacy compatibility.

So look out into your driveway. Do you have a flying car? If so, you can happily disable this option and virtio will not break. Otherwise, leave it set. Unless you're testing what life will be like in The Future.

If unsure, say Y.

CONFIG_VIRTIO_VDPA vDPA driver for virtio devices

  • Off
  • Module
  • Built in

This driver provides support for virtio based paravirtual device driver over vDPA bus. For this to be useful, you need an appropriate vDPA device implementation that operates on a physical device to allow the datapath of virtio to be offloaded to hardware.

If unsure, say M.

CONFIG_VIRTIO_PMEM Support for virtio pmem driver

  • Off
  • Module
  • Built in
This driver provides access to virtio-pmem devices, storage devices
that are mapped into the physical address space - similar to NVDIMMs
 - with a virtio-based flushing interface.

If unsure, say Y.

CONFIG_VIRTIO_MEM Virtio mem driver

  • Off
  • Module
  • Built in

This driver provides access to virtio-mem paravirtualized memory devices, allowing to hotplug and hotunplug memory.

This driver currently supports x86-64, arm64, riscv and s390. Although it should compile on other architectures that implement memory hot(un)plug, architecture-specific and/or common code changes may be required for virtio-mem, kdump and kexec to work as expected.

If unsure, say M.

CONFIG_VIRTIO_INPUT Virtio input driver

  • Off
  • Module
  • Built in

This driver supports virtio input devices such as keyboards, mice and tablets.

If unsure, say M.

If VIRTIO_MMIO

CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES Memory mapped virtio devices parameter parsing

On

Allow virtio-mmio devices instantiation via the kernel command line or module parameters. Be aware that using incorrect parameters (base address in particular) can crash your system - you have been warned. See Documentation/admin-guide/kernel-parameters.rst for details.

If unsure, say 'N'.

CONFIG_VIRTIO_DMA_SHARED_BUFFER

  • Off
  • Module
  • Built in

This option adds a flavor of dma buffers that are backed by virtio resources.

CONFIG_VIRTIO_DEBUG Debug facilities

On

Enable this to expose debug facilities over debugfs. This allows to debug features, to see what features the device advertises and to set filter for features used by driver.

If unsure, say N.

CONFIG_VIRTIO_RTC Virtio RTC driver

  • Off
  • Module
  • Built in

This driver provides current time from a Virtio RTC device. The driver provides the time through one or more clocks. The Virtio RTC PTP clocks and/or the Real Time Clock driver for Virtio RTC must be enabled to expose the clocks to userspace.

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

If unsure, say M.

If VIRTIO_RTC

WARNING: Consider enabling VIRTIO_RTC_PTP and/or VIRTIO_RTC_CLASS.

Enable PTP_1588_CLOCK in order to enable VIRTIO_RTC_PTP.

If VIRTIO_RTC_PTP

CONFIG_VIRTIO_RTC_ARM Virtio RTC cross-timestamping using Arm Generic Timer

Unknown

This enables Virtio RTC cross-timestamping using the Arm Generic Timer. It only has an effect if the Virtio RTC device also supports this. The cross-timestamp is available through the PTP clock driver precise cross-timestamp ioctl (PTP_SYS_OFFSET_PRECISE2 aka PTP_SYS_OFFSET_PRECISE).

If unsure, say Y.

Enable RTC_CLASS in order to enable VIRTIO_RTC_CLASS.

CONFIG_VIRTIO_RTC_CLASS Real Time Clock driver for Virtio RTC

On

This exposes the Virtio RTC UTC-like clock as a Linux Real Time Clock. It only has an effect if the Virtio RTC device has a UTC-like clock which smears leap seconds to avoid steps. The Real Time Clock is read-only, and may support setting an alarm.

If unsure, say Y.