From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Samuel Thibault <samuel.thibault@eu.citrix.com>,
xen-devel@lists.xensource.com
Subject: Re: Re: [Xen-changelog] [xen-unstable] Clean up handling of IS_PRIV_FOR() and rcu_[un]lock_domain().
Date: Sat, 29 Mar 2008 11:47:57 +0000 [thread overview]
Message-ID: <C413DCED.1587C%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <20080329112316.GC4482@implementation>
On 29/3/08 11:23, "Samuel Thibault" <samuel.thibault@eu.citrix.com> wrote:
> HVMOP_get_param is needed yes (set_param doesn't seem to be).
I didn't revert any of the HVMOP ones. Basically, anything that a domain is
allowed to do to itself I also kept the IS_PRIV_FOR() case.
> set_foreigndom is probably needed in a lot of cases, but maybe not all,
> so maybe we should have two versions of it.
We can keep it as is. Really TLB flush masks should have the IS_PRIV_FOR()
domain ORed in though.
> DOMCTL_getdomaininfo is needed.
> DOMCTL_max_mem is needed.
These ones are a sticking point I'm afraid. DOMCTL_max_mem is a globally
privileged operation because it can give increased access to the global
memory resource. We can't let stub domains have at it. We'll have to keep
max_mem permanently increased, and set that up in xend. With that done you
probably don't really need getdomaininfo either.
> DOMCTL_settimeoffset is needed.
Why is this done in ioemu and not in xend (it's already done there for PV
guests).
> x86 DOMCTL_memory/ioport_mapping are needed for passthrough (not
> implemented yet, though)
Again, they are globally privileged operations. I can't see that they
logically belong in ioemu-dm in the first place. It's not necessarily your
job to clean this up of course, but it simply means that passthru is
incompatible with stub domains until it is cleaned up.
> IIRC the event channel ops are not needed right now, but will probably
> be in the future.
They were all fine, except there was one inexplicable check of IS_PRIV_FOR()
in bind_interdomain() which I nuked. It was so bizarre that I assumed you
must have put it there for a reason, and this would be one that you'd
complain about. If not, then great! :-)
> XENMEM_in/decrease_reservation and populate_physmap are needed.
> XENMEM_maximum_gpfn is needed.
All these I allowed, by the reasoning that DOMID_SELF is allowed them and
that should allow IS_PRIV_FOR() too.
> I don't have the time to test precisely what else would be needed, but
> the cases above should be at least 90% of what is.
Sounds to me like the domctls are the sticking point. And I can't reasonably
budge on those.
-- Keir
next prev parent reply other threads:[~2008-03-29 11:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200803290750.m2T7o8pP027589@xenbits.xensource.com>
2008-03-29 11:23 ` [Xen-changelog] [xen-unstable] Clean up handling of IS_PRIV_FOR() and rcu_[un]lock_domain() Samuel Thibault
2008-03-29 11:47 ` Keir Fraser [this message]
2008-03-29 11:58 ` Samuel Thibault
2008-04-05 14:28 ` Samuel Thibault
2008-04-05 16:31 ` Keir Fraser
2008-04-11 14:27 ` Samuel Thibault
2008-04-05 16:25 ` Samuel Thibault
2008-04-10 15:43 ` ioemu & settimeoffset [Was: Clean up handling of IS_PRIV_FOR() and rcu_[un]lock_domain()] Samuel Thibault
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=C413DCED.1587C%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=samuel.thibault@eu.citrix.com \
--cc=xen-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.