diff options
author | Jes Sorensen <jes@sgi.com> | 2008-11-14 16:51:04 +0100 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-11-18 16:12:58 +0200 |
commit | 66b04e7c01aae7773d978a19c4c195276ecc8feb (patch) | |
tree | e65a19a56c65cb4986547ca94c00967b460d81b0 /qemu-common.h | |
parent | Remove unnecessary bool from qemu-kvm.c (diff) | |
download | qemu-kvm-66b04e7c01aae7773d978a19c4c195276ecc8feb.tar.gz qemu-kvm-66b04e7c01aae7773d978a19c4c195276ecc8feb.tar.bz2 qemu-kvm-66b04e7c01aae7773d978a19c4c195276ecc8feb.zip |
Fold vcpu_info into CPUState
Move contents of struct vcpu_info directly into CPU_COMMON. Rename
struct qemu_kvm_work_item to qemu_work_item as it really isn't KVM
specific.
This eliminates the ugly static sized array of struct vcpu_info.
Signed-off-by: Jes Sorensen <jes@sgi.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 aa6ab7ac6..45d477dea 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -152,4 +152,12 @@ struct pcmcia_card_s; void cpu_save(QEMUFile *f, void *opaque); int cpu_load(QEMUFile *f, void *opaque, int version_id); +/* work queue */ +struct qemu_work_item { + struct qemu_work_item *next; + void (*func)(void *data); + void *data; + int done; +}; + #endif |