aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-09 08:42:19 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-09 08:42:19 +0000
commitd9c3231019a0fbacbe15dcb26a0e3708b726af77 (patch)
treef00d2747772fbf49fcc46cefcd8f30bec97154a2 /vl.c
parentb2b6f6ec3996925ebc85e77c5ac31ff34e8783f6 (diff)
downloadqemu-d9c3231019a0fbacbe15dcb26a0e3708b726af77.zip
qemu-d9c3231019a0fbacbe15dcb26a0e3708b726af77.tar.gz
qemu-d9c3231019a0fbacbe15dcb26a0e3708b726af77.tar.bz2
Use qemu_irq for system_powerdown
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index fdd4f03..a526cb0 100644
--- a/vl.c
+++ b/vl.c
@@ -4281,6 +4281,8 @@ static int vm_can_run(void)
return 1;
}
+qemu_irq qemu_system_powerdown;
+
static void main_loop(void)
{
int r;
@@ -4321,8 +4323,9 @@ static void main_loop(void)
qemu_system_reset();
resume_all_vcpus();
}
- if (qemu_powerdown_requested())
- qemu_system_powerdown();
+ if (qemu_powerdown_requested()) {
+ qemu_irq_raise(qemu_system_powerdown);
+ }
if ((r = qemu_vmstop_requested()))
vm_stop(r);
}