Re: [PATCH 02/11] hw/i386/pc: Use qdev_prop_set_array()

2023-09-19 Thread Markus Armbruster
Peter Maydell writes: > On Mon, 11 Sept 2023 at 17:42, Kevin Wolf wrote: >> >> Am 11.09.2023 um 17:42 hat Peter Maydell geschrieben: >> > On Fri, 8 Sept 2023 at 15:37, Kevin Wolf wrote: >> > > >> > > Instead of manually setting "foo-len" and "foo[i]" properties, build a >> > > QList and use the

Re: [PATCH 02/11] hw/i386/pc: Use qdev_prop_set_array()

2023-09-12 Thread Peter Maydell
On Mon, 11 Sept 2023 at 17:42, Kevin Wolf wrote: > > Am 11.09.2023 um 17:42 hat Peter Maydell geschrieben: > > On Fri, 8 Sept 2023 at 15:37, Kevin Wolf wrote: > > > > > > Instead of manually setting "foo-len" and "foo[i]" properties, build a > > > QList and use the new qdev_prop_set_array() helpe

Re: [PATCH 02/11] hw/i386/pc: Use qdev_prop_set_array()

2023-09-11 Thread Kevin Wolf
Am 11.09.2023 um 17:42 hat Peter Maydell geschrieben: > On Fri, 8 Sept 2023 at 15:37, Kevin Wolf wrote: > > > > Instead of manually setting "foo-len" and "foo[i]" properties, build a > > QList and use the new qdev_prop_set_array() helper to set the whole > > array property with a single call. > >

Re: [PATCH 02/11] hw/i386/pc: Use qdev_prop_set_array()

2023-09-11 Thread Peter Maydell
On Fri, 8 Sept 2023 at 15:37, Kevin Wolf wrote: > > Instead of manually setting "foo-len" and "foo[i]" properties, build a > QList and use the new qdev_prop_set_array() helper to set the whole > array property with a single call. > > Signed-off-by: Kevin Wolf > --- > hw/i386/pc.c | 8 +--- >

[PATCH 02/11] hw/i386/pc: Use qdev_prop_set_array()

2023-09-08 Thread Kevin Wolf
Instead of manually setting "foo-len" and "foo[i]" properties, build a QList and use the new qdev_prop_set_array() helper to set the whole array property with a single call. Signed-off-by: Kevin Wolf --- hw/i386/pc.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/