Catchup with xen-unstable, add ia64 specifics to tools, and some VTI merge

Signed-off-by Kevin Tian <Kevin.tian@intel.com>
This commit is contained in:
djm@kirby.fc.hp.com committed 2005-09-13 13:42:33 -06:00
1 parent b7b0e47a54
commit 13bad8113d
18 files changed
+295 -87

No files matched your search

+8 -1
View File
@@ -222,7 +222,11 @@ class ImageHandler:
def getDomainMemory(self, mem_mb):
"""Memory (in KB) the domain will need for mem_mb (in MB)."""
return mem_mb * 1024
if os.uname()[4] == 'ia64':
"""Append extra system pages, like xenstore and console"""
return (mem_mb * 1024 + 3 * 16)
else:
return mem_mb * 1024
def buildDomain(self):
"""Build the domain. Define in subclass."""
@@ -457,5 +461,8 @@ class VmxImageHandler(ImageHandler):
# 1 page for the PGD + 1 pte page for 4MB of memory (rounded)
if os.uname()[4] == 'x86_64':
return (5 + ((mem_mb + 1) >> 1)) * 4
elif os.uname()[4] == 'ia64':
# XEN/IA64 has p2m table allocated on demand, so only return guest firmware size here.
return 16 * 1024
else:
return (1 + ((mem_mb + 3) >> 2)) * 4
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.