xref: /openbmc/linux/arch/arm64/kvm/Kconfig (revision f2613362)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2c3eb5b14SMarc Zyngier#
3c3eb5b14SMarc Zyngier# KVM configuration
4c3eb5b14SMarc Zyngier#
5c3eb5b14SMarc Zyngier
62412405bSEric Augersource "virt/lib/Kconfig"
7c3eb5b14SMarc Zyngier
8c3eb5b14SMarc Zyngiermenuconfig VIRTUALIZATION
9c3eb5b14SMarc Zyngier	bool "Virtualization"
10c3eb5b14SMarc Zyngier	---help---
11c3eb5b14SMarc Zyngier	  Say Y here to get to see options for using your Linux host to run
12c3eb5b14SMarc Zyngier	  other operating systems inside virtual machines (guests).
13c3eb5b14SMarc Zyngier	  This option alone does not add any kernel code.
14c3eb5b14SMarc Zyngier
15c3eb5b14SMarc Zyngier	  If you say N, all options in this submenu will be skipped and
16c3eb5b14SMarc Zyngier	  disabled.
17c3eb5b14SMarc Zyngier
18c3eb5b14SMarc Zyngierif VIRTUALIZATION
19c3eb5b14SMarc Zyngier
20f2613362SWill Deaconmenuconfig KVM
21c3eb5b14SMarc Zyngier	bool "Kernel-based Virtual Machine (KVM) support"
22662d9715SChristoffer Dall	depends on OF
23c7892db5SSteven Price	# for TASKSTATS/TASK_DELAY_ACCT:
24c7892db5SSteven Price	depends on NET && MULTIUSER
25c3eb5b14SMarc Zyngier	select MMU_NOTIFIER
26c3eb5b14SMarc Zyngier	select PREEMPT_NOTIFIERS
27d241aac7SMarc Zyngier	select HAVE_KVM_CPU_RELAX_INTERCEPT
287276030aSMario Smarduch	select HAVE_KVM_ARCH_TLB_FLUSH_ALL
29c3eb5b14SMarc Zyngier	select KVM_MMIO
307276030aSMario Smarduch	select KVM_GENERIC_DIRTYLOG_READ_PROTECT
3183fe27eaSPranith Kumar	select SRCU
328889583cSKim Phillips	select KVM_VFIO
33174178feSEric Auger	select HAVE_KVM_EVENTFD
34174178feSEric Auger	select HAVE_KVM_IRQFD
350e4e82f1SAndre Przywara	select HAVE_KVM_MSI
36180ae7b1SEric Auger	select HAVE_KVM_IRQCHIP
37180ae7b1SEric Auger	select HAVE_KVM_IRQ_ROUTING
382412405bSEric Auger	select IRQ_BYPASS_MANAGER
392412405bSEric Auger	select HAVE_KVM_IRQ_BYPASS
40e6b673b7SDave Martin	select HAVE_KVM_VCPU_RUN_PID_CHANGE
41c7892db5SSteven Price	select TASKSTATS
42c7892db5SSteven Price	select TASK_DELAY_ACCT
43c3eb5b14SMarc Zyngier	---help---
44c3eb5b14SMarc Zyngier	  Support hosting virtualized guest machines.
45c3eb5b14SMarc Zyngier
46c3eb5b14SMarc Zyngier	  If unsure, say N.
47c3eb5b14SMarc Zyngier
48f2613362SWill Deaconif KVM
49f2613362SWill Deacon
50f2613362SWill Deaconsource "virt/kvm/Kconfig"
51f2613362SWill Deacon
5204fe4726SShannon Zhaoconfig KVM_ARM_PMU
53f2613362SWill Deacon	bool "Virtual Performance Monitoring Unit (PMU) support"
54f2613362SWill Deacon	depends on HW_PERF_EVENTS
55f2613362SWill Deacon	default y
5604fe4726SShannon Zhao	---help---
5704fe4726SShannon Zhao	  Adds support for a virtual Performance Monitoring Unit (PMU) in
5804fe4726SShannon Zhao	  virtual machines.
5904fe4726SShannon Zhao
604340ba80SMarc Zyngierconfig KVM_INDIRECT_VECTORS
61f2613362SWill Deacon	def_bool HARDEN_BRANCH_PREDICTOR || HARDEN_EL2_VECTORS
62f2613362SWill Deacon
63f2613362SWill Deaconendif # KVM
644340ba80SMarc Zyngier
65c3eb5b14SMarc Zyngierendif # VIRTUALIZATION
66