diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2010-05-04 09:45:22 -0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-05-11 14:02:22 -0300 |
commit | e82bcec25f19846bfb899d55c9fb5915516b378a (patch) | |
tree | e21a22e8529539bf667def994e110fe15d6f5bc4 /qemu-common.h | |
parent | 1fbb22e5f8be9f7793251e5258b23936643f677c (diff) |
port qemu-kvm's on_vcpu code
run_on_cpu allows to execute work on a given CPUState context.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index 4ba0cdad0..a4888e5e5 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -249,6 +249,14 @@ void qemu_notify_event(void); void qemu_cpu_kick(void *env); int qemu_cpu_self(void *env); +/* work queue */ +struct qemu_work_item { + struct qemu_work_item *next; + void (*func)(void *data); + void *data; + int done; +}; + #ifdef CONFIG_USER_ONLY #define qemu_init_vcpu(env) do { } while (0) #else |