[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 04/34] cpus: properly inititalize CPU > 1 under singl
From: |
Paolo Bonzini |
Subject: |
[Qemu-devel] [PULL 04/34] cpus: properly inititalize CPU > 1 under single-threaded TCG |
Date: |
Tue, 6 Mar 2018 14:19:00 +0100 |
From: David Hildenbrand <address@hidden>
All but the first CPU are currently not fully inititalized (e.g.
cpu->created is never set).
Signed-off-by: David Hildenbrand <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Paolo Bonzini <address@hidden>
---
cpus.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/cpus.c b/cpus.c
index 4f5f88e..970390b 100644
--- a/cpus.c
+++ b/cpus.c
@@ -1863,6 +1863,9 @@ static void qemu_tcg_init_vcpu(CPUState *cpu)
/* For non-MTTCG cases we share the thread */
cpu->thread = single_tcg_cpu_thread;
cpu->halt_cond = single_tcg_halt_cond;
+ cpu->thread_id = first_cpu->thread_id;
+ cpu->can_do_io = 1;
+ cpu->created = true;
}
}
--
1.8.3.1
- [Qemu-devel] [PULL 00/34] Misc patches for 2018-03-06, Paolo Bonzini, 2018/03/06
- [Qemu-devel] [PULL 05/34] cpus: wait for CPU creation at central place, Paolo Bonzini, 2018/03/06
- [Qemu-devel] [PULL 04/34] cpus: properly inititalize CPU > 1 under single-threaded TCG,
Paolo Bonzini <=
- [Qemu-devel] [PULL 01/34] g364fb: fix DirtyBitmapSnapshot leak, Paolo Bonzini, 2018/03/06
- [Qemu-devel] [PULL 02/34] Remove the deprecated -tdf option, Paolo Bonzini, 2018/03/06
- [Qemu-devel] [PULL 07/34] Document --rtc-td-hack, --localtime and --startdate as deprecated, Paolo Bonzini, 2018/03/06
- [Qemu-devel] [PULL 03/34] scsi: Remove automatic creation of SCSI controllers with -drive if=scsi, Paolo Bonzini, 2018/03/06
- [Qemu-devel] [PULL 11/34] lockable: workaround GCC link issue with ASAN, Paolo Bonzini, 2018/03/06
- [Qemu-devel] [PULL 10/34] build-sys: fix -fsanitize=address check, Paolo Bonzini, 2018/03/06
- [Qemu-devel] [PULL 08/34] qmp: Merge ObjectPropertyInfo and DevicePropertyInfo, Paolo Bonzini, 2018/03/06
- [Qemu-devel] [PULL 06/34] cpus: CPU threads are always created initially for one CPU only, Paolo Bonzini, 2018/03/06