Re: [PATCH RFC] e820_remove_range fail?

From: Yinghai Lu
Date: Tue Mar 30 2010 - 00:17:49 EST


On 03/29/2010 07:08 PM, Rusty Russell wrote:
> Hi Yinghai,
>
> I just wrote this patch for lguest, but I think the real problem is
> that e820_remove_range can't split a range. Is this a problem for
> real machines?
>
> [ 0.000000] BIOS-provided physical RAM map:
> [ 0.000000] LGUEST: 0000000000000000 - 0000000004000000 (usable)
> [ 0.000000] Notice: NX (Execute Disable) protection missing in CPU or disabled in BIOS!
> [ 0.000000] DMI not present or invalid.
> [ 0.000000] last_pfn = 0x3fa0 max_arch_pfn = 0x100000
> [ 0.000000] init_memory_mapping: 0000000000000000-0000000003fa0000
>

you are right, looks like e820_remove_region() missed that case.

will send out one patch.

Thanks

Yinghai Lu
--
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/