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] xend: Fix domain creation.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xend: Fix domain creation.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 07 Apr 2009 23:02:21 -0700
Delivery-date: Tue, 07 Apr 2009 23:05:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/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 Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1238504231 -3600
# Node ID 011f4fbf46b2ffe19a853f3f213befe961df49ff
# Parent  b3daeb123b6fb238483137a1f4d9295e44b749f4
xend: Fix domain creation.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 tools/python/xen/xend/XendDomainInfo.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r b3daeb123b6f -r 011f4fbf46b2 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Tue Mar 31 13:30:50 2009 +0100
+++ b/tools/python/xen/xend/XendDomainInfo.py   Tue Mar 31 13:57:11 2009 +0100
@@ -2324,9 +2324,9 @@ class XendDomainInfo:
             if weight < 1 or weight > 65535:
                 raise VmError("Cpu weight out of range, valid values are 
within range from 1 to 65535")
 
-            if cap < 0 or cap > dominfo.getVCpuCount() * 100:
+            if cap < 0 or cap > self.getVCpuCount() * 100:
                 raise VmError("Cpu cap out of range, valid range is from 0 to 
%s for specified number of vcpus" %
-                              (dominfo.getVCpuCount() * 100))
+                              (self.getVCpuCount() * 100))
 
         # Test whether the devices can be assigned with VT-d
         pci = self.info["platform"].get("pci")

_______________________________________________
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] xend: Fix domain creation., Xen patchbot-unstable <=