diff options
author | Marc-André Lureau | 2018-11-26 19:04:32 +0100 |
---|---|---|
committer | Marc-André Lureau | 2019-01-07 13:18:41 +0100 |
commit | ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f (patch) | |
tree | 927bdc1c7297f53a40ea456884ebde99e60c39c3 /include/sysemu/accel.h | |
parent | Merge remote-tracking branch 'remotes/philmd/tags/fw_cfg-20190104-pull-reques... (diff) | |
download | qemu-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/sysemu/accel.h')
-rw-r--r-- | include/sysemu/accel.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/sysemu/accel.h b/include/sysemu/accel.h index 637358f430..f331d128e9 100644 --- a/include/sysemu/accel.h +++ b/include/sysemu/accel.h @@ -49,7 +49,7 @@ typedef struct AccelClass { * global properties may be overridden by machine-type * compat_props or user-provided global properties. */ - GlobalProperty *global_props; + GPtrArray *compat_props; } AccelClass; #define TYPE_ACCEL "accel" @@ -67,8 +67,6 @@ typedef struct AccelClass { extern unsigned long tcg_tb_size; void configure_accelerator(MachineState *ms); -/* Register accelerator specific global properties */ -void accel_register_compat_props(AccelState *accel); /* Called just before os_setup_post (ie just before drop OS privs) */ void accel_setup_post(MachineState *ms); |