]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: allow balloon driver to use more than one memory region
authorDavid Vrabel <david.vrabel@citrix.com>
Wed, 28 Sep 2011 16:46:34 +0000 (17:46 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 11 May 2012 18:04:47 +0000 (14:04 -0400)
commitccedf0cab7b23cce3253622dfb436d8d5bf511c6
treea7cb21730b12882b895758650abd0fc59f6f56cf
parent8caf460f1f63503d4351bb10fa5196913a71b817
xen: allow balloon driver to use more than one memory region

Allow the xen balloon driver to populate its list of extra pages from
more than one region of memory.  This will allow platforms to provide
(for example) a region of low memory and a region of high memory.

The maximum possible number of extra regions is 128 (== E820MAX) which
is quite large so xen_extra_mem is placed in __initdata.  This is safe
as both xen_memory_setup() and balloon_init() are in __init.

The balloon regions themselves are not altered (i.e., there is still
only the one region).

[upstream git commit 8b5d44a]
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Conflicts:

drivers/xen/balloon.c
[The "Add support for pv hugepages and support for huge balloon pages." has
a lot of these fixes in]
arch/x86/xen/setup.c
include/xen/page.h