]> Pileus Git - ~andy/linux/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>
Thu, 29 Sep 2011 15:12:10 +0000 (11:12 -0400)
commit8b5d44a5ac93cd7a1b044db3ff0ba4955b4ba5ec
tree3db094063c6ae765704414a0d84bc8a009c4c2d6
parentb1cbf9b1d6af22ba262d99abcfd71d5d90dbd57a
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