Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756029Ab2JIOPM (ORCPT ); Tue, 9 Oct 2012 10:15:12 -0400 Received: from mga03.intel.com ([143.182.124.21]:5204 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752391Ab2JIOPK (ORCPT ); Tue, 9 Oct 2012 10:15:10 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,560,1344236400"; d="scan'208";a="154163642" Message-ID: <50743166.2050900@zytor.com> Date: Tue, 09 Oct 2012 22:15:02 +0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120605 Thunderbird/13.0 MIME-Version: 1.0 To: Stefano Stabellini CC: Yinghai Lu , Thomas Gleixner , Ingo Molnar , Jacob Shin , Tejun Heo , "linux-kernel@vger.kernel.org" , Konrad Rzeszutek Wilk , Jeremy Fitzhardinge Subject: Re: [PATCH 08/10] x86, xen, mm: fix mapping_pagetable_reserve logic References: <1349757558-10856-1-git-send-email-yinghai@kernel.org> <1349757558-10856-9-git-send-email-yinghai@kernel.org> <5073C05E.5020402@zytor.com> <5073D0C1.4020606@zytor.com> In-Reply-To: X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 749 Lines: 20 On 10/09/2012 08:22 PM, Stefano Stabellini wrote: > > I can give some hints: find_early_table_space allocates more memory than > needed for pagetable pages, the allocated range is > pgt_buf_start-pgt_buf_top. > This is why I keep telling you that we should *get rid of* find_early_table_space and instead build the page tables incrementally. There simply is no sane way to make find_early_table_space or anything else that requires pre-calculating the page table sizes to work and be robust. -hpa -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/