Kconfig 3.03 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
Avi Kivity's avatar
Avi Kivity committed
2 3 4
#
# KVM configuration
#
5

6
source "virt/kvm/Kconfig"
Avi Kivity's avatar
Avi Kivity committed
7

8 9
menuconfig VIRTUALIZATION
	bool "Virtualization"
10
	depends on HAVE_KVM || X86
11
	default y
12
	help
13 14
	  Say Y here to get to see options for using your Linux host to run other
	  operating systems inside virtual machines (guests).
15 16 17
	  This option alone does not add any kernel code.

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

if VIRTUALIZATION
20

Avi Kivity's avatar
Avi Kivity committed
21 22
config KVM
	tristate "Kernel-based Virtual Machine (KVM) support"
Avi Kivity's avatar
Avi Kivity committed
23
	depends on HAVE_KVM
Liu, Jinsong's avatar
Liu, Jinsong committed
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
Andrea Arcangeli's avatar
Andrea Arcangeli committed
29
	select MMU_NOTIFIER
30
	select HAVE_KVM_IRQCHIP
31
	select HAVE_KVM_IRQFD
Feng Wu's avatar
Feng Wu committed
32 33
	select IRQ_BYPASS_MANAGER
	select HAVE_KVM_IRQ_BYPASS
34
	select HAVE_KVM_IRQ_ROUTING
Gregory Haskins's avatar
Gregory Haskins committed
35
	select HAVE_KVM_EVENTFD
36
	select KVM_ASYNC_PF
37
	select USER_RETURN_NOTIFIER
Avi Kivity's avatar
Avi Kivity committed
38
	select KVM_MMIO
39
	select TASKSTATS
Glauber Costa's avatar
Glauber Costa committed
40
	select TASK_DELAY_ACCT
41
	select PERF_EVENTS
42
	select HAVE_KVM_MSI
43
	select HAVE_KVM_CPU_RELAX_INTERCEPT
44
	select HAVE_KVM_NO_POLL
45
	select KVM_GENERIC_DIRTYLOG_READ_PROTECT
Alex Williamson's avatar
Alex Williamson committed
46
	select KVM_VFIO
47
	select SRCU
48
	help
Avi Kivity's avatar
Avi Kivity committed
49 50 51 52 53 54 55 56 57 58 59 60 61
	  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.

Paolo Bonzini's avatar
Paolo Bonzini committed
62 63 64 65 66 67 68 69 70
config KVM_WERROR
	bool "Compile KVM with -Werror"
	# KASAN may cause the build to fail due to larger frames
	default y if X86_64 && !KASAN
	# We use the dependency on !COMPILE_TEST to not be enabled
	# blindly in allmodconfig or allyesconfig configurations
	depends on (X86_64 && !KASAN) || !COMPILE_TEST
	depends on EXPERT
	help
71
	  Add -Werror to the build flags for KVM.
Paolo Bonzini's avatar
Paolo Bonzini committed
72 73 74

	  If in doubt, say "N".

Avi Kivity's avatar
Avi Kivity committed
75
config KVM_INTEL
76 77
	tristate "KVM for Intel (and compatible) processors support"
	depends on KVM && IA32_FEAT_CTL
78
	help
79 80
	  Provides support for KVM on processors equipped with Intel's VT
	  extensions, a.k.a. Virtual Machine Extensions (VMX).
Avi Kivity's avatar
Avi Kivity committed
81

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

Avi Kivity's avatar
Avi Kivity committed
85 86 87
config KVM_AMD
	tristate "KVM for AMD processors support"
	depends on KVM
88
	help
Avi Kivity's avatar
Avi Kivity committed
89 90
	  Provides support for KVM on AMD processors equipped with the AMD-V
	  (SVM) extensions.
91

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

95 96 97 98
config KVM_AMD_SEV
	def_bool y
	bool "AMD Secure Encrypted Virtualization (SEV) support"
	depends on KVM_AMD && X86_64
99
	depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m)
100
	help
101 102
	Provides support for launching Encrypted VMs on AMD processors.

103 104 105
config KVM_MMU_AUDIT
	bool "Audit KVM MMU"
	depends on KVM && TRACEPOINTS
106
	help
107
	 This option adds a R/W kVM module parameter 'mmu_audit', which allows
108
	 auditing of KVM MMU events at runtime.
109

110
endif # VIRTUALIZATION