Process vmstop requests in IO thread

A pending vmstop request is also a reason to leave the inner main loop.
So far we ignored it, and pending stop requests issued over VCPU threads
were simply ignored.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
Jan Kiszka 2011-02-01 22:15:44 +01:00 committed by Marcelo Tosatti
parent b4a3d965de
commit 1745eaaa7c

14
vl.c
View file

@ -1391,15 +1391,11 @@ void main_loop_wait(int nonblocking)
static int vm_can_run(void) static int vm_can_run(void)
{ {
if (powerdown_requested) return !(powerdown_requested ||
return 0; reset_requested ||
if (reset_requested) shutdown_requested ||
return 0; debug_requested ||
if (shutdown_requested) vmstop_requested);
return 0;
if (debug_requested)
return 0;
return 1;
} }
qemu_irq qemu_system_powerdown; qemu_irq qemu_system_powerdown;