From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: question about gmfn_to_mfn() Date: Fri, 23 Mar 2007 10:22:30 +0000 Message-ID: References: <9392A06CB0FDC847B3A530B3DC174E7B0236A91E@mse10be1.mse10.exchange.ms> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9392A06CB0FDC847B3A530B3DC174E7B0236A91E@mse10be1.mse10.exchange.ms> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Guy Zana , tgh , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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" 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