Hollis Blanchard
2006-Dec-08 20:25 UTC
[Xen-devel] [PATCH][XEN][POWERPC] allocate shadow memory for PPC Linux domains
Allocate shadow memory for PPC Linux domains. Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com> diff -r 9d83185b4c37 tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Fri Dec 01 19:11:02 2006 -0500 +++ b/tools/python/xen/xend/image.py Tue Dec 05 10:44:22 2006 -0600 @@ -246,6 +246,15 @@ class PPC_LinuxImageHandler(LinuxImageHa features = self.vm.getFeatures(), arch_args = devtree.to_bin()) + def getRequiredShadowMemory(self, shadow_mem_kb, maxmem_kb): + """@param shadow_mem_kb The configured shadow memory, in KiB. + @param maxmem_kb The configured maxmem, in KiB. + @return The corresponding required amount of shadow memory, also in + KiB. + PowerPC currently uses "shadow memory" to refer to the hash table.""" + return max(maxmem_kb / 64, shadow_mem_kb) + + class PPC_ProseImageHandler(LinuxImageHandler): ostype = "prose" -- Hollis Blanchard IBM Linux Technology Center _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2006-Dec-09 13:53 UTC
Re: [Xen-devel] [PATCH][XEN][POWERPC] allocate shadow memory for PPC Linux domains
On 8/12/06 8:25 pm, "Hollis Blanchard" <hollisb@us.ibm.com> wrote:> Allocate shadow memory for PPC Linux domains. > > Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>Just check all these patches into the PPC tree and I¹ll merge them into unstable with the rest. I always check the diff when I merge anyway. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Sat, 2006-12-09 at 13:53 +0000, Keir Fraser wrote:> > Just check all these patches into the PPC tree and I’ll merge them > into unstable with the rest. I always check the diff when I merge > anyway.OK, they are now committed. Please hg pull http://xenbits.xensource.com/xenppc-unstable-merge.hg and let me know if you have any issues or questions. -- Hollis Blanchard IBM Linux Technology Center _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel