Re: [PATCH] x86: extend e820 ealy_res support 32bit - fix #2

From: Yinghai Lu
Date: Thu May 29 2008 - 14:42:13 EST


On Thu, May 29, 2008 at 6:37 AM, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
> Yinghai Lu wrote:
>>
>> can we use e820 entries for that? So the domain builder could have
>> several entries for E820_RAM and E820_RESERVED...
>>
>
> I tried this, but it doesn't work; the kernel crashes during boot,
> presumably because it's trying to use the reserved memory as heap. I
> suspect the e820 maps are not registered early enough or something...
>
> (One thought: if reserving in the E820 map were enough, then couldn't we use
> it for all the early reservations?)

"e820 reserved entries" means kernel will only read it.

reserve_early will be converted to bootmem via reserve_bootmem[_generic]
and later it could be freed and be reused.

YH
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/