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

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Wed Apr 23 12:31:09 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 dd5f081..e5542bc 100644
--- a/src/kimchi/model/vms.py
+++ b/src/kimchi/model/vms.py
@@ -47,7 +47,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