Skip to content

hw/arm/virt: Handle HVF in finalize_gic_version()

Alexander Graf qemu-arm qemu-devel 3 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 10 repliesApplied
  2. v22 patches 3 repliesSuperseded
  3. v12 patches 3 repliesSuperseded

Changes in v3 from the cover letter

- Fix comment
- Flip kvm-enabled logic for host around

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2hw/arm/virt: Consolidate GIC finalize logichw/arm/virt.c include/hw/arm/virt.h+112 -1013 replies
2/2hw/arm/virt: Make accels in GIC finalize logic explicithw/arm/virt.c+5 -12 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilippe Mathieu-DaudéCornelia HuckRichard HendersonZenghui Yu
SeriesR-b
1/2R-b R-b
2/2R-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] hw/arm/virt: Handle HVF in finalize_gic_version()

The finalize_gic_version() function tries to determine which GIC version the current accelerator / host combination supports. During the initial HVF porting efforts, I didn't realize that I also had to touch this function. Then Zenghui brought up this function as reply to my HVF GICv3 enablement patch - and boy it is a mess.

This patch set cleans up all of the GIC finalization so that we can easily plug HVF in and also hopefully will have a better time extending it in the future. As second step, it explicitly adds HVF support and fails loudly for any unsupported accelerators.

Alex

v1 -> v2:

- Leave VIRT_GIC_VERSION defines intact, we need them for MADT generation
- Include TCG header for tcg_enabled()

v2 -> v3:

- Fix comment
- Flip kvm-enabled logic for host around

Alexander Graf (2):
hw/arm/virt: Consolidate GIC finalize logic hw/arm/virt: Make accels in GIC finalize logic explicit

 hw/arm/virt.c         | 200 ++++++++++++++++++++++--------------------
 include/hw/arm/virt.h |  15 ++--
 2 files changed, 115 insertions(+), 100 deletions(-)
Signature · 1 line
2.37.1 (Apple Git-137.1)