Skip to content

RFC hw/ppc/e500: Pass array of CPUs as array of canonical QOM paths

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest5 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5qdev: Add qdev_prop_set_array()hw/core/qdev-properties.c include/hw/qdev-properties.h+24 -00 replies
2/5hw/ppc/e500: Declare CPU QOM types using DEFINE_TYPES() macrohw/ppc/ppce500_spin.c+9 -122 replies
3/5hw/ppc/e500: QOM-attach CPUs to the machine containerhw/ppc/e500.c+1 -04 replies
4/5hw/ppc/e500: Inline sysbus_create_simple(E500_SPIN)hw/ppc/e500.c+3 -11 reply
5/5hw/ppc/e500: Pass array of CPUs as array of canonical QOM pathshw/ppc/e500.c hw/ppc/ppce500_spin.c+47 -73 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchPeter MaydellMarkus ArmbrusterPhilippe Mathieu-DaudéDaniel Henrique Barboza
1/5R-b R-b T-b
2/5R-b
3/5R-b
4/5R-b
5/5Inspired-by Inspired-by

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 v1 thread

Cover letter [RFC PATCH 0/5] hw/ppc/e500: Pass array of CPUs as array of canonical QOM paths

Following the discussion with Peter on my "cpus: Step toward removing global 'first_cpu'" series [*], we now pass the array of CPUs via property. Since we can not pass array of "link" properties, we pass the QOM path of each CPU as a QList(String).

Tagged as RFC to discuss the idea of using qdev_prop_set_array with qlist_append_str(object_get_canonical_path). Personally I find it super simple.

Regards,

Phil.

[*] https://lore.kernel.org/qemu-devel/CAFEAcA9FT+QMyQSLCeLjd7tEfaoS9JazmkYWQE++s1AmF7Nfvw@mail.gmail.com/

Kevin Wolf (1):
qdev: Add qdev_prop_set_array()

Philippe Mathieu-Daudé (4):
hw/ppc/e500: Declare CPU QOM types using DEFINE_TYPES() macro hw/ppc/e500: QOM-attach CPUs to the machine container hw/ppc/e500: Inline sysbus_create_simple(E500_SPIN) hw/ppc/e500: Pass array of CPUs as array of canonical QOM paths

 include/hw/qdev-properties.h |  3 ++
 hw/core/qdev-properties.c    | 21 +++++++++++
 hw/ppc/e500.c                | 11 +++++-
 hw/ppc/ppce500_spin.c        | 69 ++++++++++++++++++++++++++----------
 4 files changed, 84 insertions(+), 20 deletions(-)
Signature · 1 line
2.41.0