xref: /linux/arch/x86/kvm/Kconfig (revision 0d456bad36d42d16022be045c8a53ddbb59ee478)
1#
2# KVM configuration
3#
4
5source "virt/kvm/Kconfig"
6
7menuconfig VIRTUALIZATION
8	bool "Virtualization"
9	depends on HAVE_KVM || X86
10	default y
11	---help---
12	  Say Y here to get to see options for using your Linux host to run other
13	  operating systems inside virtual machines (guests).
14	  This option alone does not add any kernel code.
15
16	  If you say N, all options in this submenu will be skipped and disabled.
17
18if VIRTUALIZATION
19
20config KVM
21	tristate "Kernel-based Virtual Machine (KVM) support"
22	depends on HAVE_KVM
23	depends on HIGH_RES_TIMERS
24	# for device assignment:
25	depends on PCI
26	# for TASKSTATS/TASK_DELAY_ACCT:
27	depends on NET
28	select PREEMPT_NOTIFIERS
29	select MMU_NOTIFIER
30	select ANON_INODES
31	select HAVE_KVM_IRQCHIP
32	select HAVE_KVM_EVENTFD
33	select KVM_APIC_ARCHITECTURE
34	select KVM_ASYNC_PF
35	select USER_RETURN_NOTIFIER
36	select KVM_MMIO
37	select TASKSTATS
38	select TASK_DELAY_ACCT
39	select PERF_EVENTS
40	select HAVE_KVM_MSI
41	select HAVE_KVM_CPU_RELAX_INTERCEPT
42	---help---
43	  Support hosting fully virtualized guest machines using hardware
44	  virtualization extensions.  You will need a fairly recent
45	  processor equipped with virtualization extensions. You will also
46	  need to select one or more of the processor modules below.
47
48	  This module provides access to the hardware capabilities through
49	  a character device node named /dev/kvm.
50
51	  To compile this as a module, choose M here: the module
52	  will be called kvm.
53
54	  If unsure, say N.
55
56config KVM_INTEL
57	tristate "KVM for Intel processors support"
58	depends on KVM
59	# for perf_guest_get_msrs():
60	depends on CPU_SUP_INTEL
61	---help---
62	  Provides support for KVM on Intel processors equipped with the VT
63	  extensions.
64
65	  To compile this as a module, choose M here: the module
66	  will be called kvm-intel.
67
68config KVM_AMD
69	tristate "KVM for AMD processors support"
70	depends on KVM
71	---help---
72	  Provides support for KVM on AMD processors equipped with the AMD-V
73	  (SVM) extensions.
74
75	  To compile this as a module, choose M here: the module
76	  will be called kvm-amd.
77
78config KVM_MMU_AUDIT
79	bool "Audit KVM MMU"
80	depends on KVM && TRACEPOINTS
81	---help---
82	 This option adds a R/W kVM module parameter 'mmu_audit', which allows
83	 audit  KVM MMU at runtime.
84
85# OK, it's a little counter-intuitive to do this, but it puts it neatly under
86# the virtualization menu.
87source drivers/vhost/Kconfig
88source drivers/lguest/Kconfig
89
90endif # VIRTUALIZATION
91