All of lore.kernel.org
 help / color / mirror / Atom feed
* Fwd: xc_map_foreign_range()
       [not found] <290f54b705030206455782cf5d@mail.gmail.com>
@ 2005-03-02 17:08 ` Adam Thorsen
  2005-03-02 17:17   ` Mark Williamson
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Thorsen @ 2005-03-02 17:08 UTC (permalink / raw)
  To: xen-devel

I am using the xc_map_foreign_range() function to attempt to map
memory from a guest domain into Domain 0.  I am guessing that the
value named mfn indicates the page in the guest domain that I wish to
start mapping from.

If this assumption is correct,  how do I get a value for mfn?  Say for
instance, that I wanted to map the kernel running in the guest domain?
How about a specific process?


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

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

* Re: Fwd: xc_map_foreign_range()
  2005-03-02 17:08 ` Fwd: xc_map_foreign_range() Adam Thorsen
@ 2005-03-02 17:17   ` Mark Williamson
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Williamson @ 2005-03-02 17:17 UTC (permalink / raw)
  To: xen-devel, Adam Thorsen

MFN = Machine Frame Number i.e. the frame number in the *real* machine memory, 
rather than the domain pseudophysical address.

> If this assumption is correct,  how do I get a value for mfn?  Say for
> instance, that I wanted to map the kernel running in the guest domain?
> How about a specific process?

It depends what you're doing...

If you're mapping some sort of device channel that talks to a driver in the 
guest, you'd want the guest to pass you the MFN number (obtained using e.g. 
"virt_to_machine() >> PAGE_SHIFT") using a control message or some other 
out-of-band means.

I think the control tools use some kind of hypercall to find out the list of 
pages owned by a domain for operations (e.g. for suspend / resume / domain 
building).

There may be other things you could try but rather than speculating, I'll 
leave it up to others.  What exactly are you trying to achieve?

Cheers,
Mark


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

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

end of thread, other threads:[~2005-03-02 17:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <290f54b705030206455782cf5d@mail.gmail.com>
2005-03-02 17:08 ` Fwd: xc_map_foreign_range() Adam Thorsen
2005-03-02 17:17   ` Mark Williamson

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.