xref: /linux/arch/x86/kvm/Kconfig (revision af873fcecef567abf8a3468b06dd4e4aab46da6d)
1# SPDX-License-Identifier: GPL-2.0
2#
3# KVM configuration
4#
5
6source "virt/kvm/Kconfig"
7
8menuconfig VIRTUALIZATION
9	bool "Virtualization"
10	depends on HAVE_KVM || X86
11	default y
12	---help---
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.
16
17	  If you say N, all options in this submenu will be skipped and disabled.
18
19if VIRTUALIZATION
20
21config KVM
22	tristate "Kernel-based Virtual Machine (KVM) support"
23	depends on HAVE_KVM
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
29	select MMU_NOTIFIER
30	select HAVE_KVM_IRQCHIP
31	select HAVE_KVM_IRQFD
32	select IRQ_BYPASS_MANAGER
33	select HAVE_KVM_IRQ_BYPASS
34	select HAVE_KVM_IRQ_ROUTING
35	select HAVE_KVM_EVENTFD
36	select KVM_ASYNC_PF
37	select USER_RETURN_NOTIFIER
38	select KVM_MMIO
39	select TASKSTATS
40	select TASK_DELAY_ACCT
41	select PERF_EVENTS
42	select HAVE_KVM_MSI
43	select HAVE_KVM_CPU_RELAX_INTERCEPT
44	select KVM_GENERIC_DIRTYLOG_READ_PROTECT
45	select KVM_VFIO
46	select SRCU
47	---help---
48	  Support hosting fully virtualized guest machines using hardware
49	  virtualization extensions.  You will need a fairly recent
50	  processor equipped with virtualization extensions. You will also
51	  need to select one or more of the processor modules below.
52
53	  This module provides access to the hardware capabilities through
54	  a character device node named /dev/kvm.
55
56	  To compile this as a module, choose M here: the module
57	  will be called kvm.
58
59	  If unsure, say N.
60
61config KVM_INTEL
62	tristate "KVM for Intel processors support"
63	depends on KVM
64	# for perf_guest_get_msrs():
65	depends on CPU_SUP_INTEL
66	---help---
67	  Provides support for KVM on Intel processors equipped with the VT
68	  extensions.
69
70	  To compile this as a module, choose M here: the module
71	  will be called kvm-intel.
72
73config KVM_AMD
74	tristate "KVM for AMD processors support"
75	depends on KVM
76	---help---
77	  Provides support for KVM on AMD processors equipped with the AMD-V
78	  (SVM) extensions.
79
80	  To compile this as a module, choose M here: the module
81	  will be called kvm-amd.
82
83config KVM_AMD_SEV
84	def_bool y
85	bool "AMD Secure Encrypted Virtualization (SEV) support"
86	depends on KVM_AMD && X86_64
87	depends on CRYPTO_DEV_SP_PSP && !(KVM_AMD=y && CRYPTO_DEV_CCP_DD=m)
88	---help---
89	Provides support for launching Encrypted VMs on AMD processors.
90
91config KVM_MMU_AUDIT
92	bool "Audit KVM MMU"
93	depends on KVM && TRACEPOINTS
94	---help---
95	 This option adds a R/W kVM module parameter 'mmu_audit', which allows
96	 auditing of KVM MMU events at runtime.
97
98# OK, it's a little counter-intuitive to do this, but it puts it neatly under
99# the virtualization menu.
100source "drivers/vhost/Kconfig"
101
102endif # VIRTUALIZATION
103