mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
280cee7546
commit
8ff31ab726
6 files changed
+150
-10
No files matched your search
@@ -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
|
||||