All of lore.kernel.org
 help / color / mirror / Atom feed
* [Q] mfn_to_gmfn macro, log-dirty bitmap,
@ 2010-06-28 13:40 Min Lee
  2010-06-28 13:50 ` Keir Fraser
  2010-06-28 14:32 ` Tim Deegan
  0 siblings, 2 replies; 6+ messages in thread
From: Min Lee @ 2010-06-28 13:40 UTC (permalink / raw)
  To: Xen-devel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-28 15:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-28 13:40 [Q] mfn_to_gmfn macro, log-dirty bitmap, Min Lee
2010-06-28 13:50 ` 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

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.