From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Eli Cohen <eli@dev.mellanox.co.il>
Cc: xen-devel@lists.xensource.com
Subject: Re: obtaining machine frame number
Date: Wed, 24 Aug 2011 16:10:08 -0400 [thread overview]
Message-ID: <20110824201008.GA26526@dumpdata.com> (raw)
In-Reply-To: <CAL3tnx4iVy41N-8q2yCdUV93xnyRa5vYWNfTTtHDKDdK885d+Q@mail.gmail.com>
On Sun, Aug 21, 2011 at 06:20:07PM +0300, Eli Cohen wrote:
> Hi list,
> I am trying to allocate a page at a Linux guest and and obtain the
> machine frame number for that page. Then I want to pass the mfn to
OK, use the pci_map_page API - that should give you the MFN
if you are doing this within a PV guest.
> dom0 (I need to use xen store since I have my own mechanism to
> communicate between guests and dom0) and obtain a struct page for it
> (how?) and then dma map it to a pci device. Can some say if/how can
Uh, ..
> this be done?
Why don't you do what the blkback/blkfront is doing. The blkback
is using m2p_add_override to map the local 'struct page' to
that MFN and then that 'struct page' has the guests' MFN
under it.
prev parent reply other threads:[~2011-08-24 20:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-21 15:20 obtaining machine frame number Eli Cohen
2011-08-24 20:10 ` Konrad Rzeszutek Wilk [this message]
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=20110824201008.GA26526@dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=eli@dev.mellanox.co.il \
--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 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.