hw/intc/arm_gicv3_kvm: Get prepared to handle multiple redist regions
commit80d673338959c813770bd5b903e3061db58b1999
authorEric Auger <eric.auger@redhat.com>
Fri, 22 Jun 2018 12:28:36 +0000 (22 13:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 22 Jun 2018 12:28:36 +0000 (22 13:28 +0100)
tree788ae3626bbb8aba33adb8b5ebb99f0e379147be
parent1e575b66643a4311b9a6cbf0744f7f5aeba5e181
hw/intc/arm_gicv3_kvm: Get prepared to handle multiple redist regions

Let's check if KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION is supported.
If not, we check the number of redist region is equal to 1 and use the
legacy KVM_VGIC_V3_ADDR_TYPE_REDIST attribute. Otherwise we use
the new attribute and allow to register multiple regions to the
KVM device.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Message-id: 1529072910-16156-5-git-send-email-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/intc/arm_gicv3_kvm.c