1 # SPDX-License-Identifier: GPL-2.0
6 source "virt/kvm/Kconfig"
8 menuconfig VIRTUALIZATION
11 Say Y here to get to see options for using your Linux host to run
12 other operating systems inside virtual machines (guests).
13 This option alone does not add any kernel code.
15 If you say N, all options in this submenu will be skipped and
22 select PREEMPT_NOTIFIERS
23 select HAVE_KVM_EVENTFD
24 select HAVE_KVM_VCPU_ASYNC_IOCTL
27 select IRQ_BYPASS_MANAGER
28 select HAVE_KVM_IRQ_BYPASS
31 config KVM_BOOK3S_HANDLER
34 config KVM_BOOK3S_32_HANDLER
36 select KVM_BOOK3S_HANDLER
39 config KVM_BOOK3S_64_HANDLER
41 select KVM_BOOK3S_HANDLER
43 config KVM_BOOK3S_PR_POSSIBLE
48 config KVM_BOOK3S_HV_POSSIBLE
52 tristate "KVM support for PowerPC book3s_32 processors"
53 depends on PPC_BOOK3S_32 && !SMP && !PTE_64BIT
55 select KVM_BOOK3S_32_HANDLER
56 select KVM_BOOK3S_PR_POSSIBLE
59 Support running unmodified book3s_32 guest kernels
60 in virtual machines on book3s_32 host processors.
62 This module provides access to the hardware capabilities through
63 a character device node named /dev/kvm.
68 tristate "KVM support for PowerPC book3s_64 processors"
69 depends on PPC_BOOK3S_64
70 select KVM_BOOK3S_64_HANDLER
72 select KVM_BOOK3S_PR_POSSIBLE if !KVM_BOOK3S_HV_POSSIBLE
73 select PPC_64S_HASH_MMU
74 select SPAPR_TCE_IOMMU if IOMMU_SUPPORT && (PPC_PSERIES || PPC_POWERNV)
76 Support running unmodified book3s_64 and book3s_32 guest kernels
77 in virtual machines on book3s_64 host processors.
79 This module provides access to the hardware capabilities through
80 a character device node named /dev/kvm.
84 config KVM_BOOK3S_64_HV
85 tristate "KVM for POWER7 and later using hypervisor mode in host"
86 depends on KVM_BOOK3S_64 && PPC_POWERNV
87 select KVM_BOOK3S_HV_POSSIBLE
91 Support running unmodified book3s_64 guest kernels in
92 virtual machines on POWER7 and newer processors that have
93 hypervisor mode available to the host.
95 If you say Y here, KVM will use the hardware virtualization
96 facilities of POWER7 (and later) processors, meaning that
97 guest operating systems will run at full hardware speed
98 using supervisor and user modes. However, this also means
99 that KVM is not usable under PowerVM (pHyp), is only usable
100 on POWER7 or later processors, and cannot emulate a
101 different processor from the host processor.
105 config KVM_BOOK3S_64_PR
106 tristate "KVM support without using hypervisor mode in host"
107 depends on KVM_BOOK3S_64
108 select KVM_BOOK3S_PR_POSSIBLE
110 Support running guest kernels in virtual machines on processors
111 without using hypervisor mode in the host, by running the
112 guest in user mode (problem state) and emulating all
113 privileged instructions and registers.
115 This is not as fast as using hypervisor mode, but works on
116 machines where hypervisor mode is not available or not usable,
117 and can emulate processors that are different from the host
118 processor, including emulating 32-bit processors on a 64-bit
121 config KVM_BOOK3S_HV_EXIT_TIMING
122 bool "Detailed timing for hypervisor real-mode code"
123 depends on KVM_BOOK3S_HV_POSSIBLE && DEBUG_FS
125 Calculate time taken for each vcpu in the real-mode guest entry,
126 exit, and interrupt handling code, plus time spent in the guest
127 and in nap mode due to idle (cede) while other threads are still
128 in the guest. The total, minimum and maximum times in nanoseconds
129 together with the number of executions are reported in debugfs in
130 kvm/vm#/vcpu#/timings. The overhead is of the order of 30 - 40
131 ns per exit on POWER8.
135 config KVM_BOOK3S_HV_NESTED_PMU_WORKAROUND
136 bool "Nested L0 host workaround for L1 KVM host PMU handling bug" if EXPERT
137 depends on KVM_BOOK3S_HV_POSSIBLE
140 Old nested HV capable Linux guests have a bug where they don't
141 reflect the PMU in-use status of their L2 guest to the L0 host
142 while the L2 PMU registers are live. This can result in loss
143 of L2 PMU register state, causing perf to not work correctly in
146 Selecting this option for the L0 host implements a workaround for
147 those buggy L1s which saves the L2 state, at the cost of performance
148 in all nested-capable guest entry/exit.
153 config KVM_EXIT_TIMING
154 bool "Detailed exit timing"
155 depends on KVM_E500V2 || KVM_E500MC
157 Calculate elapsed time for every exit/enter cycle. A per-vcpu
158 report is available in debugfs kvm/vm#_vcpu#_timing.
159 The overhead is relatively small, however it is not recommended for
160 production environments.
165 bool "KVM support for PowerPC E500v2 processors"
166 depends on E500 && !PPC_E500MC
171 Support running unmodified E500 guest kernels in virtual machines on
172 E500v2 host processors.
174 This module provides access to the hardware capabilities through
175 a character device node named /dev/kvm.
180 bool "KVM support for PowerPC E500MC/E5500/E6500 processors"
181 depends on PPC_E500MC
187 Support running unmodified E500MC/E5500/E6500 guest kernels in
188 virtual machines on E500MC/E5500/E6500 host processors.
190 This module provides access to the hardware capabilities through
191 a character device node named /dev/kvm.
196 bool "KVM in-kernel MPIC emulation"
197 depends on KVM && E500
198 select HAVE_KVM_IRQCHIP
199 select HAVE_KVM_IRQFD
200 select HAVE_KVM_IRQ_ROUTING
203 Enable support for emulating MPIC devices inside the
204 host kernel, rather than relying on userspace to emulate.
205 Currently, support is limited to certain versions of
206 Freescale's MPIC implementation.
209 bool "KVM in-kernel XICS emulation"
210 depends on KVM_BOOK3S_64 && !KVM_MPIC
211 select HAVE_KVM_IRQCHIP
212 select HAVE_KVM_IRQFD
215 Include support for the XICS (eXternal Interrupt Controller
216 Specification) interrupt controller architecture used on
217 IBM POWER (pSeries) servers.
222 depends on KVM_XICS && PPC_XIVE_NATIVE && KVM_BOOK3S_HV_POSSIBLE
224 endif # VIRTUALIZATION