]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/mips/kvm/Kconfig
KVM: MIPS: Add VZ support to build system
[mirror_ubuntu-bionic-kernel.git] / arch / mips / kvm / Kconfig
CommitLineData
2235a54d
SL
1#
2# KVM configuration
3#
4source "virt/kvm/Kconfig"
5
6menuconfig VIRTUALIZATION
7 bool "Virtualization"
2235a54d
SL
8 ---help---
9 Say Y here to get to see options for using your Linux host to run
10 other operating systems inside virtual machines (guests).
11 This option alone does not add any kernel code.
12
13 If you say N, all options in this submenu will be skipped and disabled.
14
15if VIRTUALIZATION
16
17config KVM
18 tristate "Kernel-based Virtual Machine (KVM) support"
19 depends on HAVE_KVM
90e9311a 20 select EXPORT_UASM
2235a54d
SL
21 select PREEMPT_NOTIFIERS
22 select ANON_INODES
e88643ba 23 select KVM_GENERIC_DIRTYLOG_READ_PROTECT
2235a54d 24 select KVM_MMIO
411740f5 25 select MMU_NOTIFIER
83fe27ea 26 select SRCU
2235a54d
SL
27 ---help---
28 Support for hosting Guest kernels.
56f7a440
JH
29
30choice
31 prompt "Virtualization mode"
32 depends on KVM
33 default KVM_MIPS_TE
34
35config KVM_MIPS_TE
36 bool "Trap & Emulate"
37 ---help---
38 Use trap and emulate to virtualize 32-bit guests in user mode. This
39 does not require any special hardware Virtualization support beyond
40 standard MIPS32/64 r2 or later, but it does require the guest kernel
41 to be configured with CONFIG_KVM_GUEST=y so that it resides in the
42 user address segment.
43
44config KVM_MIPS_VZ
45 bool "MIPS Virtualization (VZ) ASE"
46 ---help---
47 Use the MIPS Virtualization (VZ) ASE to virtualize guests. This
48 supports running unmodified guest kernels (with CONFIG_KVM_GUEST=n),
49 but requires hardware support.
50
51endchoice
2235a54d
SL
52
53config KVM_MIPS_DYN_TRANS
54 bool "KVM/MIPS: Dynamic binary translation to reduce traps"
56f7a440
JH
55 depends on KVM_MIPS_TE
56 default y
2235a54d
SL
57 ---help---
58 When running in Trap & Emulate mode patch privileged
59 instructions to reduce the number of traps.
60
61 If unsure, say Y.
62
63config KVM_MIPS_DEBUG_COP0_COUNTERS
64 bool "Maintain counters for COP0 accesses"
65 depends on KVM
66 ---help---
67 Maintain statistics for Guest COP0 accesses.
68 A histogram of COP0 accesses is printed when the VM is
69 shutdown.
70
71 If unsure, say N.
72
73source drivers/vhost/Kconfig
74
75endif # VIRTUALIZATION