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] this patch fixes the bug that when "cpu" is not set in c

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] this patch fixes the bug that when "cpu" is not set in config file,
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Sep 2005 13:16:10 +0000
Delivery-date: Thu, 22 Sep 2005 13:14:40 +0000
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/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 emellor@ewan
# Node ID 11cca45a9a7972d937b3c04fc432733cd218363d
# Parent  52eb8504be717c1ee7371234696bf8fa45b2aea6
this patch fixes the bug that when "cpu" is not set in config file,
control panel complains "Error creating domain - int argument required".
Signed-off-by: Xin Li <xin.b.li@xxxxxxxxx>

diff -r 52eb8504be71 -r 11cca45a9a79 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Thu Sep 22 10:04:30 2005
+++ b/tools/python/xen/xend/image.py    Thu Sep 22 10:09:11 2005
@@ -155,6 +155,8 @@
         if dom <= 0:
             raise VmError('Creating domain failed: name=%s' %
                           self.vm.getName())
+        if cpu is None:
+            cpu = -1;
         log.debug("initDomain: cpu=%d mem_kb=%d ssidref=%d dom=%d", cpu, 
mem_kb, ssidref, dom)
         xc.domain_setcpuweight(dom, cpu_weight)
         xc.domain_setmaxmem(dom, mem_kb)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] this patch fixes the bug that when "cpu" is not set in config file,, Xen patchbot -unstable <=