hw/intc/arm_gic(v3)_kvm: Initialize gsi routing
commitd19a4d4ef448e736d341df47bd1adc78c8e40814
authorEric Auger <eric.auger@redhat.com>
Tue, 4 Oct 2016 12:28:08 +0000 (4 13:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 4 Oct 2016 12:28:08 +0000 (4 13:28 +0100)
tree0abb6a13d1734a5b664ecb60ad5e25e9b2c87d53
parent96b0439bbe2083c10308ce91860e2129f52bc1ae
hw/intc/arm_gic(v3)_kvm: Initialize gsi routing

Advertise gsi routing and set up irqchip routing entries for
GIC SPIs.

This is not mandated as long as MSI routing is not used
(because the kernel sets a default irqchip routing table).
However once MSI routing gets used (for VIRTIO-PCI vhost for
example), the first call to KVM_SET_GSI_ROUTING overrides the
kernel default irqchip table.

If no routing entry exists for the GSI, any IRQFD signaling for
this GSI will fail.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1474616617-366-2-git-send-email-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/intc/arm_gic_kvm.c
hw/intc/arm_gicv3_kvm.c