xen/balloon: Set balloon's initial state to number of existing RAM pages
authorBoris Ostrovsky <boris.ostrovsky@oracle.com>
Wed, 6 Nov 2013 20:37:40 +0000 (15:37 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 8 Nov 2013 20:13:03 +0000 (15:13 -0500)
commitc275a57f5ec3056f732843b11659d892235faff7
tree544c7a9caf0f55d5c1e3496df5bc129af4f63167
parent8deb3eb1461e4cb136c88d03ec5a6729ccf2f933
xen/balloon: Set balloon's initial state to number of existing RAM pages

Currently balloon's initial value is set to max_pfn which includes
non-RAM ranges such as MMIO hole. As result, initial memory target
(specified by guest's configuration file) will appear smaller than
what balloon driver perceives to be the current number of available
pages. Thus it will balloon down "extra" pages, decreasing amount of
available memory for no good reason.

Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/balloon.c