From: Edgar E. Iglesias Date: Thu, 13 Feb 2014 05:07:14 +0000 (+1000) Subject: cpu: Don't clear cpu->exit_request on reset X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9d111183d5d67be6252dd4a4e688ef4ad323f817;p=qemu.git cpu: Don't clear cpu->exit_request on reset cpu->exit_request is part of the execution environment and should not be cleared when a CPU resets. Otherwise, we might deadlock QEMU if a CPU resets while there is I/O going on. Signed-off-by: Edgar E. Iglesias Reviewed-by: Peter Maydell Signed-off-by: Andreas Färber --- diff --git a/qom/cpu.c b/qom/cpu.c index 9d62479546..40d82dd178 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -195,7 +195,6 @@ static void cpu_common_reset(CPUState *cpu) log_cpu_state(cpu, cc->reset_dump_flags); } - cpu->exit_request = 0; cpu->interrupt_request = 0; cpu->current_tb = NULL; cpu->halted = 0;