|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-devel
[Xen-devel] [PATCH V15 15/18] vl.c: Introduce getter for	shutdown_reques 
| From: Anthony PERARD <anthony.perard@xxxxxxxxxx>
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 <anthony.perard@xxxxxxxxxx>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Acked-by: Alexander Graf <agraf@xxxxxxx>
---
 sysemu.h |    2 ++
 vl.c     |   10 ++++++++++
 2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/sysemu.h b/sysemu.h
index b0296a0..7e70daa 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -42,6 +42,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 3ed6855..bffba69 100644
--- a/vl.c
+++ b/vl.c
@@ -1161,6 +1161,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.5
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-devel] [PATCH V15 03/18] xen: Support new libxc calls from xen	unstable., (continued)
[Xen-devel] [PATCH V15 03/18] xen: Support new libxc calls from xen	unstable., anthony.perard
[Xen-devel] [PATCH V15 06/18] xen: Add xenfv machine, anthony.perard
[Xen-devel] [PATCH V15 01/18] xen: Replace some tab-indents with	spaces (clean-up)., anthony.perard
[Xen-devel] [PATCH V15 07/18] pc,	Disable vmport initialisation with Xen., anthony.perard
[Xen-devel] [PATCH V15 09/18] xen: Introduce Xen Interrupt	Controller, anthony.perard
[Xen-devel] [PATCH V15 08/18] piix_pci: Introduces Xen specific	call for irq., anthony.perard
[Xen-devel] [PATCH V15 12/18] Introduce qemu_put_ram_ptr, anthony.perard
[Xen-devel] [PATCH V15 11/18] xen: Adds a cap to the number of map	cache entries., anthony.perard
[Xen-devel] [PATCH V15 10/18] xen: Introduce the Xen mapcache, anthony.perard
[Xen-devel] [PATCH V15 13/18] configure: Always use 64bits target	physical addresses with xen enabled., anthony.perard
[Xen-devel] [PATCH V15 15/18] vl.c: Introduce getter for	shutdown_requested and reset_requested.,
anthony.perard <=
[Xen-devel] [PATCH V15 14/18] pci: Use of qemu_put_ram_ptr in	pci_add_option_rom., anthony.perard
[Xen-devel] [PATCH V15 17/18] xen: Set running state in xenstore., anthony.perard
[Xen-devel] [PATCH V15 16/18] xen: Initialize event channels and io	rings, anthony.perard
[Xen-devel] [PATCH V15 18/18] xen: Add Xen hypercall for sleep	state in the cmos_s3 callback., anthony.perard
[Xen-devel] Re: [PATCH V15 00/18] Xen device model support, Alexander Graf
 |  |  | 
  
    |  |  |