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] [Q] mfn_to_gmfn macro, log-dirty bitmap,

To: Min Lee <min.lee@xxxxxxxxxx>, "Xen-devel@xxxxxxxxxxxxxxxxxxx" <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [Q] mfn_to_gmfn macro, log-dirty bitmap,
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 28 Jun 2010 14:50:48 +0100
Cc:
Delivery-date: Mon, 28 Jun 2010 06:52:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4C28A66B.6080103@xxxxxxxxxx>
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: AcsWx6s/nzRzrVyvTHymOCGwsHXtLQAAT5sM
Thread-topic: [Xen-devel] [Q] mfn_to_gmfn macro, log-dirty bitmap,
User-agent: Microsoft-Entourage/12.24.0.100205
On 28/06/2010 14:40, "Min Lee" <min.lee@xxxxxxxxxx> wrote:

> I'm running 32bit PV-domu on 64bit xen&dom0 and I'm using
> XEN_DOMCTL_SHADOW_OP_PEEK to get log-dirty bitmap.
> First, I'm assuming this bitmap is indexed by gmfn, right? because we're
> passing p2m->size parameter to xen.
> Second, I have mfn (not gmfn) which I want to translate to gmfn so that I
> can correctly read corresponding bit in log-dirty bitmap. so I've tried
> mfn_to_gmfn() macro below but it doesn't seem to work. (always mfn==gmfn)
> Maybe because m2p table is not enabled?
> How can I properly do mfn_to_gmfn?

For a PV guest, GMFN and MFN are equivalent.

 -- Keir



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