diff options
author | Ian Jackson <ian.jackson@eu.citrix.com> | 2018-03-09 12:02:50 +0000 |
---|---|---|
committer | Ian Jackson <Ian.Jackson@eu.citrix.com> | 2018-04-26 16:29:50 +0100 |
commit | 7a64c17f3b3015bf741593a019538275c764455f (patch) | |
tree | 09c3edbbe780fe0efb2049a58f18322a61e8b23a /accel/accel.c | |
parent | 5ac067a24a85fec57d2d87b2d12ae4ffa6aa2d9e (diff) | |
download | qemu-7a64c17f3b3015bf741593a019538275c764455f.zip |
AccelClass: Introduce accel_setup_post
This is called just before os_setup_post. Currently none of the
accelerators provide this hook, but the Xen one is going to provide
one in a moment.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'accel/accel.c')
-rw-r--r-- | accel/accel.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/accel/accel.c b/accel/accel.c index 93e2434c87..9cfab115d0 100644 --- a/accel/accel.c +++ b/accel/accel.c @@ -126,6 +126,15 @@ void accel_register_compat_props(AccelState *accel) register_compat_props_array(class->global_props); } +void accel_setup_post(MachineState *ms) +{ + AccelState *accel = ms->accelerator; + AccelClass *acc = ACCEL_GET_CLASS(accel); + if (acc->setup_post) { + acc->setup_post(ms, accel); + } +} + static void register_accel_types(void) { type_register_static(&accel_type); |