diff options
author | Eric Auger <eric.auger@linaro.org> | 2015-04-13 16:01:59 +0300 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2015-04-22 17:37:54 +0300 |
commit | 0b3289ebc2d50cf5ab778215ed0b4075bbae6629 (patch) | |
tree | 22699866daab419f59748d735674fa3fdac2e3b7 /virt/kvm/arm | |
parent | b79013b2449c23f1f505bdf39c5a6c330338b244 (diff) | |
download | linux-0b3289ebc2d50cf5ab778215ed0b4075bbae6629.tar.xz |
KVM: arm: irqfd: fix value returned by kvm_irq_map_gsi
irqfd/arm curently does not support routing. kvm_irq_map_gsi is
supposed to return all the routing entries associated with the
provided gsi and return the number of those entries. We should
return 0 at this point.
Signed-off-by: Eric Auger <eric.auger@linaro.org>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt/kvm/arm')
-rw-r--r-- | virt/kvm/arm/vgic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/vgic.c b/virt/kvm/arm/vgic.c index 8d550ff14700..7ed78735f611 100644 --- a/virt/kvm/arm/vgic.c +++ b/virt/kvm/arm/vgic.c @@ -2141,7 +2141,7 @@ int kvm_irq_map_gsi(struct kvm *kvm, struct kvm_kernel_irq_routing_entry *entries, int gsi) { - return gsi; + return 0; } int kvm_irq_map_chip_pin(struct kvm *kvm, unsigned irqchip, unsigned pin) |