[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] mapping guest domain memory to Dom0

  • To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
  • From: Adam Thorsen <adam.thorsen@xxxxxxxxx>
  • Date: Wed, 23 Feb 2005 10:38:52 -0500
  • Delivery-date: Wed, 23 Feb 2005 15:49:05 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=k49RUPGH/hHMnqlcsYyKwLoWW6lj/Im9cKhhm/48VLbWhMDRDAI5DN/CpXNXwh2bpUVLR04iHT9+Qx8noPgTby9L+jhXwrC+mEpscIeMlS79doBZD7bdVD37aRIQ7Ta4qDqpTQQ7oxfW3E5/7DNobrYAAQSJpLOEftZ1pPPwya4=
  • List-id: List for Xen developers <xen-devel.lists.sourceforge.net>

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?

-Adam Thorsen

On Wed, 2 Feb 2005 15:53:54 +0000, Mark A. Williamson
<mark.williamson@xxxxxxxxxxxx> wrote:
> > >Right now, domains which need to map other domains
> > >memory are privileged and can map what they like
> >
> > Is anybody doing this?  If so, what kernel mechanisms are you using?
> > (I'm sure this question is very easy to answer for a kernel hacker)
> Yes, shared memory is an important part of Xen's architecture.
> The userspace xc library and the xcs control switch map another domain's
> memory to put the kernel image, etc into it.  The code for this is in
> tools/libxc/xc_private.c
> The blkback.c, netback.c (and usbback.c if you are on unstable) drivers under
> drivers/xen/{blk,net,usb}back/ show how to map another domain's memory from
> kernel space (it's a bit less user friendly than the userspace interface).
> HTH,
> 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.
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.