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

Re: [Xen-devel] [PATCH] xm-test: ia64 min memory & arbitrarily large ram

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [PATCH] xm-test: ia64 min memory & arbitrarily large ramdisk
From: Eric Schwartz <eric.schwartz@xxxxxx>
Date: Thu, 03 May 2007 13:28:17 -0600
Delivery-date: Thu, 03 May 2007 12:26:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <463A344C.4090207@xxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <463A344C.4090207@xxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (X11/20070403)
Oops, I forgot the sign-off!

Here, this is better (I left a tab-delimited line in the original mail by accident as well):

Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>

diff -r 9313d0ce09f8 tools/xm-test/lib/XmTestLib/arch.py
--- a/tools/xm-test/lib/XmTestLib/arch.py Tue Apr 24 09:26:32 2007 -0600 +++ b/tools/xm-test/lib/XmTestLib/arch.py Thu May 03 11:16:58 2007 -0600
@@ -45,6 +45,9 @@ def ia_checkBuffer(buffer):

def ia_minSafeMem():
    return 32
+
+def ia64_minSafeMem():
+    return 128

def ia_getDeviceModel():
    """Get the path to the device model based on
@@ -139,6 +142,17 @@ if _arch == "x86" or _arch == "x86_64" o
        configDefaults = ia_HVMDefaults
    else:
        configDefaults = ia_ParavirtDefaults
+
+    # note: xm-test generates an uncompressed image, and this code
+ # expects one. This will fail with a gzip-ed image. + if configDefaults['ramdisk']:
+        rd_size = os.stat(configDefaults['ramdisk']).st_size
+        configDefaults['extra'] = 'ramdisk_size=' + str((rd_size / 1024)+1)
+
+    if _arch == "ia64":
+        minSafeMem = ia64_minSafeMem
+        configDefaults['memory'] = ia64_minSafeMem()
+
elif _arch == "powerpc":
    minSafeMem = ppc_minSafeMem
    getDefaultKernel = ppc_getDefaultKernel


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

<Prev in Thread] Current Thread [Next in Thread>