From: Mark Williamson Subject: Re: Fwd: xc_map_foreign_range() Date: Wed, 2 Mar 2005 17:17:32 +0000 Message-ID: <200503021717.33026.maw48@cl.cam.ac.uk> References: <290f54b705030206455782cf5d@mail.gmail.com> <290f54b7050302090851a0e407@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit In-Reply-To: <290f54b7050302090851a0e407@mail.gmail.com> Content-Disposition: inline Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net, Adam Thorsen List-Id: xen-devel@lists.xenproject.org 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