blob: 1170b20d68a709b1c74c162f73c2e4f1c89250e8 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Marc Zyngierc3eb5b12013-07-04 13:34:32 +01002#
3# KVM configuration
4#
5
Eric Auger24124052017-10-27 15:28:31 +01006source "virt/lib/Kconfig"
Sean Christophersonc8f1e962021-09-21 15:22:30 -07007source "virt/kvm/Kconfig"
Marc Zyngierc3eb5b12013-07-04 13:34:32 +01008
9menuconfig VIRTUALIZATION
10 bool "Virtualization"
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090011 help
Marc Zyngierc3eb5b12013-07-04 13:34:32 +010012 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
Will Deaconf2613362020-05-05 16:45:19 +010021menuconfig KVM
Marc Zyngierc3eb5b12013-07-04 13:34:32 +010022 bool "Kernel-based Virtual Machine (KVM) support"
Christoffer Dall662d9712015-03-11 14:21:31 +010023 depends on OF
Marc Zyngierc3eb5b12013-07-04 13:34:32 +010024 select MMU_NOTIFIER
25 select PREEMPT_NOTIFIERS
Marc Zyngierd241aac2013-08-02 11:41:13 +010026 select HAVE_KVM_CPU_RELAX_INTERCEPT
Mario Smarduch72760302015-01-15 15:59:01 -080027 select HAVE_KVM_ARCH_TLB_FLUSH_ALL
Marc Zyngierc3eb5b12013-07-04 13:34:32 +010028 select KVM_MMIO
Mario Smarduch72760302015-01-15 15:59:01 -080029 select KVM_GENERIC_DIRTYLOG_READ_PROTECT
Oliver Upton6caa5812021-08-02 19:28:09 +000030 select KVM_XFER_TO_GUEST_WORK
Pranith Kumar83fe27e2014-12-05 11:24:45 -050031 select SRCU
Kim Phillips88895832015-06-05 16:21:49 +010032 select KVM_VFIO
Eric Auger174178f2015-03-04 11:14:36 +010033 select HAVE_KVM_EVENTFD
34 select HAVE_KVM_IRQFD
Andre Przywara0e4e82f2016-07-15 12:43:38 +010035 select HAVE_KVM_MSI
Eric Auger180ae7b2016-07-22 16:20:41 +000036 select HAVE_KVM_IRQCHIP
37 select HAVE_KVM_IRQ_ROUTING
Eric Auger24124052017-10-27 15:28:31 +010038 select IRQ_BYPASS_MANAGER
39 select HAVE_KVM_IRQ_BYPASS
Dave Martine6b673b2018-04-06 14:55:59 +010040 select HAVE_KVM_VCPU_RUN_PID_CHANGE
Peter Zijlstra63b3f962021-05-04 22:43:39 +020041 select SCHED_INFO
Masahiro Yamadaa7f7f622020-06-14 01:50:22 +090042 help
Marc Zyngierc3eb5b12013-07-04 13:34:32 +010043 Support hosting virtualized guest machines.
44
45 If unsure, say N.
46
Quentin Perret8e049e02021-08-09 16:24:29 +010047config NVHE_EL2_DEBUG
48 bool "Debug mode for non-VHE EL2 object"
Sean Christophersonc8f1e962021-09-21 15:22:30 -070049 depends on KVM
Quentin Perret8e049e02021-08-09 16:24:29 +010050 help
51 Say Y here to enable the debug mode for the non-VHE KVM EL2 object.
52 Failure reports will BUG() in the hypervisor. This is intended for
53 local EL2 hypervisor development.
54
55 If unsure, say N.
56
Marc Zyngierc3eb5b12013-07-04 13:34:32 +010057endif # VIRTUALIZATION