|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH V8 13/16] vl.c: Introduce getter for shutdown_request
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>
---
sysemu.h | 2 ++
vl.c | 10 ++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/sysemu.h b/sysemu.h
index b81a70e..fd3adba 100644
--- a/sysemu.h
+++ b/sysemu.h
@@ -51,6 +51,8 @@ void cpu_disable_ticks(void);
void qemu_system_reset_request(void);
void qemu_system_shutdown_request(void);
void qemu_system_powerdown_request(void);
+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 955e579..29f7801 100644
--- a/vl.c
+++ b/vl.c
@@ -1111,6 +1111,16 @@ static int powerdown_requested;
int debug_requested;
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.1
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH V8 00/16] Xen device model support, anthony . perard
- [Xen-devel] [PATCH V8 02/16] xen: Make xen build only on x86 target., anthony . perard
- [Xen-devel] [PATCH V8 03/16] xen: Add a generic layer for xc calls, anthony . perard
- [Xen-devel] [PATCH V8 11/16] configure: Always use 64bits target physical addresses with xen enabled., anthony . perard
- [Xen-devel] [PATCH V8 09/16] xen: add a 8259 Interrupt Controller, anthony . perard
- [Xen-devel] [PATCH V8 08/16] piix_pci: Introduces Xen specific call for irq., anthony . perard
- [Xen-devel] [PATCH V8 13/16] vl.c: Introduce getter for shutdown_requested and reset_requested.,
anthony . perard <=
- [Xen-devel] [PATCH V8 10/16] xen: Introduce the Xen mapcache, anthony . perard
- [Xen-devel] [PATCH V8 05/16] xen: Add xen_machine_fv, anthony . perard
- [Xen-devel] [PATCH V8 07/16] xen: Add the Xen platform pci device, anthony . perard
- [Xen-devel] [PATCH V8 06/16] xen: Add initialisation of Xen, anthony . perard
- [Xen-devel] [PATCH V8 12/16] Introduce qemu_ram_ptr_unlock., anthony . perard
- [Xen-devel] [PATCH V8 04/16] xen: Support new libxc calls from xen unstable., anthony . perard
- [Xen-devel] [PATCH V8 14/16] xen: Initialize event channels and io rings, anthony . perard
- [Xen-devel] [PATCH V8 01/16] xen: Replace some tab-indents with spaces (clean-up)., anthony . perard
- [Xen-devel] [PATCH V8 15/16] xen: Set running state in xenstore., anthony . perard
- [Xen-devel] [PATCH V8 16/16] acpi-piix4: Add Xen hypercall for sleep state., anthony . perard
|
|
|
|
|