1# SPDX-License-Identifier: GPL-2.0 2# 3# KVM configuration 4# 5 6source "virt/lib/Kconfig" 7source "virt/kvm/Kconfig" 8 9menuconfig VIRTUALIZATION 10 bool "Virtualization" 11 help 12 Say Y here to get to see options for using your Linux host to run 13 other operating systems inside virtual machines (guests). 14 This option alone does not add any kernel code. 15 16 If you say N, all options in this submenu will be skipped and 17 disabled. 18 19if VIRTUALIZATION 20 21menuconfig KVM 22 bool "Kernel-based Virtual Machine (KVM) support" 23 depends on HAVE_KVM 24 select MMU_NOTIFIER 25 select PREEMPT_NOTIFIERS 26 select HAVE_KVM_CPU_RELAX_INTERCEPT 27 select HAVE_KVM_ARCH_TLB_FLUSH_ALL 28 select KVM_MMIO 29 select KVM_GENERIC_DIRTYLOG_READ_PROTECT 30 select KVM_XFER_TO_GUEST_WORK 31 select SRCU 32 select KVM_VFIO 33 select HAVE_KVM_EVENTFD 34 select HAVE_KVM_IRQFD 35 select HAVE_KVM_MSI 36 select HAVE_KVM_IRQCHIP 37 select HAVE_KVM_IRQ_ROUTING 38 select IRQ_BYPASS_MANAGER 39 select HAVE_KVM_IRQ_BYPASS 40 select HAVE_KVM_VCPU_RUN_PID_CHANGE 41 select SCHED_INFO 42 select GUEST_PERF_EVENTS if PERF_EVENTS 43 help 44 Support hosting virtualized guest machines. 45 46 If unsure, say N. 47 48config NVHE_EL2_DEBUG 49 bool "Debug mode for non-VHE EL2 object" 50 depends on KVM 51 help 52 Say Y here to enable the debug mode for the non-VHE KVM EL2 object. 53 Failure reports will BUG() in the hypervisor. This is intended for 54 local EL2 hypervisor development. 55 56 If unsure, say N. 57 58config PROTECTED_NVHE_STACKTRACE 59 bool "Protected KVM hypervisor stacktraces" 60 depends on NVHE_EL2_DEBUG 61 default n 62 help 63 Say Y here to enable pKVM hypervisor stacktraces on hyp_panic() 64 65 If using protected nVHE mode, but cannot afford the associated 66 memory cost (less than 0.75 page per CPU) of pKVM stacktraces, 67 say N. 68 69 If unsure, or not using protected nVHE (pKVM), say N. 70 71config PKVM_MODULE_PATH 72 string "Path to pKVM modules" 73 default "" 74 help 75 Directory where the pKVM modules are found. If empty, the modules 76 will be searched into the default path /lib/modules/<uname>. 77 78endif # VIRTUALIZATION 79