KVM: ARM: vgic: revisit implementation of irqchip_in_kernel
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 15 May 2014 09:03:25 +0000 (10:03 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:54 +0000 (17:18 +0200)
commit79f17b6074e34191952a9249b061012a23f3888a
tree350ef7cb94233de867f67468d19e917ca6c9d000
parentab8bb40339927ab4e5875330461a9a9ffaf42a56
KVM: ARM: vgic: revisit implementation of irqchip_in_kernel

So far, irqchip_in_kernel() was implemented by testing the value of
vctrl_base, which worked fine with GICv2.

With GICv3, this field is useless, as we're using system registers
instead of a emmory mapped interface. To solve this, add a boolean
flag indicating if the we're using a vgic or not.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit f982cf4e9c37b19478c7bc6e0484a43a7e78cf57)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/kvm/arm_vgic.h
virt/kvm/arm/vgic.c