xref: /openbmc/linux/arch/x86/kvm/Kconfig (revision baa7eb025ab14f3cba2e35c0a8648f9c9f01d24f)
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	# for device assignment:
24	depends on PCI
25	select PREEMPT_NOTIFIERS
26	select MMU_NOTIFIER
27	select ANON_INODES
28	select HAVE_KVM_IRQCHIP
29	select HAVE_KVM_EVENTFD
30	select KVM_APIC_ARCHITECTURE
31	select USER_RETURN_NOTIFIER
32	select KVM_MMIO
33	---help---
34	  Support hosting fully virtualized guest machines using hardware
35	  virtualization extensions.  You will need a fairly recent
36	  processor equipped with virtualization extensions. You will also
37	  need to select one or more of the processor modules below.
38
39	  This module provides access to the hardware capabilities through
40	  a character device node named /dev/kvm.
41
42	  To compile this as a module, choose M here: the module
43	  will be called kvm.
44
45	  If unsure, say N.
46
47config KVM_INTEL
48	tristate "KVM for Intel processors support"
49	depends on KVM
50	---help---
51	  Provides support for KVM on Intel processors equipped with the VT
52	  extensions.
53
54	  To compile this as a module, choose M here: the module
55	  will be called kvm-intel.
56
57config KVM_AMD
58	tristate "KVM for AMD processors support"
59	depends on KVM
60	---help---
61	  Provides support for KVM on AMD processors equipped with the AMD-V
62	  (SVM) extensions.
63
64	  To compile this as a module, choose M here: the module
65	  will be called kvm-amd.
66
67config KVM_MMU_AUDIT
68	bool "Audit KVM MMU"
69	depends on KVM && TRACEPOINTS
70	---help---
71	 This option adds a R/W kVM module parameter 'mmu_audit', which allows
72	 audit  KVM MMU at runtime.
73
74# OK, it's a little counter-intuitive to do this, but it puts it neatly under
75# the virtualization menu.
76source drivers/vhost/Kconfig
77source drivers/lguest/Kconfig
78source drivers/virtio/Kconfig
79
80endif # VIRTUALIZATION
81