File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 3
3
# KVM configuration
4
4
#
5
5
6
- source "virt/kvm/Kconfig"
7
6
source "virt/lib/Kconfig"
8
7
9
8
menuconfig VIRTUALIZATION
@@ -18,7 +17,7 @@ menuconfig VIRTUALIZATION
18
17
19
18
if VIRTUALIZATION
20
19
21
- config KVM
20
+ menuconfig KVM
22
21
bool "Kernel-based Virtual Machine (KVM) support"
23
22
depends on OF
24
23
# for TASKSTATS/TASK_DELAY_ACCT:
@@ -33,7 +32,6 @@ config KVM
33
32
select KVM_VFIO
34
33
select HAVE_KVM_EVENTFD
35
34
select HAVE_KVM_IRQFD
36
- select KVM_ARM_PMU if HW_PERF_EVENTS
37
35
select HAVE_KVM_MSI
38
36
select HAVE_KVM_IRQCHIP
39
37
select HAVE_KVM_IRQ_ROUTING
@@ -47,13 +45,21 @@ config KVM
47
45
48
46
If unsure, say N.
49
47
48
+ if KVM
49
+
50
+ source "virt/kvm/Kconfig"
51
+
50
52
config KVM_ARM_PMU
51
- bool
53
+ bool "Virtual Performance Monitoring Unit (PMU) support"
54
+ depends on HW_PERF_EVENTS
55
+ default y
52
56
---help---
53
57
Adds support for a virtual Performance Monitoring Unit (PMU) in
54
58
virtual machines.
55
59
56
60
config KVM_INDIRECT_VECTORS
57
- def_bool KVM && (HARDEN_BRANCH_PREDICTOR || HARDEN_EL2_VECTORS)
61
+ def_bool HARDEN_BRANCH_PREDICTOR || HARDEN_EL2_VECTORS
62
+
63
+ endif # KVM
58
64
59
65
endif # VIRTUALIZATION
You can’t perform that action at this time.
0 commit comments