summaryrefslogtreecommitdiffstats
path: root/include/qom
diff options
context:
space:
mode:
authorMarc-André Lureau2018-11-26 19:04:32 +0100
committerMarc-André Lureau2019-01-07 13:18:41 +0100
commitea9ce8934c5d2cc8925359a6d8d45eb829a9f27f (patch)
tree927bdc1c7297f53a40ea456884ebde99e60c39c3 /include/qom
parentMerge remote-tracking branch 'remotes/philmd/tags/fw_cfg-20190104-pull-reques... (diff)
downloadqemu-ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f.tar.gz
qemu-ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f.tar.xz
qemu-ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f.zip
hw: apply accel compat properties without touching globals
Instead of registering compat properties as globals, let's keep them in their own array, to avoid mixing with user globals. Introduce object_apply_global_props() function, to apply compatibility properties from a GPtrArray. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'include/qom')
-rw-r--r--include/qom/object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/qom/object.h b/include/qom/object.h
index bcae3f4951..e0262962b5 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -675,6 +675,9 @@ Object *object_new_with_propv(const char *typename,
Error **errp,
va_list vargs);
+void object_apply_global_props(Object *obj, const GPtrArray *props,
+ Error **errp);
+
/**
* object_set_props:
* @obj: the object instance to set properties on