KVM: arm/arm64: vgic: avoid map in kvm_vgic_map_is_active()
authorAndre Przywara <andre.przywara@arm.com>
Wed, 13 Apr 2016 09:03:49 +0000 (10:03 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 20 May 2016 13:39:38 +0000 (15:39 +0200)
commite262f4193638fff2de458f0c70284f0cb50926a7
treeccee602ddeb5337a1dc38f49cd659f00f4a07813
parent4f551a3d96a2de85a041ee60e806bda1d5b06255
KVM: arm/arm64: vgic: avoid map in kvm_vgic_map_is_active()

For getting the active state of a mapped IRQ, we actually only need
the virtual IRQ number, not the pointer to the mapping entry.
Pass the virtual IRQ number from the arch timer to the VGIC directly.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
include/kvm/arm_vgic.h
virt/kvm/arm/arch_timer.c
virt/kvm/arm/vgic.c