diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-04-13 04:48:02 -0400 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2016-05-20 09:39:37 -0400 |
commit | 4f551a3d96a2de85a041ee60e806bda1d5b06255 (patch) | |
tree | 826cec1d44d34d1979fe8a6ce0c4d6301cd8828c /include/kvm | |
parent | 7cbc084dc22ca4adb8fd741502e43f29b577abfb (diff) |
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>
Diffstat (limited to 'include/kvm')
-rw-r--r-- | include/kvm/arm_vgic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index be6037aa703d..e22f01507e2b 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h | |||
@@ -342,7 +342,7 @@ void kvm_vgic_sync_hwstate(struct kvm_vcpu *vcpu); | |||
342 | int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int irq_num, | 342 | int kvm_vgic_inject_irq(struct kvm *kvm, int cpuid, unsigned int irq_num, |
343 | bool level); | 343 | bool level); |
344 | int kvm_vgic_inject_mapped_irq(struct kvm *kvm, int cpuid, | 344 | int kvm_vgic_inject_mapped_irq(struct kvm *kvm, int cpuid, |
345 | struct irq_phys_map *map, bool level); | 345 | unsigned int virt_irq, bool level); |
346 | void vgic_v3_dispatch_sgi(struct kvm_vcpu *vcpu, u64 reg); | 346 | void vgic_v3_dispatch_sgi(struct kvm_vcpu *vcpu, u64 reg); |
347 | int kvm_vgic_vcpu_pending_irq(struct kvm_vcpu *vcpu); | 347 | int kvm_vgic_vcpu_pending_irq(struct kvm_vcpu *vcpu); |
348 | struct irq_phys_map *kvm_vgic_map_phys_irq(struct kvm_vcpu *vcpu, | 348 | struct irq_phys_map *kvm_vgic_map_phys_irq(struct kvm_vcpu *vcpu, |