Kconfig
Includevirt/kvm/Kconfig Open file

CONFIG_VIRTUALIZATION Virtualization

On

Say Y here to get to see options for using your Linux host to run other operating systems inside virtual machines (guests). This option alone does not add any kernel code.

If you say N, all options in this submenu will be skipped and disabled.

Default
  • y

If

CONFIG_KVM_X86

  • Off
  • Module
  • Built in

CONFIG_KVM Kernel-based Virtual Machine (KVM) support

  • Off
  • Module
  • Built in

Support hosting fully virtualized guest machines using hardware virtualization extensions. You will need a fairly recent processor equipped with virtualization extensions. You will also need to select one or more of the processor modules below.

This module provides access to the hardware capabilities through a character device node named /dev/kvm.

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

If unsure, say N.

CONFIG_KVM_WERROR Compile KVM with -Werror

On

Add -Werror to the build flags for KVM.

If in doubt, say "N".

CONFIG_KVM_PRIVATE_MEMATTR_VM Enable per-VM PRIVATE vs. SHARED attributes (for CoCo VMs)

On

Enable support for tracking PRIVATE vs. SHARED memory using per-VM memory attributes. Using per-VM attributes is deprecated in favor of tracking PRIVATE state in guest_memfd. Select this if you need to run CoCo VMs using a VMM that doesn't support guest_memfd memory attributes.

If unsure, say Y.

CONFIG_KVM_SW_PROTECTED_VM Enable support for KVM software-protected VMs

On

Enable support for KVM software-protected VMs. Currently, software- protected VMs are purely a development and testing vehicle for KVM_CREATE_GUEST_MEMFD. Attempting to run a "real" VM workload as a software-protected VM will fail miserably.

If unsure, say "N".

CONFIG_KVM_INTEL KVM for Intel (and compatible) processors support

  • Off
  • Module
  • Built in

Provides support for KVM on processors equipped with Intel's VT extensions, a.k.a. Virtual Machine Extensions (VMX).

To compile this as a module, choose M here: the module will be called kvm-intel.

If KVM_INTEL

CONFIG_KVM_INTEL_PROVE_VE Check that guests do not receive #VE exceptions

On

Checks that KVM's page table management code will not incorrectly let guests receive a virtualization exception. Virtualization exceptions will be trapped by the hypervisor rather than injected in the guest.

Note: some CPUs appear to generate spurious EPT Violations #VEs that trigger KVM's WARN, in particular with eptad=0 and/or nested virtualization.

If unsure, say N.

CONFIG_X86_SGX_KVM Software Guard eXtensions (SGX) Virtualization

On

Enables KVM guests to create SGX enclaves.

This includes support to expose "raw" unreclaimable enclave memory to guests via a device node, e.g. /dev/sgx_vepc.

If unsure, say N.

CONFIG_KVM_INTEL_TDX Intel Trust Domain Extensions (TDX) support

On

Provides support for launching Intel Trust Domain Extensions (TDX) confidential VMs on Intel processors.

If unsure, say N.

CONFIG_KVM_AMD KVM for AMD processors support

  • Off
  • Module
  • Built in

Provides support for KVM on AMD processors equipped with the AMD-V (SVM) extensions.

To compile this as a module, choose M here: the module will be called kvm-amd.

CONFIG_KVM_AMD_SEV AMD Secure Encrypted Virtualization (SEV) support

On

Provides support for launching encrypted VMs which use Secure Encrypted Virtualization (SEV), Secure Encrypted Virtualization with Encrypted State (SEV-ES), and Secure Encrypted Virtualization with Secure Nested Paging (SEV-SNP) technologies on AMD processors.

CONFIG_KVM_IOAPIC I/O APIC, PIC, and PIT emulation

On

Provides support for KVM to emulate an I/O APIC, PIC, and PIT, i.e. for full in-kernel APIC emulation.

If unsure, say Y.

  • Depends on && KVM_X86
Default

CONFIG_KVM_SMM System Management Mode emulation

On

Provides support for KVM to emulate System Management Mode (SMM) in virtual machines. This can be used by the virtual machine firmware to implement UEFI secure boot.

If unsure, say Y.

  • Depends on && KVM_X86
Default

CONFIG_KVM_HYPERV Support for Microsoft Hyper-V emulation

On

Provides KVM support for emulating Microsoft Hyper-V. This allows KVM to expose a subset of the paravirtualized interfaces defined in the Hyper-V Hypervisor Top-Level Functional Specification (TLFS): https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/reference/tlfs These interfaces are required for the correct and performant functioning of Windows and Hyper-V guests on KVM.

If unsure, say "Y".

  • Depends on && KVM_X86
Default

CONFIG_KVM_XEN Support for Xen hypercall interface

On

Provides KVM support for the hosting Xen HVM guests and passing Xen hypercalls to userspace.

If in doubt, say "N".

  • Depends on && KVM_X86

CONFIG_KVM_PROVE_MMU Prove KVM MMU correctness

On

Enables runtime assertions in KVM's MMU that are too costly to enable in anything remotely resembling a production environment, e.g. this gates code that verifies a to-be-freed page table doesn't have any present SPTEs.

If in doubt, say "N".

CONFIG_KVM_EXTERNAL_WRITE_TRACKING

On

CONFIG_KVM_MAX_NR_VCPUS Maximum number of vCPUs per KVM guest

Set the maximum number of vCPUs per KVM guest. Larger values will increase the memory footprint of each KVM guest, regardless of how many vCPUs are created for a given VM.

  • Depends on && KVM_X86
  • Range[1024 4096] if && KVM_X86