WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Different: nr_pages vs. max_pfn

To: "xen-devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Different: nr_pages vs. max_pfn
From: "Y. D." <duyuyang@xxxxxxxxx>
Date: Wed, 19 Nov 2008 17:45:50 +0800
Delivery-date: Wed, 19 Nov 2008 01:46:14 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type :content-transfer-encoding; bh=OuWnBeWh6DAZT/EFNzISwPrLqcdpIBVYiW3Iygqn/r0=; b=SkCeRaNYi+m3nB/vTpPOuhohTbZvOuIbthhy52P6f9LPMBQelGiLbV1s75plPDj9kk S6Lur9maQZQOYP1l1U5GBT4bTLjkVQlRqjYCyAopbdIwhYvbqebQLSZAdcBqTQwBA+W+ 2jrYVp4x8728dmEytt2U53rtvBhBAaFK9zh0c=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type :content-transfer-encoding; b=DGQlzTld/F/KvxutrG29+6/fUJFrRI87zw5Lici2VCjlXyzhSHwwuIPUVTcnin2js1 Vqckdj9Got5P7XzT67glbdVIHDme0hgcQY7B62THvVsF2qBkYyrKDpUVH8gfQDlXpMby sjhNkV+y6uE2m76QJLnHaSimxe6F+5ajgwzdQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>