Kconfig 2.8 KB
Newer Older
A
Avi Kivity 已提交
1 2 3
#
# KVM configuration
#
4

5
source "virt/kvm/Kconfig"
A
Avi Kivity 已提交
6

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

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

if VIRTUALIZATION
19

A
Avi Kivity 已提交
20 21
config KVM
	tristate "Kernel-based Virtual Machine (KVM) support"
A
Avi Kivity 已提交
22
	depends on HAVE_KVM
L
Liu, Jinsong 已提交
23
	depends on HIGH_RES_TIMERS
24 25
	# for TASKSTATS/TASK_DELAY_ACCT:
	depends on NET
26
	select PREEMPT_NOTIFIERS
A
Andrea Arcangeli 已提交
27
	select MMU_NOTIFIER
A
Avi Kivity 已提交
28
	select ANON_INODES
29
	select HAVE_KVM_IRQCHIP
30
	select HAVE_KVM_IRQFD
31
	select HAVE_KVM_IRQ_ROUTING
G
Gregory Haskins 已提交
32
	select HAVE_KVM_EVENTFD
33
	select KVM_APIC_ARCHITECTURE
34
	select KVM_ASYNC_PF
A
Avi Kivity 已提交
35
	select USER_RETURN_NOTIFIER
A
Avi Kivity 已提交
36
	select KVM_MMIO
37
	select TASKSTATS
G
Glauber Costa 已提交
38
	select TASK_DELAY_ACCT
39
	select PERF_EVENTS
40
	select HAVE_KVM_MSI
41
	select HAVE_KVM_CPU_RELAX_INTERCEPT
A
Alex Williamson 已提交
42
	select KVM_VFIO
A
Avi Kivity 已提交
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
	---help---
	  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.

config KVM_INTEL
	tristate "KVM for Intel processors support"
	depends on KVM
60 61
	# for perf_guest_get_msrs():
	depends on CPU_SUP_INTEL
A
Avi Kivity 已提交
62 63 64 65
	---help---
	  Provides support for KVM on Intel processors equipped with the VT
	  extensions.

66 67 68
	  To compile this as a module, choose M here: the module
	  will be called kvm-intel.

A
Avi Kivity 已提交
69 70 71 72 73 74
config KVM_AMD
	tristate "KVM for AMD processors support"
	depends on KVM
	---help---
	  Provides support for KVM on AMD processors equipped with the AMD-V
	  (SVM) extensions.
75

76 77 78
	  To compile this as a module, choose M here: the module
	  will be called kvm-amd.

79 80 81 82 83
config KVM_MMU_AUDIT
	bool "Audit KVM MMU"
	depends on KVM && TRACEPOINTS
	---help---
	 This option adds a R/W kVM module parameter 'mmu_audit', which allows
84
	 auditing of KVM MMU events at runtime.
85

86 87 88 89 90 91 92 93 94 95 96
config KVM_DEVICE_ASSIGNMENT
	bool "KVM legacy PCI device assignment support"
	depends on KVM && PCI && IOMMU_API
	default y
	---help---
	  Provide support for legacy PCI device assignment through KVM.  The
	  kernel now also supports a full featured userspace device driver
	  framework through VFIO, which supersedes much of this support.

	  If unsure, say Y.

97 98
# OK, it's a little counter-intuitive to do this, but it puts it neatly under
# the virtualization menu.
99
source drivers/vhost/Kconfig
100 101
source drivers/lguest/Kconfig

102
endif # VIRTUALIZATION