Re: [PATCH v2 12/12] qdev: Rework array properties based on list visitor

2023-11-03 Thread Eric Blake
On Mon, Oct 30, 2023 at 03:26:58PM +0100, Kevin Wolf wrote: > Until now, array properties are actually implemented with a hack that > uses multiple properties on the QOM level: a static "foo-len" property > and after it is set, dynamically created "foo[i]" properties. > > In external interfaces (-

Re: [PATCH v2 12/12] qdev: Rework array properties based on list visitor

2023-11-02 Thread Markus Armbruster
Kevin Wolf writes: > Until now, array properties are actually implemented with a hack that > uses multiple properties on the QOM level: a static "foo-len" property > and after it is set, dynamically created "foo[i]" properties. > > In external interfaces (-device on the command line and device_ad

Re: [PATCH v2 12/12] qdev: Rework array properties based on list visitor

2023-10-31 Thread Kevin Wolf
Am 30.10.2023 um 21:48 hat Mark Cave-Ayland geschrieben: > On 30/10/2023 14:26, Kevin Wolf wrote: > > > Until now, array properties are actually implemented with a hack that > > uses multiple properties on the QOM level: a static "foo-len" property > > and after it is set, dynamically created "foo

Re: [PATCH v2 12/12] qdev: Rework array properties based on list visitor

2023-10-30 Thread Mark Cave-Ayland
On 30/10/2023 14:26, Kevin Wolf wrote: Until now, array properties are actually implemented with a hack that uses multiple properties on the QOM level: a static "foo-len" property and after it is set, dynamically created "foo[i]" properties. In external interfaces (-device on the command line a

[PATCH v2 12/12] qdev: Rework array properties based on list visitor

2023-10-30 Thread Kevin Wolf
Until now, array properties are actually implemented with a hack that uses multiple properties on the QOM level: a static "foo-len" property and after it is set, dynamically created "foo[i]" properties. In external interfaces (-device on the command line and device_add in QMP), this interface was