xref: /linux/arch/mips/kvm/Kconfig (revision 5cb0944c0c66004c0d9006a7f0fba5782ae38f69)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
22235a54dSSanjay Lal#
32235a54dSSanjay Lal# KVM configuration
42235a54dSSanjay Lal#
52235a54dSSanjay Lalsource "virt/kvm/Kconfig"
62235a54dSSanjay Lal
72235a54dSSanjay Lalmenuconfig VIRTUALIZATION
82235a54dSSanjay Lal	bool "Virtualization"
92235a54dSSanjay Lal	---help---
102235a54dSSanjay Lal	  Say Y here to get to see options for using your Linux host to run
112235a54dSSanjay Lal	  other operating systems inside virtual machines (guests).
122235a54dSSanjay Lal	  This option alone does not add any kernel code.
132235a54dSSanjay Lal
142235a54dSSanjay Lal	  If you say N, all options in this submenu will be skipped and disabled.
152235a54dSSanjay Lal
162235a54dSSanjay Lalif VIRTUALIZATION
172235a54dSSanjay Lal
182235a54dSSanjay Lalconfig KVM
192235a54dSSanjay Lal	tristate "Kernel-based Virtual Machine (KVM) support"
202235a54dSSanjay Lal	depends on HAVE_KVM
2190e9311aSJames Hogan	select EXPORT_UASM
222235a54dSSanjay Lal	select PREEMPT_NOTIFIERS
232235a54dSSanjay Lal	select ANON_INODES
24e88643baSJames Hogan	select KVM_GENERIC_DIRTYLOG_READ_PROTECT
25*5cb0944cSPaolo Bonzini	select HAVE_KVM_VCPU_ASYNC_IOCTL
262235a54dSSanjay Lal	select KVM_MMIO
27411740f5SJames Hogan	select MMU_NOTIFIER
2883fe27eaSPranith Kumar	select SRCU
292235a54dSSanjay Lal	---help---
302235a54dSSanjay Lal	  Support for hosting Guest kernels.
3156f7a440SJames Hogan
3256f7a440SJames Hoganchoice
3356f7a440SJames Hogan	prompt "Virtualization mode"
3456f7a440SJames Hogan	depends on KVM
3556f7a440SJames Hogan	default KVM_MIPS_TE
3656f7a440SJames Hogan
3756f7a440SJames Hoganconfig KVM_MIPS_TE
3856f7a440SJames Hogan	bool "Trap & Emulate"
3956f7a440SJames Hogan	---help---
4056f7a440SJames Hogan	  Use trap and emulate to virtualize 32-bit guests in user mode. This
4156f7a440SJames Hogan	  does not require any special hardware Virtualization support beyond
4256f7a440SJames Hogan	  standard MIPS32/64 r2 or later, but it does require the guest kernel
4356f7a440SJames Hogan	  to be configured with CONFIG_KVM_GUEST=y so that it resides in the
4456f7a440SJames Hogan	  user address segment.
4556f7a440SJames Hogan
4656f7a440SJames Hoganconfig KVM_MIPS_VZ
4756f7a440SJames Hogan	bool "MIPS Virtualization (VZ) ASE"
4856f7a440SJames Hogan	---help---
4956f7a440SJames Hogan	  Use the MIPS Virtualization (VZ) ASE to virtualize guests. This
5056f7a440SJames Hogan	  supports running unmodified guest kernels (with CONFIG_KVM_GUEST=n),
5156f7a440SJames Hogan	  but requires hardware support.
5256f7a440SJames Hogan
5356f7a440SJames Hoganendchoice
542235a54dSSanjay Lal
552235a54dSSanjay Lalconfig KVM_MIPS_DYN_TRANS
562235a54dSSanjay Lal	bool "KVM/MIPS: Dynamic binary translation to reduce traps"
5756f7a440SJames Hogan	depends on KVM_MIPS_TE
5856f7a440SJames Hogan	default y
592235a54dSSanjay Lal	---help---
602235a54dSSanjay Lal	  When running in Trap & Emulate mode patch privileged
612235a54dSSanjay Lal	  instructions to reduce the number of traps.
622235a54dSSanjay Lal
632235a54dSSanjay Lal	  If unsure, say Y.
642235a54dSSanjay Lal
652235a54dSSanjay Lalconfig KVM_MIPS_DEBUG_COP0_COUNTERS
662235a54dSSanjay Lal	bool "Maintain counters for COP0 accesses"
672235a54dSSanjay Lal	depends on KVM
682235a54dSSanjay Lal	---help---
692235a54dSSanjay Lal	  Maintain statistics for Guest COP0 accesses.
702235a54dSSanjay Lal	  A histogram of COP0 accesses is printed when the VM is
712235a54dSSanjay Lal	  shutdown.
722235a54dSSanjay Lal
732235a54dSSanjay Lal	  If unsure, say N.
742235a54dSSanjay Lal
752235a54dSSanjay Lalsource drivers/vhost/Kconfig
762235a54dSSanjay Lal
772235a54dSSanjay Lalendif # VIRTUALIZATION
78