]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/core: Introduce device_class_set_props_n
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Dec 2024 13:42:40 +0000 (07:42 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Dec 2024 18:33:37 +0000 (19:33 +0100)
commitcb9f4b28ee115f14f336a4a87c593fa1685e42df
tree62989ff2f6bfad05b86c9cc44b1713cf34289111
parent588611972f774cacf2e15c73e3d61b54929c0528
hw/core: Introduce device_class_set_props_n

Record the size of the array in DeviceClass.props_count_.
Iterate with known count in qdev_prop_walk.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Lei Yang <leiyang@redhat.com>
Link: https://lore.kernel.org/r/20241218134251.4724-14-richard.henderson@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/core/qdev-properties.c
hw/core/qdev.c
include/hw/qdev-core.h
system/qdev-monitor.c