summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2012-03-14 23:26:55 +0800
committerOsier Yang <jyang@redhat.com>2012-03-23 23:12:29 +0800
commit7c5a0c94e466f779ee885b89f1ce6824b89075b2 (patch)
tree27604b4c2e097dee98b6afafb362f8995812e376 /tools
parent321fa64bf52a6fe4407e33dde14fc333dbc1d76d (diff)
downloadlibvirt-7c5a0c94e466f779ee885b89f1ce6824b89075b2.tar.gz
qemu: Update domain status to running while wakeup event is emitted
This introduces a new running reason VIR_DOMAIN_RUNNING_WAKEUP, and new suspend event type VIR_DOMAIN_EVENT_STARTED_WAKEUP. While a wakeup event is emitted, the domain which entered into VIR_DOMAIN_PMSUSPENDED will be transferred to "running" with reason VIR_DOMAIN_RUNNING_WAKEUP, and a new domain lifecycle event emitted with type VIR_DOMAIN_EVENT_STARTED_WAKEUP.
Diffstat (limited to 'tools')
-rw-r--r--tools/virsh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/virsh.c b/tools/virsh.c
index 49bfa7adff..96bea39028 100644
--- a/tools/virsh.c
+++ b/tools/virsh.c
@@ -18859,6 +18859,8 @@ vshDomainStateReasonToString(int state, int reason)
return N_("migration canceled");
case VIR_DOMAIN_RUNNING_SAVE_CANCELED:
return N_("save canceled");
+ case VIR_DOMAIN_RUNNING_WAKEUP:
+ return N_("event wakeup");
case VIR_DOMAIN_RUNNING_UNKNOWN:
case VIR_DOMAIN_RUNNING_LAST:
;