|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] xc_translate_foreign_address() returns mfn??
Hi,
I looked at the function xc_translate_foreign_address(), and see that
it walks the page table of the guest VM. So at best, it should return
the pfn of the guest (?)
We can see taht the Later part of the function is like this:
...
if (pt_levels >= 3)
mfn = (pte & L0_PAGETABLE_MASK_PAE) >> PAGE_SHIFT;
else
mfn = (pte & L0_PAGETABLE_MASK) >> PAGE_SHIFT;
..
return mfn;
So perhaps I miss something, but the "mfn" here should be "pfn", so
this function should return pfn, not mfn as in the comment of
xenctrl.h.
This makes me very confused now.
Thanks,
Jun
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] xc_translate_foreign_address() returns mfn??,
Jun Koi <=
|
|
|
|
|