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/
Home Products Support Community News


[XenPPC] [patch] try to allocate shadow memory

To: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Subject: [XenPPC] [patch] try to allocate shadow memory
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Fri, 25 Aug 2006 11:00:31 -0500
Cc: xen-ppc-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 25 Aug 2006 09:00:09 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Jimi, this patch (to xenppc-unstable) should get the tools trying to
allocate shadow memory. As dicussed, we're currently planning to
overload x86's "shadow" code to control our hash tables.

diff -r d2087a16bc51 tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py    Thu Aug 24 13:42:05 2006 -0400
+++ b/tools/python/xen/xend/image.py    Fri Aug 25 10:57:56 2006 -0500
@@ -221,6 +221,12 @@ class PPC_LinuxImageHandler(LinuxImageHa
                               ramdisk        = self.ramdisk,
                               features       = self.vm.getFeatures(),
                               arch_args      = devtree.to_bin())
+    def getRequiredShadowMemory(self, mem_kb):
+        """@return The minimum shadow memory required, in KiB, for a domain
+        with mem_kb KiB of RAM.
+        PowerPC currently uses "shadow memory" to refer to the hash table."""
+        return mem_kb / 64

 class HVMImageHandler(ImageHandler):

Hollis Blanchard
IBM Linux Technology Center

Xen-ppc-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [patch] try to allocate shadow memory, Hollis Blanchard <=