blob: a8d1ace3ea51fa502d8b2060e35168c06bb0ffb7 [file] [log] [blame]
Christoffer Dall749cf76c2013-01-20 18:28:06 -05001#
2# KVM configuration
3#
4
5source "virt/kvm/Kconfig"
6
7menuconfig VIRTUALIZATION
8 bool "Virtualization"
9 ---help---
10 Say Y here to get to see options for using your Linux host to run
11 other operating systems inside virtual machines (guests).
12 This option alone does not add any kernel code.
13
14 If you say N, all options in this submenu will be skipped and
15 disabled.
16
17if VIRTUALIZATION
18
19config KVM
20 bool "Kernel-based Virtual Machine (KVM) support"
21 select PREEMPT_NOTIFIERS
22 select ANON_INODES
Marc Zyngier58d5ec82013-10-08 18:38:13 +010023 select HAVE_KVM_CPU_RELAX_INTERCEPT
Mario Smarduch72fc36b2015-01-15 15:58:55 -080024 select HAVE_KVM_ARCH_TLB_FLUSH_ALL
Christoffer Dall749cf76c2013-01-20 18:28:06 -050025 select KVM_MMIO
26 select KVM_ARM_HOST
Mario Smarduch53c810c2015-01-15 15:58:57 -080027 select KVM_GENERIC_DIRTYLOG_READ_PROTECT
Victor Kamenskyf5aa4622014-06-12 09:30:07 -070028 depends on ARM_VIRT_EXT && ARM_LPAE
Christoffer Dall749cf76c2013-01-20 18:28:06 -050029 ---help---
30 Support hosting virtualized guest machines. You will also
31 need to select one or more of the processor modules below.
32
33 This module provides access to the hardware capabilities through
34 a character device node named /dev/kvm.
35
36 If unsure, say N.
37
38config KVM_ARM_HOST
39 bool "KVM host support for ARM cpus."
40 depends on KVM
41 depends on MMU
Christoffer Dalld5d81842013-01-20 18:28:07 -050042 select MMU_NOTIFIER
Christoffer Dall749cf76c2013-01-20 18:28:06 -050043 ---help---
44 Provides host support for ARM processors.
45
46config KVM_ARM_MAX_VCPUS
Geoff Levandf2dda9d2013-06-06 18:02:54 -070047 int "Number maximum supported virtual CPUs per VM"
48 depends on KVM_ARM_HOST
49 default 4
Christoffer Dall749cf76c2013-01-20 18:28:06 -050050 help
51 Static number of max supported virtual CPUs per VM.
52
53 If you choose a high number, the vcpu structures will be quite
54 large, so only choose a reasonable number that you expect to
55 actually use.
56
Marc Zyngier75431f92013-01-21 19:36:16 -050057config KVM_ARM_VGIC
58 bool "KVM support for Virtual GIC"
59 depends on KVM_ARM_HOST && OF
60 select HAVE_KVM_IRQCHIP
61 default y
62 ---help---
63 Adds support for a hardware assisted, in-kernel GIC emulation.
64
Marc Zyngier967f8422013-01-23 13:21:59 -050065config KVM_ARM_TIMER
66 bool "KVM support for Architected Timers"
67 depends on KVM_ARM_VGIC && ARM_ARCH_TIMER
68 select HAVE_KVM_IRQCHIP
69 default y
70 ---help---
71 Adds support for the Architected Timers in virtual machines
72
Christoffer Dall749cf76c2013-01-20 18:28:06 -050073endif # VIRTUALIZATION