mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
xend: Fix domain creation.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
98da66a3bd
commit
2fa8c71b9f
1 file changed
+2
-2
@@ -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")
|
||||
|
||||