xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* obtaining machine frame number
@ 2011-08-21 15:20 Eli Cohen
  2011-08-24 20:10 ` Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 2+ messages in thread
From: Eli Cohen @ 2011-08-21 15:20 UTC (permalink / raw)
  To: xen-devel

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
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
this be done?

Thanks,
Eli

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: obtaining machine frame number
  2011-08-21 15:20 obtaining machine frame number Eli Cohen
@ 2011-08-24 20:10 ` Konrad Rzeszutek Wilk
  0 siblings, 0 replies; 2+ messages in thread
From: Konrad Rzeszutek Wilk @ 2011-08-24 20:10 UTC (permalink / raw)
  To: Eli Cohen; +Cc: xen-devel

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-24 20:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-21 15:20 obtaining machine frame number Eli Cohen
2011-08-24 20:10 ` Konrad Rzeszutek Wilk

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).