ia64/xen-unstable

changeset 7071:299c2d5b5daf

Use constant in XendDomainInfo rather than embedding a string literal.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Tue Sep 27 12:30:13 2005 +0100 (2005-09-27)
parents b6e58e2daff8
children f9296342d9b2
files tools/python/xen/xend/XendCheckpoint.py
line diff
     1.1 --- a/tools/python/xen/xend/XendCheckpoint.py	Tue Sep 27 12:29:36 2005 +0100
     1.2 +++ b/tools/python/xen/xend/XendCheckpoint.py	Tue Sep 27 12:30:13 2005 +0100
     1.3 @@ -10,8 +10,12 @@ import select
     1.4  import sxp
     1.5  from string import join
     1.6  from struct import pack, unpack, calcsize
     1.7 +
     1.8  from xen.util.xpopen import xPopen3
     1.9 +
    1.10  import xen.lowlevel.xc
    1.11 +
    1.12 +import XendDomainInfo
    1.13  from xen.xend.xenstore.xsutil import IntroduceDomain
    1.14  
    1.15  from XendError import XendError
    1.16 @@ -74,7 +78,7 @@ def save(xd, fd, dominfo, live):
    1.17                  if l.rstrip() == "suspend":
    1.18                      log.info("suspending %d" % dominfo.domid)
    1.19                      xd.domain_shutdown(dominfo.domid, reason='suspend')
    1.20 -                    dominfo.state_wait("suspended")
    1.21 +                    dominfo.state_wait(XendDomainInfo.STATE_VM_SUSPENDED)
    1.22                      log.info("suspend %d done" % dominfo.domid)
    1.23                      child.tochild.write("done\n")
    1.24                      child.tochild.flush()