diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-01-25 13:28:25 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-01-25 13:28:25 +0000 |
commit | 961f9b1fc95c51ed8f076782835d148b040d0005 (patch) | |
tree | bd91a386df38715f661271725aef02b5ba079113 /tools/libxen | |
parent | bb09427c71cd621637565fb906c2114a2a6878cf (diff) | |
download | xen-961f9b1fc95c51ed8f076782835d148b040d0005.tar.gz xen-961f9b1fc95c51ed8f076782835d148b040d0005.tar.bz2 xen-961f9b1fc95c51ed8f076782835d148b040d0005.zip |
(Re)introduce notion of crashed VM power state.
The crashed power state is necessary to allow both core-dumping a
crashed but preserved VM and renaming/restarting a crashed VM.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Diffstat (limited to 'tools/libxen')
-rw-r--r-- | tools/libxen/include/xen/api/xen_vm_power_state.h | 5 | ||||
-rw-r--r-- | tools/libxen/src/xen_vm_power_state.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/libxen/include/xen/api/xen_vm_power_state.h b/tools/libxen/include/xen/api/xen_vm_power_state.h index 649f49a7f1..b9b2acd617 100644 --- a/tools/libxen/include/xen/api/xen_vm_power_state.h +++ b/tools/libxen/include/xen/api/xen_vm_power_state.h @@ -46,6 +46,11 @@ enum xen_vm_power_state XEN_VM_POWER_STATE_SUSPENDED, /** + * Crashed + */ + XEN_VM_POWER_STATE_CRASHED, + + /** * Some other unknown state */ XEN_VM_POWER_STATE_UNKNOWN diff --git a/tools/libxen/src/xen_vm_power_state.c b/tools/libxen/src/xen_vm_power_state.c index 9797e63163..377f9ec389 100644 --- a/tools/libxen/src/xen_vm_power_state.c +++ b/tools/libxen/src/xen_vm_power_state.c @@ -32,6 +32,7 @@ static const char *lookup_table[] = "Paused", "Running", "Suspended", + "Crashed", "Unknown" }; |