summaryrefslogtreecommitdiffstats
path: root/include/sysemu/accel.h
diff options
context:
space:
mode:
authorIan Jackson2018-03-09 13:02:50 +0100
committerIan Jackson2018-04-26 17:29:50 +0200
commit7a64c17f3b3015bf741593a019538275c764455f (patch)
tree09c3edbbe780fe0efb2049a58f18322a61e8b23a /include/sysemu/accel.h
parentcheckpatch: Add xendevicemodel_handle to the list of types (diff)
downloadqemu-7a64c17f3b3015bf741593a019538275c764455f.tar.gz
qemu-7a64c17f3b3015bf741593a019538275c764455f.tar.xz
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 'include/sysemu/accel.h')
-rw-r--r--include/sysemu/accel.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sysemu/accel.h b/include/sysemu/accel.h
index 5a632cee1d..637358f430 100644
--- a/include/sysemu/accel.h
+++ b/include/sysemu/accel.h
@@ -40,6 +40,7 @@ typedef struct AccelClass {
const char *name;
int (*available)(void);
int (*init_machine)(MachineState *ms);
+ void (*setup_post)(MachineState *ms, AccelState *accel);
bool *allowed;
/*
* Array of global properties that would be applied when specific
@@ -68,5 +69,7 @@ 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);
#endif