xen/balloon: make sure we only include remaining extra ram
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tue, 14 Sep 2010 17:32:32 +0000 (10:32 -0700)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Sat, 20 Nov 2010 06:18:26 +0000 (22:18 -0800)
If the user specifies mem= on the kernel command line, some or all
of the extra memory E820 region may be clipped away, so make sure
we don't try to add more extra memory than exists in E820.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/balloon.c

Simple merge