]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Use device_class_set_props_n
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Dec 2024 13:42:41 +0000 (07:42 -0600)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Dec 2024 18:33:37 +0000 (19:33 +0100)
commit0017f5713a20a2b6f42c3d5c255c4ab066cdcd87
tree4e2c7bf3e48f07438138d51aafb51b0bba18eeaa
parentcb9f4b28ee115f14f336a4a87c593fa1685e42df
migration: Use device_class_set_props_n

Export the migration_properties array size from options.c;
use that to feed device_class_set_props_n.  We must remove
DEFINE_PROP_END_OF_LIST so the count is correct.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Lei Yang <leiyang@redhat.com>
Link: https://lore.kernel.org/r/20241218134251.4724-15-richard.henderson@linaro.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
migration/migration.c
migration/options.c
migration/options.h