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 /cpu-defs.h | |
parent | 1fbb22e5f8be9f7793251e5258b23936643f677c (diff) | |
download | qemu-e82bcec25f19846bfb899d55c9fb5915516b378a.zip qemu-e82bcec25f19846bfb899d55c9fb5915516b378a.tar.gz qemu-e82bcec25f19846bfb899d55c9fb5915516b378a.tar.bz2 |
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 'cpu-defs.h')
-rw-r--r-- | cpu-defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -132,6 +132,7 @@ typedef struct icount_decr_u16 { struct kvm_run; struct KVMState; +struct qemu_work_item; typedef struct CPUBreakpoint { target_ulong pc; @@ -204,6 +205,7 @@ typedef struct CPUWatchpoint { uint32_t created; \ struct QemuThread *thread; \ struct QemuCond *halt_cond; \ + struct qemu_work_item *queued_work_first, *queued_work_last; \ const char *cpu_model_str; \ struct KVMState *kvm_state; \ struct kvm_run *kvm_run; \ |