Re: [PATCH] Do not use arbitrary large movablecore to calculate kernelcore

From: Zhihui Zhang
Date: Thu Apr 02 2015 - 21:22:00 EST

If you specify movablecore > totalpages, required_kernelcore will end
up with a big number because corepages is an unsigned integer. If so,
the following nested is a waste of time. But I see your point.


On Wed, Apr 1, 2015 at 7:00 PM, Mel Gorman <mgorman@xxxxxxx> wrote:
> On Sat, Mar 28, 2015 at 11:36:02PM -0400, Zhihui Zhang wrote:
>> If kernelcore is not set, then we are working with a very large kernelcore
>> for nothing - no movable zone will be created. If kernelcore is set,
>> then it is not respected at all.
>> Signed-off-by: Zhihui Zhang <zzhsuny@xxxxxxxxx>
> I'm confused. What bug is this patch fixing? What is the user-visible
> impcat of the patch?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at