[PATCH 0/2] qdev: Typed array properties for better QOM introspection

Markus Armbruster posted 2 patches 2 weeks, 4 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20261104083816.1120306-1-armbru@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Phil Dennis-Jordan <phil@philjordan.eu>, Peter Maydell <peter.maydell@linaro.org>, Yoshinori Sato <yoshinori.sato@nifty.com>, Jiri Pirko <jiri@resnulli.us>, Jason Wang <jasowangio@gmail.com>, "Michael S. Tsirkin" <mst@redhat.com>, Alistair Francis <alistair@alistair23.me>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Palmer Dabbelt <palmer@dabbelt.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <daniel.barboza@oss.qualcomm.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Chao Liu <chao.liu@processmission.com>, Eric Auger <eric.auger@redhat.com>
There is a newer version of this series
hw/core/qdev-prop-internal.h             | 19 +++++++
hw/display/apple-gfx.h                   |  1 +
include/hw/block/block.h                 |  2 +-
include/hw/core/qdev-properties-system.h |  2 +
include/hw/core/qdev-properties.h        | 37 +++++++-------
hw/core/qdev-properties-system.c         |  6 +++
hw/core/qdev-properties.c                | 64 ++++++++++++++----------
hw/input/stellaris_gamepad.c             |  2 +-
hw/intc/arm_gicv3_common.c               |  2 +-
hw/intc/arm_gicv5_common.c               |  4 +-
hw/intc/rx_icu.c                         |  4 +-
hw/misc/arm_sysctl.c                     |  4 +-
hw/misc/mps2-scc.c                       |  2 +-
hw/net/rocker/rocker.c                   |  2 +-
hw/net/virtio-net.c                      |  2 +-
hw/nvram/xlnx-efuse.c                    |  2 +-
hw/nvram/xlnx-versal-efuse-ctrl.c        |  2 +-
hw/riscv/riscv_hart.c                    |  6 +--
hw/virtio/virtio-iommu-pci.c             |  2 +-
tests/unit/test-qdev.c                   |  2 +-
hw/display/apple-gfx-mmio.m              |  2 +-
hw/display/apple-gfx-pci.m               |  2 +-
hw/display/apple-gfx.m                   |  6 +++
23 files changed, 110 insertions(+), 67 deletions(-)
[PATCH 0/2] qdev: Typed array properties for better QOM introspection
Posted by Markus Armbruster 2 weeks, 4 days ago
In my "[PATCH v8 RESEND 00/56] qom/qdev: associate properties with
QAPI schema types", I noted under "Changes in v8":

    * Drop typed array PropertyInfos

      Why?  They complicate matters, and I ran out of time.

This series brings them back.  It's an updated version of PATCH 59+60
and a small part of PATCH 61 from Marc-André's v7.

With this applied on top of "[PATCH 0/4] qom/qdev: associate
properties with QAPI types fixups", only child and link properties
lack @qapi-type in my testing.

We could perhaps still include this in 11.2 as a bug fix, but I lean
towards queuing it up in my tree, with me taking care of the eventual
rebase.

Based-on: <20261104064552.959862-1-armbru@redhat.com>

Marc-André Lureau (2):
  qdev: Convert array properties to QAPI-aware registration
  qdev: Remove unused DEFINE_PROP_ARRAY parameter _arraytype

 hw/core/qdev-prop-internal.h             | 19 +++++++
 hw/display/apple-gfx.h                   |  1 +
 include/hw/block/block.h                 |  2 +-
 include/hw/core/qdev-properties-system.h |  2 +
 include/hw/core/qdev-properties.h        | 37 +++++++-------
 hw/core/qdev-properties-system.c         |  6 +++
 hw/core/qdev-properties.c                | 64 ++++++++++++++----------
 hw/input/stellaris_gamepad.c             |  2 +-
 hw/intc/arm_gicv3_common.c               |  2 +-
 hw/intc/arm_gicv5_common.c               |  4 +-
 hw/intc/rx_icu.c                         |  4 +-
 hw/misc/arm_sysctl.c                     |  4 +-
 hw/misc/mps2-scc.c                       |  2 +-
 hw/net/rocker/rocker.c                   |  2 +-
 hw/net/virtio-net.c                      |  2 +-
 hw/nvram/xlnx-efuse.c                    |  2 +-
 hw/nvram/xlnx-versal-efuse-ctrl.c        |  2 +-
 hw/riscv/riscv_hart.c                    |  6 +--
 hw/virtio/virtio-iommu-pci.c             |  2 +-
 tests/unit/test-qdev.c                   |  2 +-
 hw/display/apple-gfx-mmio.m              |  2 +-
 hw/display/apple-gfx-pci.m               |  2 +-
 hw/display/apple-gfx.m                   |  6 +++
 23 files changed, 110 insertions(+), 67 deletions(-)

-- 
2.55.0


Re: [PATCH 0/2] qdev: Typed array properties for better QOM introspection
Posted by Markus Armbruster 2 weeks, 4 days ago
Markus Armbruster <armbru@redhat.com> writes:

> In my "[PATCH v8 RESEND 00/56] qom/qdev: associate properties with
> QAPI schema types", I noted under "Changes in v8":
>
>     * Drop typed array PropertyInfos
>
>       Why?  They complicate matters, and I ran out of time.
>
> This series brings them back.  It's an updated version of PATCH 59+60
> and a small part of PATCH 61 from Marc-André's v7.

Forgot to mention: I managed to do without the QAPI generator changes.

[...]