Skip to content

arm_gicv3: Support multiple redistributor regions

Peter Maydell qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/intc/arm_gicv3: Move checking of redist-region-count to arm_gicv3_common_realizehw/intc/arm_gicv3.c hw/intc/arm_gicv3_common.c hw/intc/arm_gicv3_kvm.c +1 more+16 -243 replies
2/3hw/intc/arm_gicv3: Set GICR_TYPER.Last correctly when nb_redist_regions > 1hw/intc/arm_gicv3_common.c+12 -51 reply
3/3hw/intc/arm_gicv3: Support multiple redistributor regionshw/intc/arm_gicv3.c hw/intc/arm_gicv3_common.c hw/intc/arm_gicv3_kvm.c +2 more+46 -311 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] arm_gicv3: Support multiple redistributor regions

Our GICv3 QOM interface includes an array property redist-region-count which allows board models to specify that the registributor registers are not in a single contiguous range, but split into multiple pieces. We implemented this for KVM, but currently the TCG GICv3 model insists that there is only one region. You can see the limit being hit with a setup like:
qemu-system-aarch64 -machine virt,gic-version=3 -smp 124

This patchset adds support for multiple regions to the emulated GICv3, which means that the virt board now supports more than 123 CPUs for TCG as well as for KVM.

Patches 1 and 2 are smaller initial cleanup; patch 3 is the bulk of the feature work.

(This turned out to be pretty simple; we should probably have done it before...)

-- PMM

Peter Maydell (3):
hw/intc/arm_gicv3: Move checking of redist-region-count to
arm_gicv3_common_realize
hw/intc/arm_gicv3: Set GICR_TYPER.Last correctly when
nb_redist_regions > 1
hw/intc/arm_gicv3: Support multiple redistributor regions

 include/hw/intc/arm_gicv3_common.h | 14 ++++++--
 hw/intc/arm_gicv3.c                | 12 +------
 hw/intc/arm_gicv3_common.c         | 56 +++++++++++++++++++-----------
 hw/intc/arm_gicv3_kvm.c            | 10 ++----
 hw/intc/arm_gicv3_redist.c         | 40 +++++++++++----------
 5 files changed, 73 insertions(+), 59 deletions(-)
Signature · 1 line
2.20.1