KVM: arm/arm64: vgic: Remove irq_phys_map from interface
authorAndre Przywara <andre.przywara@arm.com>
Wed, 13 Apr 2016 10:49:07 +0000 (11:49 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Fri, 20 May 2016 13:39:40 +0000 (15:39 +0200)
commitc8eb3f6b9bc31abc0ab3230737fde1639c8b1ea6
tree4b599703a3e533993f3c1c49eeda650d74aacf92
parenta7e33ad9b25552b75a2523cc598db8bcd218ede5
KVM: arm/arm64: vgic: Remove irq_phys_map from interface

Now that the virtual arch timer does not care about the irq_phys_map
anymore, let's rework kvm_vgic_map_phys_irq() to return an error
value instead. Any reference to that mapping can later be done by
passing the correct combination of VCPU and virtual IRQ number.
This makes the irq_phys_map handling completely private to the
VGIC code.

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