[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [patch] try to allocate shadow memory
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 Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |