From: tgh <tianguanhua@ncic.ac.cn>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Guy Zana <guy@neocleus.com>, xen-devel@lists.xensource.com
Subject: Re: question about gmfn_to_mfn()
Date: Mon, 26 Mar 2007 09:09:10 +0800 [thread overview]
Message-ID: <46071D36.8070506@ncic.ac.cn> (raw)
In-Reply-To: <C2295AE6.C1DC%Keir.Fraser@cl.cam.ac.uk>
Thank you all for all replys
In the HVM ,xen maintain guestos p2m table ,while in the paravirt ,guest
maintain its own p2m,is it right?
Then in the paravirt case, if a VM's memory maxsize is 512M,and it is
allocated 256M by "xm mem-set ",and it maybe only use 128M for running
its OS and application , then what does its v2p table(or it is v2m talbe
,I am not for sure) and p2m table look like in the aspect of size? and
what about guestOS's mem_map size,is it 512M or 256M or 128M or
something else?
another confusion for me is how does guestOS maitain its p2m table
(linux has the v2p table ,but not p2m table),and what about the working
procession for these tables?
could you help me
Thanks in advance
Keir Fraser 写道:
> GPFN is guest machine frame number. It equals GPFN for fully-translated
> (e.g., HVM guests). It equals MFN for ordinary PV guests which maintain
> their own p2m translation table.
>
> -- Keir
>
>
> On 23/3/07 06:56, "Guy Zana" <guy@neocleus.com> wrote:
>
>
>> mfn = machine frame number, it is an index to a page in the real memory of the
>> system.
>> gmfn = guest's machine frame number and it sometimes called gpfn or just pfn.
>> Guests have a translation table between their own virtualized pseudo physical
>> memory and the real machine memory -> this is exactly what gmfn_to_mfn does.
>> Pfn is a generic term that might be used in all kind of situations so you
>> should understand from the context.
>>
>> Guy.
>>
>>
>>> -----Original Message-----
>>> From: xen-devel-bounces@lists.xensource.com
>>> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of tgh
>>> Sent: Friday, March 23, 2007 5:31 AM
>>> To: xen-devel@lists.xensource.com
>>> Subject: [Xen-devel] question about gmfn_to_mfn()
>>>
>>> hi
>>> I read the code of balloon part, I am confused about the
>>> meaning and function of " mfn = gmfn_to_mfn(d, gmfn);"
>>> what is gmfn and and what is mfn? and" #define gmfn_to_mfn(_d,
>>> gpfn) mfn_x(sh_gfn_to_mfn(_d, gpfn))"
>>> it seems that gmfn and gpfn is the same or what is the
>>> trick in it ?
>>>
>>> I am confused about it
>>>
>>> could you help me
>>> Thanks in advance
>>>
>>>
>>> _______________________________________________
>>> Xen-devel mailing list
>>> Xen-devel@lists.xensource.com
>>> http://lists.xensource.com/xen-devel
>>>
>>>
>> _______________________________________________
>> Xen-devel mailing list
>> Xen-devel@lists.xensource.com
>> http://lists.xensource.com/xen-devel
>>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>
>
>
prev parent reply other threads:[~2007-03-26 1:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-08 10:21 Xen 3.0.4 - Ballooning Sébastien RICCIO
2007-01-08 23:28 ` Andrew D. Ball
2007-01-09 10:29 ` Sébastien RICCIO
2007-03-23 3:31 ` question about gmfn_to_mfn() tgh
2007-03-23 6:56 ` Guy Zana
2007-03-23 10:22 ` Keir Fraser
2007-03-26 1:09 ` tgh [this message]
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=46071D36.8070506@ncic.ac.cn \
--to=tianguanhua@ncic.ac.cn \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=guy@neocleus.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.