Commit ecd94c08 authored by Alexander van Heukelum's avatar Alexander van Heukelum Committed by Ingo Molnar

x86: reserve end-of-conventional-memory to 1MB, 64-bit, use paravirt_enabled

Jeremy Fitzhardinge pointed out that looking at the boot_params
struct to determine if the system is running in a paravirtual
environment is not reliable for the Xen case, currently. He also
points out that there already exists a function to determine if
the system is running in a paravirtual environment. So let's use
that instead. This gets rid of the preprocessor test too.
Signed-off-by: default avatarAlexander van Heukelum <heukelum@fastmail.fm>
Acked-by: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 2fde61fd
...@@ -72,12 +72,8 @@ static void __init reserve_ebda_region(void) ...@@ -72,12 +72,8 @@ static void __init reserve_ebda_region(void)
/* that area is absent. We'll just have to assume */ /* that area is absent. We'll just have to assume */
/* that the paravirt case can handle memory setup */ /* that the paravirt case can handle memory setup */
/* correctly, without our help. */ /* correctly, without our help. */
#ifdef CONFIG_PARAVIRT if (paravirt_enabled())
if ((boot_params.hdr.version >= 0x207) &&
(boot_params.hdr.hardware_subarch != 0)) {
return; return;
}
#endif
/* end of low (conventional) memory */ /* end of low (conventional) memory */
lowmem = *(unsigned short *)__va(BIOS_LOWMEM_KILOBYTES); lowmem = *(unsigned short *)__va(BIOS_LOWMEM_KILOBYTES);
......
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