From mboxrd@z Thu Jan 1 00:00:00 1970 From: marc.zyngier@arm.com (Marc Zyngier) Date: Sat, 02 Sep 2017 12:13:30 +0100 Subject: [RFC PATCH 1/4] KVM: arm/arm64: vgic: restructure kvm_vgic_(un)map_phys_irq In-Reply-To: <20170829093902.15379-2-cdall@linaro.org> (Christoffer Dall's message of "Tue, 29 Aug 2017 11:38:59 +0200") References: <20170829093902.15379-1-cdall@linaro.org> <20170829093902.15379-2-cdall@linaro.org> Message-ID: <863785uzdx.fsf@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Aug 29 2017 at 11:38:59 am BST, Christoffer Dall wrote: > From: Eric Auger > > 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 because it is needed in later > patches which manipulate the physical GIC state to support forwarded > IRQs. > > We introduce kvm_vgic_map/unmap_irq which take a struct vgic_irq handle > as a parameter. > > Signed-off-by: Eric Auger > Signed-off-by: Christoffer Dall Acked-by: Marc Zyngier M. -- Jazz is not dead. It just smells funny.