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

[XenPPC] Re: [Xen-devel] [PATCH] don't use mlock() with Solaris tools

To: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Subject: [XenPPC] Re: [Xen-devel] [PATCH] don't use mlock() with Solaris tools
From: John Levon <levon@xxxxxxxxxxxxxxxxx>
Date: Mon, 23 Oct 2006 09:38:33 +0100
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, "Hollis R. Blanchard" <hollisb@xxxxxxxxxx>, XenPPC-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 23 Oct 2006 02:26:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <E4F841F0-0CFD-4A0B-A96A-0A8002E4D6AC@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C1617416.2F03%Keir.Fraser@xxxxxxxxxxxx> <E4F841F0-0CFD-4A0B-A96A-0A8002E4D6AC@xxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Sun, Oct 22, 2006 at 05:09:35PM -0400, Jimi Xenidis wrote:

> Hollis and I touched on this and has been the bane of our existence  
> since we were required to have Xen interpret user level pointers,  
> thread started here:
>   http://lists.xensource.com/archives/html/xen-devel/2005-08/ 
> msg00719.html
> 
> I cannot speak for Hollis (I think he may actually disagree with me)  
> but see this as an opportunity to design something better, or at  
> least have the debat (again).

Yes, we should have something better. At the moment I'm trying to clear
out our patch queue (we only have a few hacks left really now...)

The "special pages" idea of yours sounds workable if the
xc_get_pfn_list() thing can be fixed.

> What might be a better alternative an to actually have an allocate  
> call rather than an mlock call where the arches and OSes could to  
> what is best for them.
> So what is done on x86 could be:
>   do { x = alloca(len); mlock (x, len); } while (0)

This would be a little uncomfortable, if only because it's an extra
system call every time. Also letting userspace pin translations in
memory would be troublesome.

> BTW: John, how do you solve the minor faults?!

We currently interpret the ioctl in the privcmd driver and softlock the
mappings in. Which isn't very nice for all the reasons you point out.

regards
john

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