WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] guest physical to xen machine copy?

To: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>, "Xen-Devel (E-mail)" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Subject: Re: [Xen-devel] guest physical to xen machine copy?
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 30 Sep 2008 07:24:33 +0100
Cc:
Delivery-date: Mon, 29 Sep 2008 23:25:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <c9993cde-1a65-4eeb-9a73-408c6552a271@default>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AckixTPQck3+q464Ed2bSQAWy6hiGQ==
Thread-topic: [Xen-devel] guest physical to xen machine copy?
User-agent: Microsoft-Entourage/11.4.0.080122
On 29/9/08 23:30, "Dan Magenheimer" <dan.magenheimer@xxxxxxxxxx> 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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel