[Kimchi-devel] [PATCH V2 3/3] New domain state pmsuspended

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Tue Apr 22 15:41:34 UTC 2014


From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>

libvirt introduces a new domain state pmsuspended to represent
the domain which has been suspended by guest power management,
e.g. (entered itno s3 state). Because a "running" state could
be confused in this case, one will see the guest is paused
actually while playing. And state "paused" is for the domain
which was paused by virDomainSuspend.

update this state in kimchi

Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
---
 src/kimchi/model/vms.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/kimchi/model/vms.py b/src/kimchi/model/vms.py
index 98e4a9f..f0fa706 100644
--- a/src/kimchi/model/vms.py
+++ b/src/kimchi/model/vms.py
@@ -48,7 +48,8 @@ DOM_STATE_MAP = {0: 'nostate',
                  3: 'paused',
                  4: 'shutdown',
                  5: 'shutoff',
-                 6: 'crashed'}
+                 6: 'crashed',
+                 7: 'pmsuspended'}
 
 GUESTS_STATS_INTERVAL = 5
 VM_STATIC_UPDATE_PARAMS = {'name': './name'}
-- 
1.9.0




More information about the Kimchi-devel mailing list