]> 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>
Wed, 19 Oct 2011 18:26:43 +0000 (14:26 -0400)
commit9adc1768033e71fcc3001c7b4a6a8a98ac54861f
treecd72a9105dc59ec6e400a7e3d11bcfc4cb57407a
parent4c9097c705d215f532ea45edebf39b0cdfb788e1
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).

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/setup.c
drivers/xen/balloon.c
include/xen/page.h