[prev in list] [next in list] [prev in thread] [next in thread]
List: xen-ppc-devel
Subject: [XenPPC] [PATCH][XEN][POWERPC] allocate shadow memory for PPC Linux
From: Hollis Blanchard <hollisb () us ! ibm ! com>
Date: 2006-12-08 20:25:15
Message-ID: 1165609515.23364.16.camel () basalt
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.12.1">
</HEAD>
<BODY>
<!--+GtkHTML:<DATA class="ClueFlow" key="signature" value="0">--><!--+GtkHTML:<DATA \
class="ClueFlow" key="signature_name" \
value="uid:1163106765..10975..0@basalt">--><!--+GtkHTML:<DATA class="ClueFlow" \
key="orig" value="0">-->Allocate shadow memory for PPC Linux domains.<BR> <BR>
Signed-off-by: Hollis Blanchard <<A \
HREF="mailto:hollisb@us.ibm.com">hollisb@us.ibm.com</A>><BR> <BR>
<PRE>
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
&n \
bsp; \
features = self.vm.getFeatures(), \
&n \
bsp; \
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"
</PRE>
<BR>
<!--+GtkHTML:<DATA class="ClueFlow" clear="orig">--><!--+GtkHTML:<DATA \
class="ClueFlow" key="signature" value="1">--><TABLE CELLSPACING="0" CELLPADDING="0" \
WIDTH="100%"> <TR>
<TD>
<PRE>
<!--+GtkHTML:<DATA class="ClueFlow" key="signature" value="1">-->--
<!--+GtkHTML:<DATA class="ClueFlow" key="signature" value="1">-->Hollis Blanchard
<!--+GtkHTML:<DATA class="ClueFlow" key="signature" value="1">-->IBM Linux Technology \
Center </PRE>
</TD>
</TR>
</TABLE>
<!--+GtkHTML:<DATA class="ClueFlow" key="signature" value="1">--><!--+GtkHTML:<DATA \
class="ClueFlow" key="orig" value="0">--><BR> </BODY>
</HTML>
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@lists.xensource.com
http://lists.xensource.com/xen-ppc-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic