]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Move timer IRQ default init to arch_timer.c
authorChristoffer Dall <cdall@linaro.org>
Tue, 2 May 2017 18:14:06 +0000 (20:14 +0200)
committerChristoffer Dall <cdall@linaro.org>
Thu, 8 Jun 2017 14:59:56 +0000 (16:59 +0200)
commit66b20a58cda76ac872ae7eda35bbb40d97c1b600
tree42a5464cd25063efd56d1493bc544c860309a754
parent53a869450ff9d5bbe896cdcc620e3d5d99052166
KVM: arm/arm64: Move timer IRQ default init to arch_timer.c

We currently initialize the arch timer IRQ numbers from the reset code,
presumably because we once intended to model multiple CPU or SoC types
from within the kernel and have hard-coded reset values in the reset
code.

As we are moving towards userspace being in charge of more fine-grained
CPU emulation and stitching together the pieces needed to emulate a
particular type of CPU, we should no longer have a tight coupling
between resetting a VCPU and setting IRQ numbers.

Therefore, move the logic to define and use the default IRQ numbers to
the timer code and set the IRQ number immediately when creating the
VCPU.

Signed-off-by: Christoffer Dall <cdall@linaro.org>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/kvm/reset.c
arch/arm64/kvm/reset.c
include/kvm/arm_arch_timer.h
virt/kvm/arm/arch_timer.c