From: Keir Fraser Subject: Re: xc_domain_translate_gpfn_list vanished from unstable Date: Sun, 07 Jan 2007 17:35:40 +0000 Message-ID: References: <45A12D9E.9020208@jikos.cz> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <45A12D9E.9020208@jikos.cz> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tom=?ISO-8859-2?B?4bkg?=Kouba Cc: Xen-devel List-Id: xen-devel@lists.xenproject.org On 7/1/07 5:27 pm, "Tom=E1=B9 Kouba" wrote: > I am sorry, I don't understand one thing: if the translated-guest > addresses are always referenced by pseudo-physical address (or pfn?) > then why the "xc_map_foreign_range" has its last parameter as mfn and > not pfn? xc_map_foreign_* functions all actually take 'gmfn' -- that is the guest-apparent machine address. Paravirtualised guests usually see machine addresses, so gmfn=3D=3Dmfn. HVM guests have the translation done for them by the hypervisor, so they see gmfn=3D=3Dgpfn (guest pseudophysical frame number). Function prototypes and comments in xenctrl.h have unfortuantely not been updated to reflect this change. -- Keir