All of lore.kernel.org
 help / color / mirror / Atom feed
From: Min Lee <min.lee@gatech.edu>
To: Xen-devel@lists.xensource.com
Subject: [Q] mfn_to_gmfn macro, log-dirty bitmap,
Date: Mon, 28 Jun 2010 09:40:59 -0400	[thread overview]
Message-ID: <4C28A66B.6080103@gatech.edu> (raw)

Hi, folks.
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?

#define mfn_to_gmfn(_d, mfn)                            \
     ( (paging_mode_translate(_d))                       \
       ? get_gpfn_from_mfn(mfn)                          \
       : (mfn) )


Thanks for any help.
Min

             reply	other threads:[~2010-06-28 13:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-28 13:40 Min Lee [this message]
2010-06-28 13:50 ` [Q] mfn_to_gmfn macro, log-dirty bitmap, Keir Fraser
2010-06-28 14:25   ` Min Lee
2010-06-28 14:32 ` Tim Deegan
2010-06-28 14:51   ` Min Lee
2010-06-28 15:27     ` Tim Deegan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C28A66B.6080103@gatech.edu \
    --to=min.lee@gatech.edu \
    --cc=Xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.