From: Ewan Mellor Subject: Re: [PATCH][RESEND] Control panel changes for IA64/VTI Date: Mon, 24 Oct 2005 11:06:56 +0100 Message-ID: <20051024100656.GA11545@leeni.uk.xensource.com> References: <571ACEFD467F7749BC50E0A98C17CDD802C068F2@pdsmsx403> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <571ACEFD467F7749BC50E0A98C17CDD802C068F2@pdsmsx403> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Tian, Kevin" Cc: xen-devel@lists.xensource.com, Xen-IA64-Devel List-Id: xen-devel@lists.xenproject.org On Mon, Oct 24, 2005 at 09:19:33AM +0800, Tian, Kevin wrote: > >From: Keir Fraser [mailto:Keir.Fraser@cl.cam.ac.uk] > > > >The patches look okay, although the Python bits aren't particularly > >pretty. > > > > -- Keir > > Sorry for bad Python skill. ;-) So Dan, please help check in. Actually executing your code would be a good start. --- a/tools/python/xen/xend/image.py Sat Oct 15 03:09:43 2005 +++ b/tools/python/xen/xend/image.py Fri Oct 21 15:35:26 2005 @@ -58,6 +58,7 @@ """ ostype = None + page_kb = 4 def __init__(self, vm, imageConfig, deviceConfig): @@ -366,11 +367,13 @@ def getDomainMemory(self, mem): """@see ImageHandler.getDomainMemory""" + if os.uname[4] == 'ia64': + page_kb = 16 # for ioreq_t and xenstore static_pages = 2 This is going to fail with a TypeError exception, because os.uname is a function. You want os.uname()[4]. Ewan.