1*b2441318SGreg 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 252235a54dSSanjay Lal select KVM_MMIO 26411740f5SJames Hogan select MMU_NOTIFIER 2783fe27eaSPranith Kumar select SRCU 282235a54dSSanjay Lal ---help--- 292235a54dSSanjay Lal Support for hosting Guest kernels. 3056f7a440SJames Hogan 3156f7a440SJames Hoganchoice 3256f7a440SJames Hogan prompt "Virtualization mode" 3356f7a440SJames Hogan depends on KVM 3456f7a440SJames Hogan default KVM_MIPS_TE 3556f7a440SJames Hogan 3656f7a440SJames Hoganconfig KVM_MIPS_TE 3756f7a440SJames Hogan bool "Trap & Emulate" 3856f7a440SJames Hogan ---help--- 3956f7a440SJames Hogan Use trap and emulate to virtualize 32-bit guests in user mode. This 4056f7a440SJames Hogan does not require any special hardware Virtualization support beyond 4156f7a440SJames Hogan standard MIPS32/64 r2 or later, but it does require the guest kernel 4256f7a440SJames Hogan to be configured with CONFIG_KVM_GUEST=y so that it resides in the 4356f7a440SJames Hogan user address segment. 4456f7a440SJames Hogan 4556f7a440SJames Hoganconfig KVM_MIPS_VZ 4656f7a440SJames Hogan bool "MIPS Virtualization (VZ) ASE" 4756f7a440SJames Hogan ---help--- 4856f7a440SJames Hogan Use the MIPS Virtualization (VZ) ASE to virtualize guests. This 4956f7a440SJames Hogan supports running unmodified guest kernels (with CONFIG_KVM_GUEST=n), 5056f7a440SJames Hogan but requires hardware support. 5156f7a440SJames Hogan 5256f7a440SJames Hoganendchoice 532235a54dSSanjay Lal 542235a54dSSanjay Lalconfig KVM_MIPS_DYN_TRANS 552235a54dSSanjay Lal bool "KVM/MIPS: Dynamic binary translation to reduce traps" 5656f7a440SJames Hogan depends on KVM_MIPS_TE 5756f7a440SJames Hogan default y 582235a54dSSanjay Lal ---help--- 592235a54dSSanjay Lal When running in Trap & Emulate mode patch privileged 602235a54dSSanjay Lal instructions to reduce the number of traps. 612235a54dSSanjay Lal 622235a54dSSanjay Lal If unsure, say Y. 632235a54dSSanjay Lal 642235a54dSSanjay Lalconfig KVM_MIPS_DEBUG_COP0_COUNTERS 652235a54dSSanjay Lal bool "Maintain counters for COP0 accesses" 662235a54dSSanjay Lal depends on KVM 672235a54dSSanjay Lal ---help--- 682235a54dSSanjay Lal Maintain statistics for Guest COP0 accesses. 692235a54dSSanjay Lal A histogram of COP0 accesses is printed when the VM is 702235a54dSSanjay Lal shutdown. 712235a54dSSanjay Lal 722235a54dSSanjay Lal If unsure, say N. 732235a54dSSanjay Lal 742235a54dSSanjay Lalsource drivers/vhost/Kconfig 752235a54dSSanjay Lal 762235a54dSSanjay Lalendif # VIRTUALIZATION 77