Skip to contentSkip to conversation

[7248] qemu: introduce iothread (Marcelo Tosatti)

Qemu-devel Anthony Liguori 1 participant 1 message Apr 24, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 7248

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7248
Author:   aliguori
Date:     2009-04-24 18:04:07 +0000 (Fri, 24 Apr 2009)

Log Message:
-----------
qemu: introduce iothread (Marcelo Tosatti)

Fill in the hooks and introduce iothread.

Modified Paths:
--------------
trunk/cpu-defs.h
trunk/vl.c

Modified: trunk/cpu-defs.h
===================================================================

cpu-defs.h +5 -0
@@ -170,6 +170,8 @@
     target_ulong mem_io_vaddr; /* target virtual addr at which the      \
                                      memory was accessed */             \
     uint32_t halted; /* Nonzero if the CPU is in suspend state */       \
+    uint32_t stop;   /* Stop request */                                 \
+    uint32_t stopped; /* Artificially stopped */                        \
     uint32_t interrupt_request;                                         \
     volatile sig_atomic_t exit_request;                                 \
     /* The meaning of the MMU modes is defined in the target code. */   \
@@ -210,6 +212,9 @@
     /* user data */                                                     \
     void *opaque;                                                       \
                                                                         \
+    uint32_t created;                                                   \
+    struct QemuThread *thread;                                          \
+    struct QemuCond *halt_cond;                                         \
     const char *cpu_model_str;                                          \
     struct KVMState *kvm_state;                                         \
     struct kvm_run *kvm_run;                                            \

Modified: trunk/vl.c
===================================================================

vl.c +390 -22

527 lines not on this page · raw message