xref: /openbmc/linux/arch/x86/kvm/Kconfig (revision 78c99ba1)
1#
2# KVM configuration
3#
4config HAVE_KVM
5       bool
6
7config HAVE_KVM_IRQCHIP
8       bool
9       default y
10
11menuconfig VIRTUALIZATION
12	bool "Virtualization"
13	depends on HAVE_KVM || X86
14	default y
15	---help---
16	  Say Y here to get to see options for using your Linux host to run other
17	  operating systems inside virtual machines (guests).
18	  This option alone does not add any kernel code.
19
20	  If you say N, all options in this submenu will be skipped and disabled.
21
22if VIRTUALIZATION
23
24config KVM
25	tristate "Kernel-based Virtual Machine (KVM) support"
26	depends on HAVE_KVM
27	# for device assignment:
28	depends on PCI
29	select PREEMPT_NOTIFIERS
30	select MMU_NOTIFIER
31	select ANON_INODES
32	---help---
33	  Support hosting fully virtualized guest machines using hardware
34	  virtualization extensions.  You will need a fairly recent
35	  processor equipped with virtualization extensions. You will also
36	  need to select one or more of the processor modules below.
37
38	  This module provides access to the hardware capabilities through
39	  a character device node named /dev/kvm.
40
41	  To compile this as a module, choose M here: the module
42	  will be called kvm.
43
44	  If unsure, say N.
45
46config KVM_INTEL
47	tristate "KVM for Intel processors support"
48	depends on KVM
49	---help---
50	  Provides support for KVM on Intel processors equipped with the VT
51	  extensions.
52
53	  To compile this as a module, choose M here: the module
54	  will be called kvm-intel.
55
56config KVM_AMD
57	tristate "KVM for AMD processors support"
58	depends on KVM
59	---help---
60	  Provides support for KVM on AMD processors equipped with the AMD-V
61	  (SVM) extensions.
62
63	  To compile this as a module, choose M here: the module
64	  will be called kvm-amd.
65
66config KVM_TRACE
67	bool "KVM trace support"
68	depends on KVM && SYSFS
69	select MARKERS
70	select RELAY
71	select DEBUG_FS
72	default n
73	---help---
74	  This option allows reading a trace of kvm-related events through
75	  relayfs.  Note the ABI is not considered stable and will be
76	  modified in future updates.
77
78# OK, it's a little counter-intuitive to do this, but it puts it neatly under
79# the virtualization menu.
80source drivers/lguest/Kconfig
81source drivers/virtio/Kconfig
82
83endif # VIRTUALIZATION
84