diff options
author | Jeremy Fitzhardinge | 2010-09-15 22:32:49 +0200 |
---|---|---|
committer | Jeremy Fitzhardinge | 2010-10-22 21:57:30 +0200 |
commit | 2f7acb208523a3bf5f1830f01c29f7feda045169 (patch) | |
tree | c8327359441d761972e456257a01a1fee452f9e8 /arch/x86/xen/setup.c | |
parent | xen: limit extra memory to a certain ratio of base (diff) | |
download | kernel-qcow2-linux-2f7acb208523a3bf5f1830f01c29f7feda045169.tar.gz kernel-qcow2-linux-2f7acb208523a3bf5f1830f01c29f7feda045169.tar.xz kernel-qcow2-linux-2f7acb208523a3bf5f1830f01c29f7feda045169.zip |
xen: make sure xen_max_p2m_pfn is up to date
Keep xen_max_p2m_pfn up to date with the end of the extra memory
we're adding. It is possible that it will be too high since memory
may be truncated by a "mem=" option on the kernel command line, but
that won't matter.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86/xen/setup.c')
-rw-r--r-- | arch/x86/xen/setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 6c9039e92f81..cad2fcd130ec 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c @@ -64,6 +64,8 @@ static __init void xen_add_extra_mem(unsigned long pages) "XEN EXTRA"); xen_extra_mem_size += size; + + xen_max_p2m_pfn = PFN_DOWN(xen_extra_mem_start + xen_extra_mem_size); } static unsigned long __init xen_release_chunk(phys_addr_t start_addr, |