Skip to content

Register accel-$cpu_type for all targets

Yonggang Luo qemu-arm qemu-devel qemu-riscv 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 6 repliesIn review
  2. v43 patches 5 repliesSuperseded
  3. v33 patches 1 replySuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches5 repliesSuperseded
v12 patches3 repliesSuperseded

Changes in v5 from the cover letter

- Drop test_accel_cpu_parent(). test_qom_types_are_unique() already instantiates every QOM type

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3accel: register CPU parent only for AccelCPU subclassesaccel/accel-common.c include/accel/accel-cpu.h target/arm/cpu.c +3 more+18 -45 replies
2/3Revert "target/riscv/kvm: restrict kvm-accel-riscv-cpu to riscv targets"target/riscv/kvm/kvm-cpu.c+0 -20 replies
3/3Revert "target/riscv/tcg: restrict tcg-accel-riscv-cpu to riscv targets"target/riscv/tcg/tcg-cpu.c+0 -10 replies

Reviews trailers per patch

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

PatchPierrick Bouvier
1/3R-b T-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 v5 thread

Cover letter [PATCH v5 0/3] Register accel-$cpu_type for all targets

A multi-target system binary links more than one target. accel_cpu_register_type() creates the abstract parent accel-$cpu_type for each target that has an AccelCPU subclass. ARM, i386, RISC-V, and PowerPC call it. Other targets have no such subclass, and machine init skips a missing class.

test-multi-target already instantiates every QOM type, so this series adds no parent check.

This is an alternative to gating accelerator CPU types with is_available. The RISC-V TCG and KVM gates are reverted here as redundant.

v4: https://lore.kernel.org/qemu-devel/[email protected]/

Changes v4 -> v5:

- Drop test_accel_cpu_parent(). test_qom_types_are_unique() already instantiates every QOM type

Yonggang Luo (3):
accel: register CPU parent only for AccelCPU subclasses Revert "target/riscv/kvm: restrict kvm-accel-riscv-cpu to riscv
targets"
Revert "target/riscv/tcg: restrict tcg-accel-riscv-cpu to riscv
targets"

 accel/accel-common.c       | 6 ++----
 include/accel/accel-cpu.h  | 2 ++
 target/arm/cpu.c           | 2 ++
 target/i386/cpu.c          | 2 ++
 target/ppc/cpu_init.c      | 2 ++
 target/riscv/cpu.c         | 8 ++++++++
 target/riscv/kvm/kvm-cpu.c | 2 --
 target/riscv/tcg/tcg-cpu.c | 1 -
 8 files changed, 18 insertions(+), 7 deletions(-)
Signature · 1 line
2.55.0.windows.3