[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH V12 14/17] vl.c: Introduce getter for shutdown_reque
From: |
anthony . perard |
Subject: |
[Qemu-devel] [PATCH V12 14/17] vl.c: Introduce getter for shutdown_requested and reset_requested. |
Date: |
Tue, 29 Mar 2011 19:28:07 +0100 |
From: Anthony PERARD <address@hidden>
Introduce two functions qemu_shutdown_requested_get and
qemu_reset_requested_get to get the value of shutdown/reset_requested
without reset it.
Signed-off-by: Anthony PERARD <address@hidden>
Signed-off-by: Stefano Stabellini <address@hidden>
Acked-by: Alexander Graf <address@hidden>
---
sysemu.h | 2 ++
vl.c | 10 ++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/sysemu.h b/sysemu.h
index bbbd0fd..3d4be78 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -63,6 +63,8 @@ void qemu_system_shutdown_request(void);
void qemu_system_powerdown_request(void);
void qemu_system_debug_request(void);
void qemu_system_vmstop_request(int reason);
+int qemu_shutdown_requested_get(void);
+int qemu_reset_requested_get(void);
int qemu_shutdown_requested(void);
int qemu_reset_requested(void);
int qemu_powerdown_requested(void);
diff --git a/vl.c b/vl.c
index 5ba1eb9..60ec6de 100644
--- a/vl.c
+++ b/vl.c
@@ -1223,6 +1223,16 @@ static int powerdown_requested;
static int debug_requested;
static int vmstop_requested;
+int qemu_shutdown_requested_get(void)
+{
+ return shutdown_requested;
+}
+
+int qemu_reset_requested_get(void)
+{
+ return reset_requested;
+}
+
int qemu_shutdown_requested(void)
{
int r = shutdown_requested;
--
1.7.2.3
- [Qemu-devel] [PATCH V12 05/17] xen: Add xenfv machine, (continued)
- [Qemu-devel] [PATCH V12 05/17] xen: Add xenfv machine, anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 03/17] xen: Support new libxc calls from xen unstable., anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 06/17] xen: Add the Xen platform pci device, anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 07/17] piix_pci: Introduces Xen specific call for irq., anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 08/17] xen: Introduce Xen Interrupt Controller, anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 01/17] xen: Replace some tab-indents with spaces (clean-up)., anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 11/17] configure: Always use 64bits target physical addresses with xen enabled., anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 09/17] xen: Introduce the Xen mapcache, anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 12/17] Introduce qemu_put_ram_ptr, anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 10/17] xen: Adds a cap to the number of map cache entries., anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 14/17] vl.c: Introduce getter for shutdown_requested and reset_requested.,
anthony . perard <=
- [Qemu-devel] [PATCH V12 13/17] pci: Use of qemu_put_ram_ptr in pci_add_option_rom., anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 16/17] xen: Set running state in xenstore., anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 15/17] xen: Initialize event channels and io rings, anthony . perard, 2011/03/29
- [Qemu-devel] [PATCH V12 17/17] xen: Add Xen hypercall for sleep state in the cmos_s3 callback., anthony . perard, 2011/03/29
- [Qemu-devel] Re: [PATCH V12 00/17] Xen device model support, Alexander Graf, 2011/03/30
- [Qemu-devel] Re: [Xen-devel] [PATCH V12 00/17] Xen device model support, Anthony PERARD, 2011/03/31