From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Y. D." Subject: Different: nr_pages vs. max_pfn Date: Wed, 19 Nov 2008 17:45:50 +0800 Message-ID: <200811191745479618049@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org Hi, In start_info, there is a field nr_pages definig how much memory is allocated to the domain, which is obvious. While in shared_info, there is a field max_pfn. I don't know why max_pfn is not equal to nr_pages. Say for 32MB memory, nr_pages = 8192, while max_pfn = 10240 (may vary?), of which 2048 pfn's have invalid mfn. Can anybody explain that why max_pfn is larger? Is it static or dynamic? Furture, does pfn to mfn frame mapping ever change? Hopefully not. Thanks, Shawn