Commit 5670a43d authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Ingo Molnar

xen: fix for xen guest with mem > 3.7G

PFN_PHYS() can truncate large addresses unless its passed a suitable
large type.  This is fixed more generally in the patch series
introducing phys_addr_t, but we need a short-term fix to solve a
Xen regression reported by Roberto De Ioris.
Reported-by: default avatarRoberto De Ioris <roberto@unbit.it>
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 0ad5bce7
...@@ -42,7 +42,7 @@ char * __init xen_memory_setup(void) ...@@ -42,7 +42,7 @@ char * __init xen_memory_setup(void)
e820.nr_map = 0; e820.nr_map = 0;
e820_add_region(0, PFN_PHYS(max_pfn), E820_RAM); e820_add_region(0, PFN_PHYS((u64)max_pfn), E820_RAM);
/* /*
* Even though this is normal, usable memory under Xen, reserve * Even though this is normal, usable memory under Xen, reserve
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment