|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [Q] mfn_to_gmfn macro, log-dirty bitmap,
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [Q] mfn_to_gmfn macro, log-dirty bitmap,,
Min Lee <=
|
|
|
|
|