|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 13/15] vl.c: Introduce getter for shutdown_requested
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 a1f6466..7facfae 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 dd88806..3316063 100644
--- a/vl.c
+++ b/vl.c
@@ -1130,6 +1130,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.0.4
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH 06/15] xen: Add the Xen platform pci device, (continued)
- [Xen-devel] [PATCH 06/15] xen: Add the Xen platform pci device, stefano . stabellini
- [Xen-devel] [PATCH 08/15] xen: Read and write the state of the VM in xenstore, stefano . stabellini
- [Xen-devel] [PATCH 03/15] xen: Add a new target to qemu: target-xen, stefano . stabellini
- [Xen-devel] [PATCH 09/15] xen: Initialize event channels and io rings, stefano . stabellini
- [Xen-devel] [PATCH 10/15] xen: Introduce the Xen mapcache, stefano . stabellini
- [Xen-devel] [PATCH 11/15] xen: Introduce --enable-xen command options., stefano . stabellini
- [Xen-devel] [PATCH 12/15] piix_pci: Introduces Xen specific call for irq., stefano . stabellini
- [Xen-devel] [PATCH 13/15] vl.c: Introduce getter for shutdown_requested and reset_requested.,
stefano . stabellini <=
- [Xen-devel] [PATCH 14/15] xen: destroy the VM when shutdown is requested, stefano . stabellini
- [Xen-devel] [PATCH 15/15] xen: Add a Xen specific ACPI Implementation to target-xen, stefano . stabellini
|
|
|
|
|