[PATCH 0/2] cpu: Avoid latent bug calling cpu_reset() on uninitialized vCPU

Philippe Mathieu-Daudé posted 2 patches 5 years, 8 months ago
Test docker-quick@centos7 passed
Test checkpatch passed
Test docker-clang@ubuntu passed
Test FreeBSD passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200309121103.20234-1-philmd@redhat.com
Maintainers: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Aleksandar Rikalo <aleksandar.rikalo@rt-rk.com>, Aurelien Jarno <aurelien@aurel32.net>, Eduardo Habkost <ehabkost@redhat.com>, Michael Walle <michael@walle.cc>, "Edgar E. Iglesias" <edgar.iglesias@gmail.com>, Aleksandar Markovic <amarkovic@wavecomp.com>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de>, Laurent Vivier <laurent@vivier.eu>
hw/core/cpu.c        | 1 +
target/cris/cpu.c    | 2 +-
target/lm32/cpu.c    | 3 +--
target/m68k/cpu.c    | 2 +-
target/mips/cpu.c    | 2 +-
target/sh4/cpu.c     | 2 +-
target/tilegx/cpu.c  | 2 +-
target/tricore/cpu.c | 2 +-
8 files changed, 8 insertions(+), 8 deletions(-)
[PATCH 0/2] cpu: Avoid latent bug calling cpu_reset() on uninitialized vCPU
Posted by Philippe Mathieu-Daudé 5 years, 8 months ago
Two trivial patches to avoid each (new) architecture to track
a bug already resolved once on ARM: cpu_reset() modify fields
in the CpuState while the state is not yet allocated.

Philippe Mathieu-Daudé (2):
  cpu: Do not reset a vCPU before it is created
  cpu: Assert a vCPU is created before resetting it

 hw/core/cpu.c        | 1 +
 target/cris/cpu.c    | 2 +-
 target/lm32/cpu.c    | 3 +--
 target/m68k/cpu.c    | 2 +-
 target/mips/cpu.c    | 2 +-
 target/sh4/cpu.c     | 2 +-
 target/tilegx/cpu.c  | 2 +-
 target/tricore/cpu.c | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

-- 
2.21.1