]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: arm/arm64: vgic: restructure kvm_vgic_(un)map_phys_irq
authorEric Auger <eric.auger@redhat.com>
Fri, 27 Oct 2017 14:28:32 +0000 (15:28 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 6 Nov 2017 16:20:19 +0000 (17:20 +0100)
commit47bbd31f740c4e693d01766f367ad3366fb49a6d
tree54bcec5711d5dd778f654e00949cf685b4148fc0
parent2412405b3141cfe943d05a28a2160187d45f1c9a
KVM: arm/arm64: vgic: restructure kvm_vgic_(un)map_phys_irq

We want to reuse the core of the map/unmap functions for IRQ
forwarding. Let's move the computation of the hwirq in
kvm_vgic_map_phys_irq and pass the linux IRQ as parameter.
the host_irq is added to struct vgic_irq.

We introduce kvm_vgic_map/unmap_irq which take a struct vgic_irq
handle as a parameter.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/kvm/arm_vgic.h
virt/kvm/arm/arch_timer.c
virt/kvm/arm/vgic/vgic.c