diff options
| author | Andre Przywara <andre.przywara@arm.com> | 2016-04-13 06:49:07 -0400 |
|---|---|---|
| committer | Christoffer Dall <christoffer.dall@linaro.org> | 2016-05-20 09:39:40 -0400 |
| commit | c8eb3f6b9bc31abc0ab3230737fde1639c8b1ea6 (patch) | |
| tree | 4b599703a3e533993f3c1c49eeda650d74aacf92 /include/kvm | |
| parent | a7e33ad9b25552b75a2523cc598db8bcd218ede5 (diff) | |
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>
Diffstat (limited to 'include/kvm')
| -rw-r--r-- | include/kvm/arm_vgic.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index 9ad7625c0e79..3e17fb4e64b7 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h | |||
| @@ -344,8 +344,7 @@ int kvm_vgic_inject_mapped_irq(struct kvm *kvm, int cpuid, | |||
| 344 | unsigned int virt_irq, bool level); | 344 | unsigned int virt_irq, bool level); |
| 345 | void vgic_v3_dispatch_sgi(struct kvm_vcpu *vcpu, u64 reg); | 345 | void vgic_v3_dispatch_sgi(struct kvm_vcpu *vcpu, u64 reg); |
| 346 | int kvm_vgic_vcpu_pending_irq(struct kvm_vcpu *vcpu); | 346 | int kvm_vgic_vcpu_pending_irq(struct kvm_vcpu *vcpu); |
| 347 | struct irq_phys_map *kvm_vgic_map_phys_irq(struct kvm_vcpu *vcpu, | 347 | int kvm_vgic_map_phys_irq(struct kvm_vcpu *vcpu, int virt_irq, int phys_irq); |
| 348 | int virt_irq, int phys_irq); | ||
| 349 | int kvm_vgic_unmap_phys_irq(struct kvm_vcpu *vcpu, unsigned int virt_irq); | 348 | int kvm_vgic_unmap_phys_irq(struct kvm_vcpu *vcpu, unsigned int virt_irq); |
| 350 | bool kvm_vgic_map_is_active(struct kvm_vcpu *vcpu, unsigned int virt_irq); | 349 | bool kvm_vgic_map_is_active(struct kvm_vcpu *vcpu, unsigned int virt_irq); |
| 351 | 350 | ||
