mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
Fix indentation in a few places.
Signed-off-by: Xin Li <xin.b.li@intel.com>
This commit is contained in:
1 parent
523283aa07
commit
e53027149f
2 files changed
+11
-11
No files matched your search
@@ -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.
|
||||
|
||||