On Fri, Jun 15, 2018 at 04:28:22PM +0200, Eric Auger wrote: > 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.au...@redhat.com> > > --- > v2 -> v3: > - add missing return in arm_gic_realize > - in gicv3_init_irqs_and_mmio, compute/check rdist_capacity first > - rdist region 0 size set to MIN(smp_cpus, redist0_capacity) > - add GICV3_REDIST_SIZE > --- > hw/arm/virt.c | 11 ++++++++++- > hw/intc/arm_gicv3.c | 12 +++++++++++- > hw/intc/arm_gicv3_common.c | 38 > +++++++++++++++++++++++++++++++++----- > hw/intc/arm_gicv3_kvm.c | 9 +++++++-- > include/hw/intc/arm_gicv3_common.h | 8 ++++++-- > 5 files changed, 67 insertions(+), 11 deletions(-) >
Reviewed-by: Andrew Jones <drjo...@redhat.com>