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

Re: [Xen-devel] Distinguishing gpfn, gmfn, mfn, and pfn


  • To: Sengul Thomas <thomas.sengul@xxxxxxxxx>, Xen Devel <xen-devel@xxxxxxxxxxxxx>
  • From: Keir Fraser <keir.xen@xxxxxxxxx>
  • Date: Wed, 29 May 2013 08:27:31 +0100
  • Delivery-date: Wed, 29 May 2013 07:28:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>
  • Thread-index: Ac5cPfrAZVphGpoLME2FxoRuiXl7ng==
  • Thread-topic: [Xen-devel] Distinguishing gpfn, gmfn, mfn, and pfn

On 29/05/2013 02:03, "Sengul Thomas" <thomas.sengul@xxxxxxxxx> wrote:

> Hi xen developers,
> 
> I'm confused about the actual usage of the four types of frames.
> I can find the definition in xen/include/xen/mm.h, but would like
> to check my understanding is correct:
> 
> 1) Is 2-stage MMU-supported (e.g., ARMv7 VE) translation
>     auto-translated mode? Then, gpfn == gmfn.
> 
> 2) Is gmfn --> mfn mapping the p2m table?
> 
> 3) Paravirtualized x86 guest will have gpfn != gmfn, and it is
>     quite hard to imagine. Could you tell me the difference
>     between gpfn and gmfn? (for instance, when it is used)

There are basically two modes:

 gmfn==gpfn: Guest does not see real machine physical addresses. p2m is done
by the hypervisor. This is like x86 HVM guests.
 gmfn==mfn: Guest does see real machine physical addresses. Typically the
guest will have its own concept of a flat pseudophysical address space that
it maps to real machine addresses with its own p2m table. This is like x86
pure PV guests.

ARM7 VE does indeed support HVM for ARM, and gmfn==gpfn.

 -- Keir

> 
> thanks always,
> Thomas
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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