[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-devel] question about gmfn_to_mfn()

  • To: "tgh" <tianguanhua@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Guy Zana" <guy@xxxxxxxxxxxx>
  • Date: Fri, 23 Mar 2007 02:56:15 -0400
  • Delivery-date: Thu, 22 Mar 2007 23:58:44 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acds+9C7uL9t/B6fTRyrfNO9ESUW3AAG8htg
  • Thread-topic: [Xen-devel] question about gmfn_to_mfn()

mfn = machine frame number, it is an index to a page in the real memory of the 
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.


> -----Original Message-----
> From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of tgh
> Sent: Friday, March 23, 2007 5:31 AM
> To: xen-devel@xxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.