Re: [Xen-devel] [PATCH 1/3] x86: calculate precisely the memory neededby init_memory_mapping

From: Ian Jackson
Date: Fri Jun 17 2011 - 13:11:47 EST


stefano.stabellini@xxxxxxxxxxxxx writes ("[Xen-devel] [PATCH 1/3] x86: calculate precisely the memory needed by init_memory_mapping"):
> + if (pgt_buf_end != pgt_buf_top)
> + printk(KERN_DEBUG "initial kernel pagetable allocation wasted %lx"
> + " pages\n", pgt_buf_top - pgt_buf_end);

If (due to a bug) pgt_buf_end > pgt_buf_top, this will printk a
message about wasting a negative number of pages, rather than
crashing. Is there something else that will catch this case ?

Ian.
--
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/