xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Bryan D. Payne" <bryan@thepaynes.cc>
To: xen-devel@lists.xensource.com
Subject: pfn to mfn translation
Date: Tue, 3 May 2011 15:02:19 -0600	[thread overview]
Message-ID: <BANLkTikme+XC3KPUnGqW5_YNbCoy1faQgw@mail.gmail.com> (raw)

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

                 reply	other threads:[~2011-05-03 21:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=BANLkTikme+XC3KPUnGqW5_YNbCoy1faQgw@mail.gmail.com \
    --to=bryan@thepaynes.cc \
    --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 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).