Revision fd201010 lib/hypervisor/hv_xen.py

b/lib/hypervisor/hv_xen.py
168 168
  return _ParseInstanceList(lines, include_node)
169 169

  
170 170

  
171
# Determine whether an instance is running
172
#
173
# An instance is running if it is in the following Xen states:
174
# running, blocked, or paused.
171 175
def _IsInstanceRunning(instance_info):
172 176
  return instance_info == "r-----" \
173
      or instance_info == "-b----"
177
      or instance_info == "-b----" \
178
      or instance_info == "--p---"
174 179

  
175 180

  
176 181
def _IsInstanceShutdown(instance_info):

Also available in: Unified diff