The getter and setter use visit_type_int64, not visit_type_int.
Fixes: 432d889e55e2 ("block: convert ThrottleGroup to object with QOM")
Reviewed-by: Mark Cave-Ayland <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
---
block/throttle-groups.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/block/throttle-groups.c b/block/throttle-groups.c
index 805e47270c7e..2dfd9d62aacd 100644
--- a/block/throttle-groups.c
+++ b/block/throttle-groups.c
@@ -984,7 +984,7 @@ static void throttle_group_obj_class_init(ObjectClass
*klass,
for (i = 0; i < sizeof(properties) / sizeof(ThrottleParamInfo); i++) {
object_class_property_add(klass,
properties[i].name,
- "int",
+ "int64",
throttle_group_get,
throttle_group_set,
NULL, &properties[i]);
--
2.55.0.543.g5ebe2ebe4ea8