diff options
author | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-09-02 20:07:03 -0400 |
---|---|---|
committer | Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> | 2010-10-22 15:57:28 -0400 |
commit | 36bc251b87f88147e9d8346e4b431f42353c3d38 (patch) | |
tree | df852a732d4ef6b90aa15ac026a46d2e4f0ae62a /arch/x86 | |
parent | 42ee1471e9b879479a15debac752314a596c738e (diff) |
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: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/xen/setup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index f9a99eaddcdc..eac010008cd2 100644 --- a/arch/x86/xen/setup.c +++ b/arch/x86/xen/setup.c | |||
@@ -167,7 +167,8 @@ char * __init xen_memory_setup(void) | |||
167 | 167 | ||
168 | extra_pages += PFN_DOWN(end - mem_end); | 168 | extra_pages += PFN_DOWN(end - mem_end); |
169 | } | 169 | } |
170 | } | 170 | } else if (map[i].type != E820_RAM) |
171 | xen_extra_mem_start = end; | ||
171 | if (map[i].size > 0) | 172 | if (map[i].size > 0) |
172 | e820_add_region(map[i].addr, map[i].size, map[i].type); | 173 | e820_add_region(map[i].addr, map[i].size, map[i].type); |
173 | } | 174 | } |