diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2015-03-11 09:21:31 -0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2015-03-12 10:15:27 -0400 |
commit | 662d9715840aef44dcb573b0f9fab9e8319c868a (patch) | |
tree | 8c2800bd7b58972618fa820a57b03cdfca01d1c9 /arch/arm64/kvm | |
parent | 69ff5c619cb350f43fbab2a491b4b66de7e96959 (diff) |
arm/arm64: KVM: Kill CONFIG_KVM_ARM_{VGIC,TIMER}
We can definitely decide at run-time whether to use the GIC and timers
or not, and the extra code and data structures that we allocate space
for is really negligable with this config option, so I don't think it's
worth the extra complexity of always having to define stub static
inlines. The !CONFIG_KVM_ARM_VGIC/TIMER case is pretty much an untested
code path anyway, so we're better off just getting rid of it.
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm64/kvm')
-rw-r--r-- | arch/arm64/kvm/Kconfig | 17 | ||||
-rw-r--r-- | arch/arm64/kvm/Makefile | 16 |
2 files changed, 10 insertions, 23 deletions
diff --git a/arch/arm64/kvm/Kconfig b/arch/arm64/kvm/Kconfig index f5590c81d95f..ee43750104fc 100644 --- a/arch/arm64/kvm/Kconfig +++ b/arch/arm64/kvm/Kconfig | |||
@@ -18,6 +18,7 @@ if VIRTUALIZATION | |||
18 | 18 | ||
19 | config KVM | 19 | config KVM |
20 | bool "Kernel-based Virtual Machine (KVM) support" | 20 | bool "Kernel-based Virtual Machine (KVM) support" |
21 | depends on OF | ||
21 | select MMU_NOTIFIER | 22 | select MMU_NOTIFIER |
22 | select PREEMPT_NOTIFIERS | 23 | select PREEMPT_NOTIFIERS |
23 | select ANON_INODES | 24 | select ANON_INODES |
@@ -25,8 +26,7 @@ config KVM | |||
25 | select HAVE_KVM_ARCH_TLB_FLUSH_ALL | 26 | select HAVE_KVM_ARCH_TLB_FLUSH_ALL |
26 | select KVM_MMIO | 27 | select KVM_MMIO |
27 | select KVM_ARM_HOST | 28 | select KVM_ARM_HOST |
28 | select KVM_ARM_VGIC | 29 | select HAVE_KVM_IRQCHIP |
29 | select KVM_ARM_TIMER | ||
30 | select KVM_GENERIC_DIRTYLOG_READ_PROTECT | 30 | select KVM_GENERIC_DIRTYLOG_READ_PROTECT |
31 | select SRCU | 31 | select SRCU |
32 | ---help--- | 32 | ---help--- |
@@ -50,17 +50,4 @@ config KVM_ARM_MAX_VCPUS | |||
50 | large, so only choose a reasonable number that you expect to | 50 | large, so only choose a reasonable number that you expect to |
51 | actually use. | 51 | actually use. |
52 | 52 | ||
53 | config KVM_ARM_VGIC | ||
54 | bool | ||
55 | depends on KVM_ARM_HOST && OF | ||
56 | select HAVE_KVM_IRQCHIP | ||
57 | ---help--- | ||
58 | Adds support for a hardware assisted, in-kernel GIC emulation. | ||
59 | |||
60 | config KVM_ARM_TIMER | ||
61 | bool | ||
62 | depends on KVM_ARM_VGIC | ||
63 | ---help--- | ||
64 | Adds support for the Architected Timers in virtual machines. | ||
65 | |||
66 | endif # VIRTUALIZATION | 53 | endif # VIRTUALIZATION |
diff --git a/arch/arm64/kvm/Makefile b/arch/arm64/kvm/Makefile index 4e6e09ee4033..c92b26abc691 100644 --- a/arch/arm64/kvm/Makefile +++ b/arch/arm64/kvm/Makefile | |||
@@ -19,11 +19,11 @@ kvm-$(CONFIG_KVM_ARM_HOST) += emulate.o inject_fault.o regmap.o | |||
19 | kvm-$(CONFIG_KVM_ARM_HOST) += hyp.o hyp-init.o handle_exit.o | 19 | kvm-$(CONFIG_KVM_ARM_HOST) += hyp.o hyp-init.o handle_exit.o |
20 | kvm-$(CONFIG_KVM_ARM_HOST) += guest.o reset.o sys_regs.o sys_regs_generic_v8.o | 20 | kvm-$(CONFIG_KVM_ARM_HOST) += guest.o reset.o sys_regs.o sys_regs_generic_v8.o |
21 | 21 | ||
22 | kvm-$(CONFIG_KVM_ARM_VGIC) += $(KVM)/arm/vgic.o | 22 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic.o |
23 | kvm-$(CONFIG_KVM_ARM_VGIC) += $(KVM)/arm/vgic-v2.o | 23 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic-v2.o |
24 | kvm-$(CONFIG_KVM_ARM_VGIC) += $(KVM)/arm/vgic-v2-emul.o | 24 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic-v2-emul.o |
25 | kvm-$(CONFIG_KVM_ARM_VGIC) += vgic-v2-switch.o | 25 | kvm-$(CONFIG_KVM_ARM_HOST) += vgic-v2-switch.o |
26 | kvm-$(CONFIG_KVM_ARM_VGIC) += $(KVM)/arm/vgic-v3.o | 26 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic-v3.o |
27 | kvm-$(CONFIG_KVM_ARM_VGIC) += $(KVM)/arm/vgic-v3-emul.o | 27 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/vgic-v3-emul.o |
28 | kvm-$(CONFIG_KVM_ARM_VGIC) += vgic-v3-switch.o | 28 | kvm-$(CONFIG_KVM_ARM_HOST) += vgic-v3-switch.o |
29 | kvm-$(CONFIG_KVM_ARM_TIMER) += $(KVM)/arm/arch_timer.o | 29 | kvm-$(CONFIG_KVM_ARM_HOST) += $(KVM)/arm/arch_timer.o |