Thread (19 messages) 19 messages, 3 authors, 2012-12-01
DORMANTno replies

[PATCH v4 5/5] ARM: KVM: arch_timers: Wire the init code and config option

From: Christoffer Dall <hidden>
Date: 2012-12-01 01:05:58
Also in: kvm
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

On Fri, Nov 23, 2012 at 11:31 AM, Will Deacon [off-list ref] wrote:
On Sat, Nov 10, 2012 at 03:46:32PM +0000, Christoffer Dall wrote:
quoted
From: Marc Zyngier <redacted>

It is now possible to select CONFIG_KVM_ARM_TIMER to enable the
KVM architected timer support.

Signed-off-by: Marc Zyngier <redacted>
Signed-off-by: Christoffer Dall <redacted>
---
 arch/arm/kvm/Kconfig  |    7 +++++++
 arch/arm/kvm/Makefile |    1 +
 arch/arm/kvm/arm.c    |   11 +++++++++++
 arch/arm/kvm/vgic.c   |    1 +
 4 files changed, 20 insertions(+)
diff --git a/arch/arm/kvm/Kconfig b/arch/arm/kvm/Kconfig
index 3c979ce..eaecb9f 100644
--- a/arch/arm/kvm/Kconfig
+++ b/arch/arm/kvm/Kconfig
@@ -58,6 +58,13 @@ config KVM_ARM_VGIC
      ---help---
        Adds support for a hardware assisted, in-kernel GIC emulation.

+config KVM_ARM_TIMER
+        bool "KVM support for Architected Timers"
+     depends on KVM_ARM_VGIC && ARM_ARCH_TIMER
+     select HAVE_KVM_IRQCHIP
+     ---help---
+       Adds support for the Architected Timers in virtual machines
+
This should probably be default y
yes, good idea, they all should, like this:
diff --git a/arch/arm/kvm/Kconfig b/arch/arm/kvm/Kconfig
index 60d3d2a..739500b 100644
--- a/arch/arm/kvm/Kconfig
+++ b/arch/arm/kvm/Kconfig
@@ -21,6 +21,7 @@ config KVM
 	select PREEMPT_NOTIFIERS
 	select ANON_INODES
 	select KVM_MMIO
+	select KVM_ARM_HOST
 	depends on ARM_VIRT_EXT && ARM_LPAE
 	---help---
 	  Support hosting virtualized guest machines. You will also
@@ -54,6 +55,7 @@ config KVM_ARM_VGIC
         bool "KVM support for Virtual GIC"
 	depends on KVM_ARM_HOST && OF
 	select HAVE_KVM_IRQCHIP
+	default y
 	---help---
 	  Adds support for a hardware assisted, in-kernel GIC emulation.
@@ -61,6 +63,7 @@ config KVM_ARM_TIMER
         bool "KVM support for Architected Timers"
 	depends on KVM_ARM_VGIC && ARM_ARCH_TIMER
 	select HAVE_KVM_IRQCHIP
+	default y
 	---help---
 	  Adds support for the Architected Timers in virtual machines

--
Thanks,
-Christoffer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help