]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - arch/mips/kvm/Kconfig
treewide: surround Kconfig file paths with double quotes
[mirror_ubuntu-hirsute-kernel.git] / arch / mips / kvm / Kconfig
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
2235a54d
SL
2#
3# KVM configuration
4#
5source "virt/kvm/Kconfig"
6
7menuconfig VIRTUALIZATION
8 bool "Virtualization"
2235a54d
SL
9 ---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
90e9311a 21 select EXPORT_UASM
2235a54d
SL
22 select PREEMPT_NOTIFIERS
23 select ANON_INODES
e88643ba 24 select KVM_GENERIC_DIRTYLOG_READ_PROTECT
5cb0944c 25 select HAVE_KVM_VCPU_ASYNC_IOCTL
2235a54d 26 select KVM_MMIO
411740f5 27 select MMU_NOTIFIER
83fe27ea 28 select SRCU
2235a54d
SL
29 ---help---
30 Support for hosting Guest kernels.
56f7a440
JH
31
32choice
33 prompt "Virtualization mode"
34 depends on KVM
35 default KVM_MIPS_TE
36
37config KVM_MIPS_TE
38 bool "Trap & Emulate"
39 ---help---
40 Use trap and emulate to virtualize 32-bit guests in user mode. This
41 does not require any special hardware Virtualization support beyond
42 standard MIPS32/64 r2 or later, but it does require the guest kernel
43 to be configured with CONFIG_KVM_GUEST=y so that it resides in the
44 user address segment.
45
46config KVM_MIPS_VZ
47 bool "MIPS Virtualization (VZ) ASE"
48 ---help---
49 Use the MIPS Virtualization (VZ) ASE to virtualize guests. This
50 supports running unmodified guest kernels (with CONFIG_KVM_GUEST=n),
51 but requires hardware support.
52
53endchoice
2235a54d
SL
54
55config KVM_MIPS_DYN_TRANS
56 bool "KVM/MIPS: Dynamic binary translation to reduce traps"
56f7a440
JH
57 depends on KVM_MIPS_TE
58 default y
2235a54d
SL
59 ---help---
60 When running in Trap & Emulate mode patch privileged
61 instructions to reduce the number of traps.
62
63 If unsure, say Y.
64
65config KVM_MIPS_DEBUG_COP0_COUNTERS
66 bool "Maintain counters for COP0 accesses"
67 depends on KVM
68 ---help---
69 Maintain statistics for Guest COP0 accesses.
70 A histogram of COP0 accesses is printed when the VM is
71 shutdown.
72
73 If unsure, say N.
74
8636a1f9 75source "drivers/vhost/Kconfig"
2235a54d
SL
76
77endif # VIRTUALIZATION