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