ia64/xen-unstable

changeset 19478:011f4fbf46b2

xend: Fix domain creation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 31 13:57:11 2009 +0100 (2009-03-31)
parents b3daeb123b6f
children 909bb1245930
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Tue Mar 31 13:30:50 2009 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Tue Mar 31 13:57:11 2009 +0100
     1.3 @@ -2324,9 +2324,9 @@ class XendDomainInfo:
     1.4              if weight < 1 or weight > 65535:
     1.5                  raise VmError("Cpu weight out of range, valid values are within range from 1 to 65535")
     1.6  
     1.7 -            if cap < 0 or cap > dominfo.getVCpuCount() * 100:
     1.8 +            if cap < 0 or cap > self.getVCpuCount() * 100:
     1.9                  raise VmError("Cpu cap out of range, valid range is from 0 to %s for specified number of vcpus" %
    1.10 -                              (dominfo.getVCpuCount() * 100))
    1.11 +                              (self.getVCpuCount() * 100))
    1.12  
    1.13          # Test whether the devices can be assigned with VT-d
    1.14          pci = self.info["platform"].get("pci")