qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] qom/cpu: Remove cpu->exit_request from reset state
@ 2014-02-13  5:07 edgar.iglesias
  2014-02-15 15:42 ` Peter Maydell
  0 siblings, 1 reply; 11+ messages in thread
From: edgar.iglesias @ 2014-02-13  5:07 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.maydell, afaerber, pcrost

From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

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 <edgar.iglesias@xilinx.com>
---
 qom/cpu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/qom/cpu.c b/qom/cpu.c
index 9d62479..40d82dd 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;
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-03-12  1:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-13  5:07 [Qemu-devel] [PATCH] qom/cpu: Remove cpu->exit_request from reset state edgar.iglesias
2014-02-15 15:42 ` Peter Maydell
2014-02-16  2:07   ` Edgar E. Iglesias
2014-02-20 15:58     ` Peter Maydell
2014-02-20 16:15       ` Andreas Färber
2014-02-20 16:34         ` Peter Maydell
2014-02-20 23:26       ` Edgar E. Iglesias
2014-02-20 23:50         ` Peter Maydell
2014-03-11 23:58       ` Andreas Färber
2014-03-12  0:03         ` Peter Maydell
2014-03-12  1:51           ` Edgar E. Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).