KVM: arm/arm64: vgic: Signal IRQs using their configured group
authorChristoffer Dall <christoffer.dall@arm.com>
Mon, 16 Jul 2018 13:06:22 +0000 (15:06 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Sat, 21 Jul 2018 15:02:26 +0000 (16:02 +0100)
commit87322099052b6a534cecd3d303fc097d4560b7d0
tree880ea15f8483cde93928f0836e7f7407e11b08e1
parent8df3c8f33f46adbaa811c0d57fb1d7eb421b88a9
KVM: arm/arm64: vgic: Signal IRQs using their configured group

Now when we have a group configuration on the struct IRQ, use this state
when populating the LR and signaling interrupts as either group 0 or
group 1 to the VM.  Depending on the model of the emulated GIC, and the
guest's configuration of the VMCR, interrupts may be signaled as IRQs or
FIQs to the VM.

Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/linux/irqchip/arm-gic.h
virt/kvm/arm/vgic/vgic-v2.c
virt/kvm/arm/vgic/vgic-v3.c