xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* pfn to mfn translation
@ 2011-05-03 21:02 Bryan D. Payne
  0 siblings, 0 replies; only message in thread
From: Bryan D. Payne @ 2011-05-03 21:02 UTC (permalink / raw)
  To: xen-devel

Is there a recommended way to convert a guest pfn to an mfn from
within dom0?  I'd like the mfn for calling xc_map_foreign_range in
libxc.

Up until now I've been using code that is similar to what is in
tools/libxc/xc_linux_save.c.  However, my version of this code is now
breaking when used with Xen 4.1 (it worked with Xen 4.0.1).  So I'm
wondering if some of the internal p2m tables have changed.  In the
end, it seems like there should be a libxc function that performs this
translation rather than me needing to duplicate code and risk failures
such as what I'm seeing.  However, I don't see any p2m api calls in
xenctrl.h.

Thanks,
-bryan

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-03 21:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-03 21:02 pfn to mfn translation Bryan D. Payne

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).