From: Keir Fraser Subject: Re: Re: [Xen-changelog] [xen-unstable] Clean up handling of IS_PRIV_FOR() and rcu_[un]lock_domain(). Date: Sat, 05 Apr 2008 17:31:39 +0100 Message-ID: References: <20080405142814.GL4005@implementation> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080405142814.GL4005@implementation> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Samuel Thibault Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 5/4/08 15:28, "Samuel Thibault" wrote: >> 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. > > I'm now complaining :) > > The bind_interdomain() trick is needed for the ioreq events channel: > when it gets installed, it is supposed to be between the HVM domain and > dom0 (the stub domain doesn't exist anyway). The meaning of the test is > hence to allow the stub domain to hijack that event channel (because it > has privileges on the remote domain). The hack kind of sucks. :-) Add a new hvm_param to indicate the device model domain. Default it to zero, and if it becomes set to some other value (by the stub domain itself, when it starts) then re-create the event-channel port with new remote domid. -- Keir > With that fix, stub domains are working again (but Cirrus bios doesn't > work yet)