All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir.fraser@eu.citrix.com>
To: "Y. D." <duyuyang@gmail.com>, xen-devel <xen-devel@lists.xensource.com>
Subject: Re: Different: nr_pages vs. max_pfn
Date: Wed, 19 Nov 2008 09:54:27 +0000	[thread overview]
Message-ID: <C54992D3.1F600%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <200811191745479618049@gmail.com>

The shared_info value is set up by the guest itself during boot. It's larger
because Linux adds extra space at the end of its p2m map for backend
drivers.

 -- Keir

On 19/11/08 09:45, "Y. D." <duyuyang@gmail.com> wrote:

> 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@lists.xensource.com
> http://lists.xensource.com/xen-devel

  reply	other threads:[~2008-11-19  9:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-19  9:45 Different: nr_pages vs. max_pfn Y. D.
2008-11-19  9:54 ` Keir Fraser [this message]
2008-11-19 10:23   ` Jayaraman, Bhaskar
2008-11-19 12:22   ` Y. D.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C54992D3.1F600%keir.fraser@eu.citrix.com \
    --to=keir.fraser@eu.citrix.com \
    --cc=duyuyang@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.