All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Schwartz <eric.schwartz@hp.com>
To: xen-devel@lists.xensource.com
Subject: Re: [PATCH] xm-test: ia64 min memory & arbitrarily large ramdisk
Date: Thu, 03 May 2007 13:28:17 -0600	[thread overview]
Message-ID: <463A37D1.3070509@hp.com> (raw)
In-Reply-To: <463A344C.4090207@hp.com>

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@hp.com>

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

      reply	other threads:[~2007-05-03 19:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-03 19:13 [PATCH] xm-test: ia64 min memory & arbitrarily large ramdisk Eric Schwartz
2007-05-03 19:28 ` Eric Schwartz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=463A37D1.3070509@hp.com \
    --to=eric.schwartz@hp.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.