1 # SPDX-License-Identifier: GPL-2.0
6 source "virt/kvm/Kconfig"
8 menuconfig VIRTUALIZATION
10 depends on HAVE_KVM || X86
13 Say Y here to get to see options for using your Linux host to run other
14 operating systems inside virtual machines (guests).
15 This option alone does not add any kernel code.
17 If you say N, all options in this submenu will be skipped and disabled.
22 tristate "Kernel-based Virtual Machine (KVM) support"
24 depends on HIGH_RES_TIMERS
25 # for TASKSTATS/TASK_DELAY_ACCT:
26 depends on NET && MULTIUSER
27 depends on X86_LOCAL_APIC
28 select PREEMPT_NOTIFIERS
30 select HAVE_KVM_IRQCHIP
32 select IRQ_BYPASS_MANAGER
33 select HAVE_KVM_IRQ_BYPASS
34 select HAVE_KVM_IRQ_ROUTING
35 select HAVE_KVM_EVENTFD
37 select USER_RETURN_NOTIFIER
40 select TASK_DELAY_ACCT
43 select HAVE_KVM_CPU_RELAX_INTERCEPT
44 select HAVE_KVM_NO_POLL
45 select KVM_XFER_TO_GUEST_WORK
46 select KVM_GENERIC_DIRTYLOG_READ_PROTECT
50 Support hosting fully virtualized guest machines using hardware
51 virtualization extensions. You will need a fairly recent
52 processor equipped with virtualization extensions. You will also
53 need to select one or more of the processor modules below.
55 This module provides access to the hardware capabilities through
56 a character device node named /dev/kvm.
58 To compile this as a module, choose M here: the module
64 bool "Compile KVM with -Werror"
65 # KASAN may cause the build to fail due to larger frames
66 default y if X86_64 && !KASAN
67 # We use the dependency on !COMPILE_TEST to not be enabled
68 # blindly in allmodconfig or allyesconfig configurations
69 depends on (X86_64 && !KASAN) || !COMPILE_TEST
72 Add -Werror to the build flags for KVM.
77 tristate "KVM for Intel (and compatible) processors support"
78 depends on KVM && IA32_FEAT_CTL
80 Provides support for KVM on processors equipped with Intel's VT
81 extensions, a.k.a. Virtual Machine Extensions (VMX).
83 To compile this as a module, choose M here: the module
84 will be called kvm-intel.
87 tristate "KVM for AMD processors support"
90 Provides support for KVM on AMD processors equipped with the AMD-V
93 To compile this as a module, choose M here: the module
94 will be called kvm-amd.
98 bool "AMD Secure Encrypted Virtualization (SEV) support"
99 depends on KVM_AMD && X86_64
100 depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m)
102 Provides support for launching Encrypted VMs on AMD processors.
106 depends on KVM && TRACEPOINTS
108 This option adds a R/W kVM module parameter 'mmu_audit', which allows
109 auditing of KVM MMU events at runtime.
111 endif # VIRTUALIZATION