Kconfig 1.5 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
M
Marc Zyngier 已提交
2 3 4 5 6
#
# KVM configuration
#

source "virt/kvm/Kconfig"
7
source "virt/lib/Kconfig"
M
Marc Zyngier 已提交
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

menuconfig VIRTUALIZATION
	bool "Virtualization"
	---help---
	  Say Y here to get to see options for using your Linux host to run
	  other operating systems inside virtual machines (guests).
	  This option alone does not add any kernel code.

	  If you say N, all options in this submenu will be skipped and
	  disabled.

if VIRTUALIZATION

config KVM
	bool "Kernel-based Virtual Machine (KVM) support"
23
	depends on OF
M
Marc Zyngier 已提交
24 25 26
	select MMU_NOTIFIER
	select PREEMPT_NOTIFIERS
	select ANON_INODES
27
	select HAVE_KVM_CPU_RELAX_INTERCEPT
28
	select HAVE_KVM_ARCH_TLB_FLUSH_ALL
M
Marc Zyngier 已提交
29 30
	select KVM_MMIO
	select KVM_ARM_HOST
31
	select KVM_GENERIC_DIRTYLOG_READ_PROTECT
32
	select SRCU
33
	select KVM_VFIO
E
Eric Auger 已提交
34 35
	select HAVE_KVM_EVENTFD
	select HAVE_KVM_IRQFD
36
	select KVM_ARM_PMU if HW_PERF_EVENTS
37
	select HAVE_KVM_MSI
38 39
	select HAVE_KVM_IRQCHIP
	select HAVE_KVM_IRQ_ROUTING
40 41
	select IRQ_BYPASS_MANAGER
	select HAVE_KVM_IRQ_BYPASS
M
Marc Zyngier 已提交
42 43
	---help---
	  Support hosting virtualized guest machines.
44 45
	  We don't support KVM with 16K page tables yet, due to the multiple
	  levels of fake page tables.
M
Marc Zyngier 已提交
46 47 48 49 50 51 52 53

	  If unsure, say N.

config KVM_ARM_HOST
	bool
	---help---
	  Provides host support for ARM processors.

54 55 56 57 58 59
config KVM_ARM_PMU
	bool
	---help---
	  Adds support for a virtual Performance Monitoring Unit (PMU) in
	  virtual machines.

60
config KVM_INDIRECT_VECTORS
61
       def_bool KVM && (HARDEN_BRANCH_PREDICTOR || HARDEN_EL2_VECTORS)
62

63 64
source drivers/vhost/Kconfig

M
Marc Zyngier 已提交
65
endif # VIRTUALIZATION