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 # for TASKSTATS/TASK_DELAY_ACCT: 25 depends on NET && MULTIUSER 26 select MMU_NOTIFIER 27 select PREEMPT_NOTIFIERS 28 select HAVE_KVM_CPU_RELAX_INTERCEPT 29 select HAVE_KVM_ARCH_TLB_FLUSH_ALL 30 select KVM_MMIO 31 select KVM_GENERIC_DIRTYLOG_READ_PROTECT 32 select SRCU 33 select KVM_VFIO 34 select HAVE_KVM_EVENTFD 35 select HAVE_KVM_IRQFD 36 select HAVE_KVM_MSI 37 select HAVE_KVM_IRQCHIP 38 select HAVE_KVM_IRQ_ROUTING 39 select IRQ_BYPASS_MANAGER 40 select HAVE_KVM_IRQ_BYPASS 41 select HAVE_KVM_VCPU_RUN_PID_CHANGE 42 select TASKSTATS 43 select TASK_DELAY_ACCT 44 help 45 Support hosting virtualized guest machines. 46 47 If unsure, say N. 48 49config NVHE_EL2_DEBUG 50 bool "Debug mode for non-VHE EL2 object" 51 depends on KVM 52 help 53 Say Y here to enable the debug mode for the non-VHE KVM EL2 object. 54 Failure reports will BUG() in the hypervisor. This is intended for 55 local EL2 hypervisor development. 56 57 If unsure, say N. 58 59config KVM_S2MPU 60 bool "Stage-2 Memory Protection Unit support" 61 depends on KVM 62 help 63 Support for the Stage-2 Memory Protection Unit (S2MPU) and Stream 64 Security Mapping Table (SSMT) devices in KVM. This allows the 65 hypervisor to restrict DMA access to its memory and the memory of 66 protected guests. 67 68config TEST_KVM_S2MPU 69 tristate "Test kernel module for S2MPU" 70 depends on KVM_S2MPU 71 help 72 Kernel module for kselftests that exercises the KVM S2MPU driver. 73 74endif # VIRTUALIZATION 75