Fix indentation in a few places.

Signed-off-by: Xin Li <xin.b.li@intel.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-12-11 00:16:26 +01:00
1 parent 523283aa07
commit e53027149f
2 files changed
+11 -11

No files matched your search

+4 -4
View File
@@ -365,13 +365,13 @@ class VmxImageHandler(ImageHandler):
def getDomainMemory(self, mem):
"""@see ImageHandler.getDomainMemory"""
page_kb = 4
if os.uname()[4] == 'ia64':
page_kb = 16
page_kb = 4
if os.uname()[4] == 'ia64':
page_kb = 16
# for ioreq_t and xenstore
static_pages = 2
return mem + (self.getPageTableSize(mem / 1024) + static_pages) * page_kb
def getPageTableSize(self, mem_mb):
"""Return the pages of memory needed for 1:1 page tables for physical
mode.
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.