xen: clean up "extra" memory handling some more
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tue, 23 Nov 2010 00:31:35 +0000 (16:31 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tue, 23 Nov 2010 00:34:28 +0000 (16:34 -0800)
commitc2d0879112825cddddd6c4f9b2645ff32acd6dc5
tree953a9658ec2e2e785ce5ca584b8df16294a4e0c5
parent12334715720b012180579f57650879d0fbb11a84
xen: clean up "extra" memory handling some more

Make sure that extra_pages is added for all E820_RAM regions beyond
mem_end - completely excluded regions as well as the remains of partially
included regions.

Also makes sure the extra region is not unnecessarily high, and simplifies
the logic to decide which regions should be added.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
arch/x86/xen/setup.c