hw/i386/pc: Use qdev_prop_set_array()
commit33f0c061287fcb8c4ae97802374a6208778684a4
authorKevin Wolf <kwolf@redhat.com>
Thu, 9 Nov 2023 17:42:30 +0000 (9 18:42 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 10 Nov 2023 17:19:07 +0000 (10 18:19 +0100)
treea17f273a2ed73715ee155cc957a1743bda770dfd
parentea10c3817814b8be75be22c78ea91d633b0d2532
hw/i386/pc: Use qdev_prop_set_array()

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 <kwolf@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-ID: <20231109174240.72376-2-kwolf@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/i386/pc.c