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