WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Fix vbd_create etc, add devices to paused

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Fix vbd_create etc, add devices to paused domains
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Mar 2007 14:20:08 -0700
Delivery-date: Mon, 26 Mar 2007 14:19:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Tom Wilkie <tom.wilkie@xxxxxxxxx>
# Date 1174912167 -3600
# Node ID f4ce943f25f64f3f2bae1bf9928769531e2a1bc4
# Parent  7ba1e697beda758bb6b14387e1e1ea13673ac7fc
Fix vbd_create etc, add devices to paused domains

signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff -r 7ba1e697beda -r f4ce943f25f6 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Mon Mar 26 09:16:04 2007 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Mon Mar 26 13:29:27 2007 +0100
@@ -556,7 +556,8 @@ class XendDomainInfo:
         return self.getDeviceController(deviceClass).destroyDevice(devid, 
force)
 
     def getDeviceSxprs(self, deviceClass):
-        if self.state == DOM_STATE_RUNNING:
+        if self.state == DOM_STATE_RUNNING \
+               or self.state == DOM_STATE_PAUSED:
             return self.getDeviceController(deviceClass).sxprs()
         else:
             sxprs = []
@@ -2302,8 +2303,8 @@ class XendDomainInfo:
         if not dev_uuid:
             raise XendError('Failed to create device')
 
-        if self.state == XEN_API_VM_POWER_STATE_RUNNING:
-            
+        if self.state == XEN_API_VM_POWER_STATE_RUNNING or \
+               self.state == XEN_API_VM_POWER_STATE_PAUSED:
             _, config = self.info['devices'][dev_uuid]
             
             if vdi_image_path.startswith('tap'):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Fix vbd_create etc, add devices to paused domains, Xen patchbot-unstable <=