diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2015-07-10 12:32:32 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-09-09 15:34:55 +0200 |
| commit | 376692b9dc6f02303ee07a4146d08d8727d79c0c (patch) | |
| tree | 4e67dcac05713579e92b0a38935165e3cd2fd4e7 /qom/cpu.c | |
| parent | 0c71d41e2aa3c7356500ae624166f3bb8c201aee (diff) | |
| download | focaccia-qemu-376692b9dc6f02303ee07a4146d08d8727d79c0c.tar.gz focaccia-qemu-376692b9dc6f02303ee07a4146d08d8727d79c0c.zip | |
cpus: protect work list with work_mutex
Protect the list of queued work items with something other than the BQL, as a preparation for running the work items outside it. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qom/cpu.c')
| -rw-r--r-- | qom/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qom/cpu.c b/qom/cpu.c index 02b56f7076..3841f0de5b 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -316,6 +316,7 @@ static void cpu_common_initfn(Object *obj) cpu->cpu_index = -1; cpu->gdb_num_regs = cpu->gdb_num_g_regs = cc->gdb_num_core_regs; + qemu_mutex_init(&cpu->work_mutex); QTAILQ_INIT(&cpu->breakpoints); QTAILQ_INIT(&cpu->watchpoints); } |