Xen driver support
- Depends on
CONFIG_XEN_BALLOON Xen memory balloon driver
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
If XEN_BALLOON
CONFIG_XEN_BALLOON_MEMORY_HOTPLUG Memory hotplug support for Xen balloon driver
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'"
- Depends on
&& XEN_BALLOON && MEMORY_HOTPLUG
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.
- Depends on
&& XEN_HAVE_PVMMU && MEMORY_HOTPLUG
CONFIG_XEN_SCRUB_PAGES_DEFAULT Scrub pages before returning them to system by default
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.
- Depends on
&& XEN_BALLOON
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
CONFIG_XEN_BACKEND Backend driver support
Support for backend device drivers that provide I/O services to other virtual machines.
- Depends on
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.
- Depends on
- Selects
XEN_PRIVCMD if
If XENFS
CONFIG_XEN_COMPAT_XENFS Create compatibility mount point /proc/xen
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.
- Depends on
&& XENFS
CONFIG_XEN_SYS_HYPERVISOR Create xen entries under /sys/hypervisor
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.
- Depends on
&& SYSFS - Selects
SYS_HYPERVISOR if && SYSFS
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.
- Depends on
- Selects
MMU_NOTIFIER if - Selects
FIND_NORMAL_PAGE if
If XEN_GNTDEV
CONFIG_XEN_GNTDEV_DMABUF Add support for dma-buf grant access device driver extension
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.
- Depends on
&& XEN_GNTDEV && XEN_GRANT_DMA_ALLOC - Selects
DMA_SHARED_BUFFER if && XEN_GNTDEV && XEN_GRANT_DMA_ALLOC
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
CONFIG_XEN_GRANT_DMA_ALLOC Allow allocating DMA capable buffers with grant reference module
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.
- Depends on
&& HAS_DMA
CONFIG_SWIOTLB_XEN
- Depends on
&& ARCH_HAS_DMA_OPS && (XEN_PV || ARM || ARM64) - Selects
SWIOTLB if && ARCH_HAS_DMA_OPS && (XEN_PV || ARM || ARM64)
CONFIG_XEN_PCI_STUB
- Depends on
CONFIG_XEN_PCIDEV_STUB Xen PCI-device stub driver
- Off
- Module
- Built in
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.
- Depends on
PCI && !X86 && && XEN_BACKEND - Selects
XEN_PCI_STUB if PCI && !X86 && && XEN_BACKEND
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.
- Depends on
PCI && X86 && && XEN_BACKEND - Selects
XEN_PCI_STUB if PCI && X86 && && XEN_BACKEND
CONFIG_XEN_PVCALLS_FRONTEND XEN PV Calls frontend driver
- Off
- Module
- Built in
Experimental frontend for the Xen PV Calls protocol (https://xenbits.xen.org/docs/unstable/misc/pvcalls.html). It sends a small set of POSIX calls to the backend, which implements them.
- Depends on
INET && - Selects
XEN_XENBUS_FRONTEND if INET &&
CONFIG_XEN_PVCALLS_BACKEND XEN PV Calls backend driver
- Off
- Module
- Built in
Experimental backend for the Xen PV Calls protocol (https://xenbits.xen.org/docs/unstable/misc/pvcalls.html). It allows PV Calls frontends to send POSIX calls to the backend, which implements them.
If in doubt, say n.
- Depends on
INET && && XEN_BACKEND
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.
- Depends on
&& XEN_BACKEND && TARGET_CORE
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
If XEN_PRIVCMD
CONFIG_XEN_PRIVCMD_EVENTFD Xen Ioeventfd and irqfd support
Using the ioeventfd / irqfd mechanism a virtio backend running in a daemon can speed up interrupt delivery from / to a guest.
- Depends on
&& XEN_PRIVCMD && XEN_VIRTIO && EVENTFD
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.
- Depends on
&& && X86 && ACPI_PROCESSOR && CPU_FREQ
CONFIG_XEN_MCE_LOG Xen platform mcelog
Allow kernel fetching MCE error from Xen platform and converting it into Linux mcelog format for mcelog tools
- Depends on
&& XEN_PV_DOM0 && X86_MCE
CONFIG_XEN_HAVE_PVMMU
- Depends on
CONFIG_XEN_EFI
CONFIG_XEN_ACPI
CONFIG_XEN_SYMS Xen symbols
Exports hypervisor symbols (along with their types and addresses) via /proc/xen/xensyms file, similar to /proc/kallsyms
CONFIG_XEN_HAVE_VPMU
- Depends on
CONFIG_XEN_FRONT_PGDIR_SHBUF
- Off
- Module
- Built in
- Depends on
CONFIG_XEN_UNPOPULATED_ALLOC Use unpopulated memory ranges for guest mappings
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.
- Depends on
&& ZONE_DEVICE
CONFIG_XEN_GRANT_DMA_IOMMU
- Depends on
- Selects
IOMMU_API if
CONFIG_XEN_GRANT_DMA_OPS
- Depends on
CONFIG_XEN_VIRTIO Xen virtio support
Enable virtio support for running as Xen guest. Depending on the guest type this will require special support on the backend side (qemu or kernel, depending on the virtio device types used).
If in doubt, say n.
- Depends on
&& ARCH_HAS_DMA_OPS && VIRTIO - Selects
XEN_GRANT_DMA_OPS if && ARCH_HAS_DMA_OPS && VIRTIO - Selects
XEN_GRANT_DMA_IOMMU if && ARCH_HAS_DMA_OPS && VIRTIO && OF
If XEN_VIRTIO
CONFIG_XEN_VIRTIO_FORCE_GRANT Require Xen virtio support to use grants
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).
- Depends on
&& XEN_VIRTIO