* mapping guest domain memory to Dom0
@ 2005-02-02 15:36 Adam Thorsen
2005-02-02 15:53 ` Mark A. Williamson
0 siblings, 1 reply; 3+ messages in thread
From: Adam Thorsen @ 2005-02-02 15:36 UTC (permalink / raw)
To: xen-devel
Mark Williamson said this regarding the grant_table api (and the fact
that it is not working yet):
>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)
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mapping guest domain memory to Dom0
2005-02-02 15:36 mapping guest domain memory to Dom0 Adam Thorsen
@ 2005-02-02 15:53 ` Mark A. Williamson
2005-02-23 15:38 ` Adam Thorsen
0 siblings, 1 reply; 3+ messages in thread
From: Mark A. Williamson @ 2005-02-02 15:53 UTC (permalink / raw)
To: xen-devel, Adam Thorsen
> >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
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: mapping guest domain memory to Dom0
2005-02-02 15:53 ` Mark A. Williamson
@ 2005-02-23 15:38 ` Adam Thorsen
0 siblings, 0 replies; 3+ messages in thread
From: Adam Thorsen @ 2005-02-23 15:38 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?
-Adam Thorsen
On Wed, 2 Feb 2005 15:53:54 +0000, Mark A. Williamson
<mark.williamson@cl.cam.ac.uk> 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.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-23 15:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-02 15:36 mapping guest domain memory to Dom0 Adam Thorsen
2005-02-02 15:53 ` Mark A. Williamson
2005-02-23 15:38 ` Adam Thorsen
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.