KVM: arm/arm64: vgic: avoid map in kvm_vgic_inject_mapped_irq()
authorAndre Przywara <andre.przywara@arm.com>
Wed, 13 Apr 2016 08:48:02 +0000 (09:48 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 20 May 2016 13:39:37 +0000 (15:39 +0200)
commit4f551a3d96a2de85a041ee60e806bda1d5b06255
tree826cec1d44d34d1979fe8a6ce0c4d6301cd8828c
parent7cbc084dc22ca4adb8fd741502e43f29b577abfb
KVM: arm/arm64: vgic: avoid map in kvm_vgic_inject_mapped_irq()

When we want to inject a hardware mapped IRQ into a guest, we actually
only need the virtual IRQ number from the irq_phys_map.
So let's pass this number directly from the arch timer to the VGIC
to avoid using the map as a parameter.

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