CONFIG_VIRTUALIZATION Virtualization
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.
If
CONFIG_KVM_X86
- Off
- Module
- Built in
- Selects
KVM_COMMON if - Selects
KVM_ELIDE_TLB_FLUSH_IF_YOUNG if - Selects
KVM_MMU_LOCKLESS_AGING if - Selects
HAVE_KVM_IRQCHIP if - Selects
HAVE_KVM_PFNCACHE if - Selects
HAVE_KVM_DIRTY_RING_TSO if - Selects
HAVE_KVM_DIRTY_RING_ACQ_REL if - Selects
HAVE_KVM_IRQ_BYPASS if - Selects
HAVE_KVM_IRQ_ROUTING if - Selects
VHOST_TASK if - Selects
KVM_ASYNC_PF if - Selects
USER_RETURN_NOTIFIER if - Selects
SCHED_INFO if - Selects
PERF_EVENTS if - Selects
GUEST_PERF_EVENTS if - Selects
PERF_GUEST_MEDIATED_PMU if - Selects
HAVE_KVM_CPU_RELAX_INTERCEPT if - Selects
VIRT_XFER_TO_GUEST_WORK if - Selects
KVM_GENERIC_DIRTYLOG_READ_PROTECT if - Selects
KVM_VFIO if - Selects
HAVE_KVM_PM_NOTIFIER if && - Selects
KVM_GENERIC_HARDWARE_ENABLING if - Selects
KVM_GENERIC_PRE_FAULT_MEMORY if - Selects
KVM_WERROR if && WERROR - Selects
KVM_GUEST_MEMFD if &&
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.
- Depends on
&& X86_LOCAL_APIC
CONFIG_KVM_WERROR Compile KVM with -Werror
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)
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.
- Depends on
&& (KVM_SW_PROTECTED_VM || KVM_INTEL_TDX || KVM_AMD_SEV) - Selects
KVM_VM_MEMORY_ATTRIBUTES if && (KVM_SW_PROTECTED_VM || KVM_INTEL_TDX || KVM_AMD_SEV)
CONFIG_KVM_SW_PROTECTED_VM Enable support for KVM software-protected VMs
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.
- Depends on
&& && IA32_FEAT_CTL - Selects
X86_FRED if && && IA32_FEAT_CTL &&
If KVM_INTEL
CONFIG_KVM_INTEL_PROVE_VE Check that guests do not receive #VE exceptions
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
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
Provides support for launching Intel Trust Domain Extensions (TDX) confidential VMs on Intel processors.
If unsure, say N.
- Depends on
&& INTEL_TDX_HOST - Selects
HAVE_KVM_ARCH_GMEM_POPULATE if && INTEL_TDX_HOST
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.
- Depends on
&& && (CPU_SUP_AMD || CPU_SUP_HYGON)
CONFIG_KVM_AMD_SEV AMD Secure Encrypted Virtualization (SEV) support
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.
- Depends on
&& KVM_AMD && && CRYPTO_DEV_SP_PSP && (KVM_AMD!=y || CRYPTO_DEV_CCP_DD!=m) - Selects
ARCH_HAS_CC_PLATFORM if && KVM_AMD && && CRYPTO_DEV_SP_PSP && (KVM_AMD!=y || CRYPTO_DEV_CCP_DD!=m) - Selects
HAVE_KVM_ARCH_GMEM_CONVERT if && KVM_AMD && && CRYPTO_DEV_SP_PSP && (KVM_AMD!=y || CRYPTO_DEV_CCP_DD!=m) - Selects
HAVE_KVM_ARCH_GMEM_RECLAIM if && KVM_AMD && && CRYPTO_DEV_SP_PSP && (KVM_AMD!=y || CRYPTO_DEV_CCP_DD!=m) - Selects
HAVE_KVM_ARCH_GMEM_INVALIDATE if && KVM_AMD && && CRYPTO_DEV_SP_PSP && (KVM_AMD!=y || CRYPTO_DEV_CCP_DD!=m) - Selects
HAVE_KVM_ARCH_GMEM_POPULATE if && KVM_AMD && && CRYPTO_DEV_SP_PSP && (KVM_AMD!=y || CRYPTO_DEV_CCP_DD!=m)
CONFIG_KVM_IOAPIC I/O APIC, PIC, and PIT emulation
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
CONFIG_KVM_SMM System Management Mode emulation
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
CONFIG_KVM_HYPERV Support for Microsoft Hyper-V emulation
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
CONFIG_KVM_XEN Support for Xen hypercall interface
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
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".
- Depends on
&& DEBUG_KERNEL && KVM_X86 && EXPERT
CONFIG_KVM_EXTERNAL_WRITE_TRACKING
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.