diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-11-26 22:04:32 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-01-07 16:18:41 +0400 |
commit | ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f (patch) | |
tree | 927bdc1c7297f53a40ea456884ebde99e60c39c3 /accel | |
parent | e59dbbac0364344a3ad84c3497a98c56003d3fb8 (diff) | |
download | qemu-ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f.zip qemu-ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f.tar.gz qemu-ea9ce8934c5d2cc8925359a6d8d45eb829a9f27f.tar.bz2 |
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 'accel')
-rw-r--r-- | accel/accel.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/accel/accel.c b/accel/accel.c index 3da26eb..6db5d8f 100644 --- a/accel/accel.c +++ b/accel/accel.c @@ -119,18 +119,6 @@ void configure_accelerator(MachineState *ms) } } -void accel_register_compat_props(AccelState *accel) -{ - AccelClass *class = ACCEL_GET_CLASS(accel); - GlobalProperty *prop = class->global_props; - - for (; prop && prop->driver; prop++) { - /* Any compat_props must never cause error */ - prop->errp = &error_abort; - qdev_prop_register_global(prop); - } -} - void accel_setup_post(MachineState *ms) { AccelState *accel = ms->accelerator; |