Commit 36bc251b authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge

xen: make sure xen_extra_mem_start is beyond all non-RAM e820

If Xen gives us non-RAM E820 entries (dom0 only, typically), then
make sure the extra RAM region is beyond them.  It's OK for
the extra space to grow into E820 regions, however.
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
parent 42ee1471
...@@ -167,7 +167,8 @@ char * __init xen_memory_setup(void) ...@@ -167,7 +167,8 @@ char * __init xen_memory_setup(void)
extra_pages += PFN_DOWN(end - mem_end); extra_pages += PFN_DOWN(end - mem_end);
} }
} } else if (map[i].type != E820_RAM)
xen_extra_mem_start = end;
if (map[i].size > 0) if (map[i].size > 0)
e820_add_region(map[i].addr, map[i].size, map[i].type); e820_add_region(map[i].addr, map[i].size, map[i].type);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment