50a722dfb236d7edbaf99ab51dd65986e250dc08
[sfrench/cifs-2.6.git] / arch / mips / kvm / Kconfig
1 #
2 # KVM configuration
3 #
4 source "virt/kvm/Kconfig"
5
6 menuconfig VIRTUALIZATION
7         bool "Virtualization"
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
15 if VIRTUALIZATION
16
17 config KVM
18         tristate "Kernel-based Virtual Machine (KVM) support"
19         depends on HAVE_KVM
20         select EXPORT_UASM
21         select PREEMPT_NOTIFIERS
22         select ANON_INODES
23         select KVM_GENERIC_DIRTYLOG_READ_PROTECT
24         select KVM_MMIO
25         select MMU_NOTIFIER
26         select SRCU
27         ---help---
28           Support for hosting Guest kernels.
29
30 choice
31         prompt "Virtualization mode"
32         depends on KVM
33         default KVM_MIPS_TE
34
35 config 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
44 config 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
51 endchoice
52
53 config KVM_MIPS_DYN_TRANS
54         bool "KVM/MIPS: Dynamic binary translation to reduce traps"
55         depends on KVM_MIPS_TE
56         default y
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
63 config 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
73 source drivers/vhost/Kconfig
74
75 endif # VIRTUALIZATION