hw/intc/arm_gicv3: Introduce redist-region-count array property
commit1e575b66643a4311b9a6cbf0744f7f5aeba5e181
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)
treea6e60262f83498594d7e074c8e0b10237e3ad8a0
parent19d1bd0b586a537805c6fe3b590f4ca8ec7a4912
hw/intc/arm_gicv3: Introduce redist-region-count array property

To prepare for multiple redistributor regions, we introduce
an array of uint32_t properties that stores the redistributor
count of each redistributor region.

Non accelerated VGICv3 only supports a single redistributor region.
The capacity of all redist regions is checked against the number of
vcpus.

Machvirt is updated to set those properties, ie. a single
redistributor region with count set to the number of vcpus
capped by 123.

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