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] pointers in hcalls

To: Reiner Sailer <sailer@xxxxxxxxxx>
Subject: RE: [Xen-devel] pointers in hcalls
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Wed, 08 Feb 2006 16:14:01 +1100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 08 Feb 2006 05:25:30 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <OFB748D6A3.350195F1-ON8525710F.0006BCEB-8525710F.00075ACA@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
References: <OFB748D6A3.350195F1-ON8525710F.0006BCEB-8525710F.00075ACA@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-02-07 at 20:20 -0500, Reiner Sailer wrote:
> 
> The acm hypercalls uses pointers when setting and reading the policy
> from the hypervisor and for dumping statistics. A policy might not
> necessarily be less than one page. 
> 
> I don't remember the conversation on the Xen summit and probably
> wasn't involved. Would you mind summarizing briefly the discussion? 

(Please CC me on replies.)

The domains (especially the management tools in dom0) are passing
virtual pointers into the hypervisor.

This assumes that the hypervisor is running in the same address space as
the userland tools. That assumption is not valid on PPC (we run in real
mode). One other port (x86-64 VT iirc) has the same problem, but since
an x86 MMU tablewalk is pretty straightforward, they do that to
translate the address by hand. This is not feasible on PPC.

It would dramatically simplify the problem if these memory areas were
limited to one page. Once you go over that, the area could be machine
discontiguous, which greatly complicates Xen's copy_to/from_user().

One possibility would be to install ACM policies in chunks (using
multiple hcalls) followed by a "commit" hcall. That would introduce some
concurrency issues though (e.g. installing two multi-page policies at
once).

-- 
Hollis Blanchard
IBM Linux Technology Center


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

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