| Submitter | Marcelo Tosatti |
|---|---|
| Date | Feb. 14, 2011, 3:22 p.m. |
| Message ID | <1745eaaa7c53c6090d53090d239d0234a7ecfd2d.1297696986.git.mtosatti@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/83123/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/vl.c b/vl.c index 5e3f7f2..30263d6 100644 --- a/vl.c +++ b/vl.c @@ -1391,15 +1391,11 @@ void main_loop_wait(int nonblocking) static int vm_can_run(void) { - if (powerdown_requested) - return 0; - if (reset_requested) - return 0; - if (shutdown_requested) - return 0; - if (debug_requested) - return 0; - return 1; + return !(powerdown_requested || + reset_requested || + shutdown_requested || + debug_requested || + vmstop_requested); } qemu_irq qemu_system_powerdown;