ARM: KVM: Allow host virt timer irq to be different from guest timer virt irq
authorAnup Patel <anup.patel@linaro.org>
Tue, 30 Apr 2013 06:32:15 +0000 (12:02 +0530)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:10:35 +0000 (17:10 +0200)
commit146844e0e0dc7bcb2a080a2fdfd792674bff105b
tree7e1f2c5a7f3dc964cd636833fed5889de37bf0bc
parent092f9fbf3845c1c6e0bb14f3eae1be583c071a7d
ARM: KVM: Allow host virt timer irq to be different from guest timer virt irq

The arch_timer irq numbers (or PPI numbers) are implementation dependent,
so the host virtual timer irq number can be different from guest virtual
timer irq number.

This patch ensures that host virtual timer irq number is read from DTB and
guest virtual timer irq is determined based on vcpu target type.

Signed-off-by: Anup Patel <anup.patel@linaro.org>
Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
(cherry picked from commit 5ae7f87a56fab10b8f9b135a8377c144397293ca)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/reset.c
include/kvm/arm_arch_timer.h
virt/kvm/arm/arch_timer.c