mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[LINUX][PAE] Fix e820 setup for PAE guests: preserve high-order bits of max_pfn.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
89f1d989d2
commit
1bf1344c7c
1 file changed
+2
-2
@@ -25,9 +25,9 @@ static char * __init machine_specific_memory_setup(void)
|
||||
if ( rc == -ENOSYS ) {
|
||||
memmap.nr_entries = 1;
|
||||
map[0].addr = 0ULL;
|
||||
map[0].size = xen_start_info->nr_pages << PAGE_SHIFT;
|
||||
map[0].size = PFN_PHYS(xen_start_info->nr_pages);
|
||||
/* 8MB slack (to balance backend allocations). */
|
||||
map[0].size += 8 << 20;
|
||||
map[0].size += 8ULL << 20;
|
||||
map[0].type = E820_RAM;
|
||||
rc = 0;
|
||||
}
|
||||
|
||||