From: Keir Fraser Subject: Re: guest physical to xen machine copy? Date: Tue, 30 Sep 2008 07:24:33 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer , "Xen-Devel (E-mail)" , "Tian, Kevin" List-Id: xen-devel@lists.xenproject.org On 29/9/08 23:30, "Dan Magenheimer" wrote: > Then I gather I need to be passing an mfn to Xen instead > of a gpfn. To do so, it looks like I call pfn_to_mfn() > in the paravirtualized guest. But how can this work > on a 32-bit-PV-on-64-bit-Xen since pfn_to_mfn() returns > an unsigned long? So what? > Also, once I've got an (pvguest-translated-gpfn-to-) mfn > inside of Xen, do I still do a gfn_to_mfn() on it? > (Shouldn't matter because it just returns the gfn, right?) Yes, gfn here means what-the-guest-thinks-is-an-mfn. That's pfn for an HVM guest; mfn for a PV guest. -- Keir