From: "Mark A. Williamson" Subject: Re: mapping guest domain memory to Dom0 Date: Wed, 2 Feb 2005 15:53:54 +0000 Message-ID: <200502021553.55513.mark.williamson@cl.cam.ac.uk> References: <290f54b705020207366a5e4fe6@mail.gmail.com> Reply-To: mark.williamson@cl.cam.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit In-Reply-To: <290f54b705020207366a5e4fe6@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 > >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