The 1:1 page table should be a 3 level PAE page table on x86-64

This is needed to support > 4GB machine physical addresses.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Arun Sharma <arun.sharma@intel.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2005-07-11 14:39:10 +00:00
1 parent 280cee7546
commit 8ff31ab726
6 files changed
+150 -10

No files matched your search

+4 -2
View File
@@ -351,6 +351,8 @@ class VmxImageHandler(ImageHandler):
@param mem_mb: size in MB
@return size in KB
"""
# Logic x86-32 specific.
# 1 page for the PGD + 1 pte page for 4MB of memory (rounded)
return (1 + ((mem_mb + 3) >> 2)) * 4
if os.uname()[4] == 'x86_64':
return (5 + ((mem_mb + 1) >> 1)) * 4
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.