blob: b17447ce887314f486772c0ebde81c46ec655bd5 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Sanjay Lal2235a542012-11-21 18:33:59 -08002#
3# KVM configuration
4#
5source "virt/kvm/Kconfig"
6
7menuconfig VIRTUALIZATION
8 bool "Virtualization"
Sanjay Lal2235a542012-11-21 18:33:59 -08009 ---help---
10 Say Y here to get to see options for using your Linux host to run
11 other operating systems inside virtual machines (guests).
12 This option alone does not add any kernel code.
13
14 If you say N, all options in this submenu will be skipped and disabled.
15
16if VIRTUALIZATION
17
18config KVM
19 tristate "Kernel-based Virtual Machine (KVM) support"
20 depends on HAVE_KVM
James Hogan90e93112016-06-23 17:34:39 +010021 select EXPORT_UASM
Sanjay Lal2235a542012-11-21 18:33:59 -080022 select PREEMPT_NOTIFIERS
23 select ANON_INODES
James Hogane88643b2016-12-06 14:50:52 +000024 select KVM_GENERIC_DIRTYLOG_READ_PROTECT
Sanjay Lal2235a542012-11-21 18:33:59 -080025 select KVM_MMIO
James Hogan411740f2016-12-13 16:32:39 +000026 select MMU_NOTIFIER
Pranith Kumar83fe27e2014-12-05 11:24:45 -050027 select SRCU
Sanjay Lal2235a542012-11-21 18:33:59 -080028 ---help---
29 Support for hosting Guest kernels.
James Hogan56f7a442017-03-14 10:15:32 +000030
31choice
32 prompt "Virtualization mode"
33 depends on KVM
34 default KVM_MIPS_TE
35
36config KVM_MIPS_TE
37 bool "Trap & Emulate"
38 ---help---
39 Use trap and emulate to virtualize 32-bit guests in user mode. This
40 does not require any special hardware Virtualization support beyond
41 standard MIPS32/64 r2 or later, but it does require the guest kernel
42 to be configured with CONFIG_KVM_GUEST=y so that it resides in the
43 user address segment.
44
45config KVM_MIPS_VZ
46 bool "MIPS Virtualization (VZ) ASE"
47 ---help---
48 Use the MIPS Virtualization (VZ) ASE to virtualize guests. This
49 supports running unmodified guest kernels (with CONFIG_KVM_GUEST=n),
50 but requires hardware support.
51
52endchoice
Sanjay Lal2235a542012-11-21 18:33:59 -080053
54config KVM_MIPS_DYN_TRANS
55 bool "KVM/MIPS: Dynamic binary translation to reduce traps"
James Hogan56f7a442017-03-14 10:15:32 +000056 depends on KVM_MIPS_TE
57 default y
Sanjay Lal2235a542012-11-21 18:33:59 -080058 ---help---
59 When running in Trap & Emulate mode patch privileged
60 instructions to reduce the number of traps.
61
62 If unsure, say Y.
63
64config KVM_MIPS_DEBUG_COP0_COUNTERS
65 bool "Maintain counters for COP0 accesses"
66 depends on KVM
67 ---help---
68 Maintain statistics for Guest COP0 accesses.
69 A histogram of COP0 accesses is printed when the VM is
70 shutdown.
71
72 If unsure, say N.
73
74source drivers/vhost/Kconfig
75
76endif # VIRTUALIZATION