From: John Levon <levon@movementarian.org>
To: Jimi Xenidis <jimix@watson.ibm.com>
Cc: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>,
xen-devel@lists.xensource.com,
"Hollis R. Blanchard" <hollisb@us.ibm.com>,
XenPPC-devel <xen-ppc-devel@lists.xensource.com>
Subject: Re: [Xen-devel] [PATCH] don't use mlock() with Solaris tools
Date: Mon, 23 Oct 2006 09:38:33 +0100 [thread overview]
Message-ID: <20061023083833.GA22600@totally.trollied.org> (raw)
In-Reply-To: <E4F841F0-0CFD-4A0B-A96A-0A8002E4D6AC@watson.ibm.com>
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
next prev parent reply other threads:[~2006-10-23 8:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-20 3:42 [PATCH] don't use mlock() with Solaris tools John Levon
2006-10-20 22:35 ` Daniel Veillard
2006-10-20 23:11 ` Mark Johnson
2006-10-22 18:02 ` John Levon
2006-10-22 18:16 ` Keir Fraser
2006-10-22 21:09 ` Jimi Xenidis
2006-10-23 8:38 ` John Levon [this message]
2006-10-23 8:46 ` [Xen-devel] " Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061023083833.GA22600@totally.trollied.org \
--to=levon@movementarian.org \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=hollisb@us.ibm.com \
--cc=jimix@watson.ibm.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-ppc-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.