]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit85e69ad7f2cc6dd829987a70cf32785b1d8c8b27
tree42a5464cd25063efd56d1493bc544c860309a754
parent3cba4af31c61fc9420fdcf083f509a6c20a6d8e5
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