Kconfig

Xen driver support

  • Depends on

CONFIG_XEN_BALLOON Xen memory balloon driver

On

The balloon driver allows the Xen domain to request more memory from the system to expand the domain's memory allocation, or alternatively return unneeded memory to the system.

  • Depends on
Default
  • y if

If XEN_BALLOON

CONFIG_XEN_BALLOON_MEMORY_HOTPLUG Memory hotplug support for Xen balloon driver

On

Memory hotplug support for Xen balloon driver allows expanding memory available for the system above limit declared at system startup. It is very useful on critical systems which require long run without rebooting.

It's also very useful for non PV domains to obtain unpopulated physical memory ranges to use in order to map foreign memory or grants.

Memory could be hotplugged in following steps:

  1) target domain: ensure that memory auto online policy is in
     effect by checking /sys/devices/system/memory/auto_online_blocks
     file (should be 'online').
  2) control domain: xl mem-max <target-domain> <maxmem>
     where <maxmem> is >= requested memory size,
  3) control domain: xl mem-set <target-domain> <memory>
     where <memory> is requested memory size; alternatively memory
     could be added by writing proper value to
     /sys/devices/system/xen_memory/xen_memory0/target or
     /sys/devices/system/xen_memory/xen_memory0/target_kb on the
     target domain.

Alternatively, if memory auto onlining was not requested at step 1 the newly added memory can be manually onlined in the target domain by doing the following:

      for i in /sys/devices/system/memory/memory*/state; do \
        [ "`cat "$i"`" = offline ] && echo online > "$i"; done

or by adding the following line to udev rules:

SUBSYSTEM=="memory", ACTION=="add", RUN+="/bin/sh -c '[ -f /sys$devpath/state ] && echo online > /sys$devpath/state'"

CONFIG_XEN_MEMORY_HOTPLUG_LIMIT Hotplugged memory limit (in GiB) for a PV guest

Maximum amount of memory (in GiB) that a PV guest can be expanded to when using memory hotplug.

A PV guest can have more memory than this limit if is started with a larger maximum.

This value is used to allocate enough space in internal tables needed for physical memory administration.

CONFIG_XEN_SCRUB_PAGES_DEFAULT Scrub pages before returning them to system by default

On

Scrub pages before returning them to the system for reuse by other domains. This makes sure that any confidential data is not accidentally visible to other domains. It is more secure, but slightly less efficient. This can be controlled with xen_scrub_pages=0 parameter and /sys/devices/system/xen_memory/xen_memory0/scrub_pages. This option only sets the default value.

If in doubt, say yes.

CONFIG_XEN_DEV_EVTCHN Xen /dev/xen/evtchn device

  • Off
  • Module
  • Built in

The evtchn driver allows a userspace process to trigger event channels and to receive notification of an event channel firing. If in doubt, say yes.

  • Depends on
Default
  • y if

CONFIG_XEN_BACKEND Backend driver support

On

Support for backend device drivers that provide I/O services to other virtual machines.

  • Depends on
Default
  • if

CONFIG_XENFS Xen filesystem

  • Off
  • Module
  • Built in

The xen filesystem provides a way for domains to share information with each other and with the hypervisor. For example, by reading and writing the "xenbus" file, guests may pass arbitrary information to the initial domain. If in doubt, say yes.

Default
  • y if

If XENFS

CONFIG_XEN_COMPAT_XENFS Create compatibility mount point /proc/xen

On

The old xenstore userspace tools expect to find "xenbus" under /proc/xen, but "xenbus" is now found at the root of the xenfs filesystem. Selecting this causes the kernel to create the compatibility mount point /proc/xen if it is running on a xen platform. If in doubt, say yes.

CONFIG_XEN_SYS_HYPERVISOR Create xen entries under /sys/hypervisor

On

Create entries under /sys/hypervisor describing the Xen hypervisor environment. When running native or in another virtual environment, /sys/hypervisor will still be present, but will have no xen contents.

CONFIG_XEN_XENBUS_FRONTEND

  • Off
  • Module
  • Built in
  • Depends on

CONFIG_XEN_GNTDEV userspace grant access device driver

  • Off
  • Module
  • Built in

Allows userspace processes to use grants.

Default
  • m if

If XEN_GNTDEV

CONFIG_XEN_GNTDEV_DMABUF Add support for dma-buf grant access device driver extension

On

Allows userspace processes and kernel modules to use Xen backed dma-buf implementation. With this extension grant references to the pages of an imported dma-buf can be exported for other domain use and grant references coming from a foreign domain can be converted into a local dma-buf for local export.

CONFIG_XEN_GRANT_DEV_ALLOC User-space grant reference allocator driver

  • Off
  • Module
  • Built in

Allows userspace processes to create pages with access granted to other domains. This can be used to implement frontend drivers or as part of an inter-domain shared memory channel.

  • Depends on
Default
  • m if

CONFIG_XEN_GRANT_DMA_ALLOC Allow allocating DMA capable buffers with grant reference module

On

Extends grant table module API to allow allocating DMA capable buffers and mapping foreign grant references on top of it. The resulting buffer is similar to one allocated by the balloon driver in that proper memory reservation is made by ({increase|decrease}_reservation and VA mappings are updated if needed). This is useful for sharing foreign buffers with HW drivers which cannot work with scattered buffers provided by the balloon driver, but require DMAable memory instead.

CONFIG_XEN_PCI_STUB

On
  • Depends on

CONFIG_XEN_PCIDEV_STUB Xen PCI-device stub driver

  • Off
  • Module
  • Built in
Unknown

The PCI device stub driver provides limited version of the PCI device backend driver without para-virtualized support for guests. If you select this to be a module, you will need to make sure no other driver has bound to the device(s) you want to make visible to other guests.

The "hide" parameter (only applicable if backend driver is compiled into the kernel) allows you to bind the PCI devices to this module from the default device drivers. The argument is the list of PCI BDFs: xen-pciback.hide=(03:00.0)(04:00.0)

If in doubt, say m.

CONFIG_XEN_PCIDEV_BACKEND Xen PCI-device backend driver

  • Off
  • Module
  • Built in

The PCI device backend driver allows the kernel to export arbitrary PCI devices to other guests. If you select this to be a module, you will need to make sure no other driver has bound to the device(s) you want to make visible to other guests.

The parameter "passthrough" allows you specify how you want the PCI devices to appear in the guest. You can choose the default (0) where PCI topology starts at 00.00.0, or (1) for passthrough if you want the PCI devices topology appear the same as in the host.

The "hide" parameter (only applicable if backend driver is compiled into the kernel) allows you to bind the PCI devices to this module from the default device drivers. The argument is the list of PCI BDFs: xen-pciback.hide=(03:00.0)(04:00.0)

If in doubt, say m.

CONFIG_XEN_SCSI_BACKEND XEN SCSI backend driver

  • Off
  • Module
  • Built in

The SCSI backend driver allows the kernel to export its SCSI Devices to other guests via a high-performance shared-memory interface. Only needed for systems running as XEN driver domains (e.g. Dom0) and if guests need generic access to SCSI devices.

CONFIG_XEN_PRIVCMD Xen hypercall passthrough driver

  • Off
  • Module
  • Built in

The hypercall passthrough driver allows privileged user programs to perform Xen hypercalls. This driver is normally required for systems running as Dom0 to perform privileged operations, but in some disaggregated Xen setups this driver might be needed for other domains, too.

  • Depends on
Default
  • m if

If XEN_PRIVCMD

CONFIG_XEN_PRIVCMD_EVENTFD Xen Ioeventfd and irqfd support

On

Using the ioeventfd / irqfd mechanism a virtio backend running in a daemon can speed up interrupt delivery from / to a guest.

CONFIG_XEN_ACPI_PROCESSOR Xen ACPI processor

  • Off
  • Module
  • Built in

This ACPI processor uploads Power Management information to the Xen hypervisor.

To do that the driver parses the Power Management data and uploads said information to the Xen hypervisor. Then the Xen hypervisor can select the proper Cx and Pxx states. It also registers itself as the SMM so that other drivers (such as ACPI cpufreq scaling driver) will not load.

To compile this driver as a module, choose M here: the module will be called xen_acpi_processor If you do not know what to choose, select M here. If the CPUFREQ drivers are built in, select Y here.

CONFIG_XEN_MCE_LOG Xen platform mcelog

On

Allow kernel fetching MCE error from Xen platform and converting it into Linux mcelog format for mcelog tools

CONFIG_XEN_HAVE_PVMMU

On
  • Depends on

CONFIG_XEN_EFI

On
  • Depends on && (ARM || ARM64 || ) &&
Default
  • y if && (ARM || ARM64 || ) &&

CONFIG_XEN_ACPI

On

CONFIG_XEN_SYMS Xen symbols

On

Exports hypervisor symbols (along with their types and addresses) via /proc/xen/xensyms file, similar to /proc/kallsyms

  • Depends on && X86 && && XENFS

CONFIG_XEN_HAVE_VPMU

On
  • Depends on

CONFIG_XEN_FRONT_PGDIR_SHBUF

  • Off
  • Module
  • Built in
  • Depends on

CONFIG_XEN_UNPOPULATED_ALLOC Use unpopulated memory ranges for guest mappings

On

Use unpopulated memory ranges in order to create mappings for guest memory regions, including grant maps and foreign pages. This avoids having to balloon out RAM regions in order to obtain physical memory space to create such mappings.

CONFIG_XEN_GRANT_DMA_IOMMU

On

CONFIG_XEN_GRANT_DMA_OPS

On
  • Depends on

If XEN_VIRTIO

CONFIG_XEN_VIRTIO_FORCE_GRANT Require Xen virtio support to use grants

On

Require virtio for Xen guests to use grant mappings. This will avoid the need to give the backend the right to map all of the guest memory. This will need support on the backend side (e.g. qemu or kernel, depending on the virtio device types used).

End of Xen driver support