xen: release unused free memory

Scan an e820 table and release any memory which lies between e820 entries,
as it won't be used and would just be wasted.  At present this is just to
release any memory beyond the end of the e820 map, but it will also deal
with holes being punched in the map.

Derived from patch by Miroslav Rezanina <mrezanin@redhat.com>

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
This commit is contained in:
Miroslav Rezanina
2009-09-16 03:56:17 -04:00
committed by Jeremy Fitzhardinge
parent e40152ee1e
commit 093d7b4639
2 changed files with 53 additions and 1 deletions

View File

@@ -731,7 +731,6 @@ static void set_xen_basic_apic_ops(void)
#endif
static void xen_clts(void)
{
struct multicall_space mcs;