WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Mapping pages from dom0

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] Mapping pages from dom0
From: John L Griffin <jlg@xxxxxxxxxx>
Date: Fri, 4 Feb 2005 10:30:47 -0500
Delivery-date: Fri, 04 Feb 2005 15:32:00 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
In-reply-to: <4202B501.4030401@xxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> I am mapping some pages in a domU from dom0 userspace. Doing that once I 

> know the page numbers is fairly trivial, but what is the recommended way 

> of communicating one or more page numbers from domU to dom0, hopefully 
> without having to modify xend?

I am curious: I'm just starting to look into the mechanisms by which pages 
are shared between domains.  The above question surprised me, because I'd 
assumed there existed some sort of anonymous "I want to map a page that 
domain N has exported" method to bootstrap direct interdomain 
communication between unprivileged domains.

Looking through the code now, could someone please comment on the 
correctness (or, more importantly, uncorrectness) of the following 
statements?

* It is possible for two unprivileged domains to share pages, without 
needing any intervention from a privileged domain, as long as each side 
knows in advance the addresses of the pages to be shared?

* The grant_table_op hypervisor call is used by Domain-A to notify Xen 
that "yes, I want to allow Domain-B to map this page"?  Then, the 
update_va_mapping hypervisor call is used by Domain-B to map the page?

* grant_table_op cannot be used by Domain-A to revoke Domain-B's mapping 
of the page?  (I.e., all the "unmap grant ref" flag says is "cause all 
future Domain-B update_va_mapping calls, regarding mapping this page, to 
fail"?)

* Jacob's problem (dom0 needing to know the addresses of pages shared by a 
domU) is avoided during virtual network and virtual block device setup, 
because the pages to be shared are somehow either set up by Xen or shared 
through the "control interface" channel to Xend?

Thanks,
JLG



-------------------------------------------------------
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
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>