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-devel

[Xen-devel] [PATCH] Convert the type of superpages to integer

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Convert the type of superpages to integer
From: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>
Date: Fri, 05 Jun 2009 11:59:11 +0900
Delivery-date: Thu, 04 Jun 2009 19:59:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

Starting a domain fails with TypeError as follows.
This patch fixes it.

Signed-off-by: Masaki Kanno <kanno.masaki@xxxxxxxxxxxxxx>


[2009-06-05 20:17:39 3733] ERROR (xmlrpclib2:178) Internal error handling 
xend.domain.start
Traceback (most recent call last):
  File "usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line 131, in 
_marshaled_dispatch
    response = self._dispatch(method, params)
  File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
    return func(*params)
  File "usr/lib/python2.4/site-packages/xen/xend/XendDomain.py", line 1039, in 
domain_start
    dominfo.start(is_managed = True)
  File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 458, 
in start
    XendTask.log_progress(31, 60, self._initDomain)
  File "usr/lib/python2.4/site-packages/xen/xend/XendTask.py", line 209, in 
log_progress
    retval = func(*args, **kwds)
  File "usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2612, 
in _initDomain
    channel_details = self.image.createImage()
  File "usr/lib/python2.4/site-packages/xen/xend/image.py", line 156, in 
createImage
    return self.createDomain()
  File "usr/lib/python2.4/site-packages/xen/xend/image.py", line 175, in 
createDomain
    result = self.buildDomain()
  File "usr/lib/python2.4/site-packages/xen/xend/image.py", line 996, in 
buildDomain
    rc = LinuxImageHandler.buildDomain(self)
  File "usr/lib/python2.4/site-packages/xen/xend/image.py", line 700, in 
buildDomain
    superpages     = self.superpages)
TypeError: an integer is required


Best regards,
 Kan

Attachment: superpages.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Convert the type of superpages to integer, Masaki Kanno <=