ia64/xen-unstable

changeset 14558:f4ce943f25f6

Fix vbd_create etc, add devices to paused domains

signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
author Tom Wilkie <tom.wilkie@gmail.com>
date Mon Mar 26 13:29:27 2007 +0100 (2007-03-26)
parents 7ba1e697beda
children 15c74855ba68
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Mon Mar 26 09:16:04 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Mon Mar 26 13:29:27 2007 +0100
     1.3 @@ -556,7 +556,8 @@ class XendDomainInfo:
     1.4          return self.getDeviceController(deviceClass).destroyDevice(devid, force)
     1.5  
     1.6      def getDeviceSxprs(self, deviceClass):
     1.7 -        if self.state == DOM_STATE_RUNNING:
     1.8 +        if self.state == DOM_STATE_RUNNING \
     1.9 +               or self.state == DOM_STATE_PAUSED:
    1.10              return self.getDeviceController(deviceClass).sxprs()
    1.11          else:
    1.12              sxprs = []
    1.13 @@ -2302,8 +2303,8 @@ class XendDomainInfo:
    1.14          if not dev_uuid:
    1.15              raise XendError('Failed to create device')
    1.16  
    1.17 -        if self.state == XEN_API_VM_POWER_STATE_RUNNING:
    1.18 -            
    1.19 +        if self.state == XEN_API_VM_POWER_STATE_RUNNING or \
    1.20 +               self.state == XEN_API_VM_POWER_STATE_PAUSED:
    1.21              _, config = self.info['devices'][dev_uuid]
    1.22              
    1.23              if vdi_image_path.startswith('tap'):