x86/xen: add extra memory for remapped frames during setup
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 7 Jan 2015 11:21:50 +0000 (11:21 +0000)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 8 Jan 2015 13:52:37 +0000 (13:52 +0000)
If the non-RAM regions in the e820 memory map are larger than the size
of the initial balloon, a BUG was triggered as the frames are remaped
beyond the limit of the linear p2m.  The frames are remapped into the
initial balloon area (xen_extra_mem) but not enough of this is
available.

Ensure enough extra memory regions are added for these remapped
frames.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/setup.c

Simple merge