xref: /linux/arch/x86/kvm/Kconfig (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
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 TASKSTATS/TASK_DELAY_ACCT:
25	depends on NET
26	select PREEMPT_NOTIFIERS
27	select MMU_NOTIFIER
28	select ANON_INODES
29	select HAVE_KVM_IRQCHIP
30	select HAVE_KVM_IRQFD
31	select HAVE_KVM_IRQ_ROUTING
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	select KVM_GENERIC_DIRTYLOG_READ_PROTECT
43	select KVM_VFIO
44	select SRCU
45	---help---
46	  Support hosting fully virtualized guest machines using hardware
47	  virtualization extensions.  You will need a fairly recent
48	  processor equipped with virtualization extensions. You will also
49	  need to select one or more of the processor modules below.
50
51	  This module provides access to the hardware capabilities through
52	  a character device node named /dev/kvm.
53
54	  To compile this as a module, choose M here: the module
55	  will be called kvm.
56
57	  If unsure, say N.
58
59config KVM_INTEL
60	tristate "KVM for Intel processors support"
61	depends on KVM
62	# for perf_guest_get_msrs():
63	depends on CPU_SUP_INTEL
64	---help---
65	  Provides support for KVM on Intel processors equipped with the VT
66	  extensions.
67
68	  To compile this as a module, choose M here: the module
69	  will be called kvm-intel.
70
71config KVM_AMD
72	tristate "KVM for AMD processors support"
73	depends on KVM
74	---help---
75	  Provides support for KVM on AMD processors equipped with the AMD-V
76	  (SVM) extensions.
77
78	  To compile this as a module, choose M here: the module
79	  will be called kvm-amd.
80
81config KVM_MMU_AUDIT
82	bool "Audit KVM MMU"
83	depends on KVM && TRACEPOINTS
84	---help---
85	 This option adds a R/W kVM module parameter 'mmu_audit', which allows
86	 auditing of KVM MMU events at runtime.
87
88config KVM_DEVICE_ASSIGNMENT
89	bool "KVM legacy PCI device assignment support (DEPRECATED)"
90	depends on KVM && PCI && IOMMU_API
91	default n
92	---help---
93	  Provide support for legacy PCI device assignment through KVM.  The
94	  kernel now also supports a full featured userspace device driver
95	  framework through VFIO, which supersedes this support and provides
96	  better security.
97
98	  If unsure, say N.
99
100# OK, it's a little counter-intuitive to do this, but it puts it neatly under
101# the virtualization menu.
102source drivers/vhost/Kconfig
103source drivers/lguest/Kconfig
104
105endif # VIRTUALIZATION
106