Skip to content

Commit

Permalink
xen: fix for xen guest with mem > 3.7G
Browse files Browse the repository at this point in the history
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: Roberto De Ioris <roberto@unbit.it>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Jeremy Fitzhardinge authored and Ingo Molnar committed Sep 14, 2008
1 parent 0ad5bce commit 5670a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/xen/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ char * __init xen_memory_setup(void)

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
Expand Down

0 comments on commit 5670a43

Please sign in to comment.